# Cannot add KVM to opennebula

**URL:** https://forum.opennebula.io/t/cannot-add-kvm-to-opennebula/8073
**Category:** Product Support
**Created:** [February 19, 2020, 11:44am UTC](https://forum.opennebula.io/t/cannot-add-kvm-to-opennebula/8073 "2020-02-19T11:44:20Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![gdobrescu](https://avatars.discourse-cdn.com/v4/letter/g/ea666f/32.png) [@gdobrescu](https://forum.opennebula.io/u/gdobrescu)
#### Post date: [February 19, 2020, 11:44am UTC](https://forum.opennebula.io/t/cannot-add-kvm-to-opennebula/8073/1 "2020-02-19T11:44:20Z")

</div>

Hello,

Below the description of the problem.

We cannot add the kvm to opennebula.

We’ve tried different workarounds.

[root@bdapkvmsbx01 kvm.d]# ls -lah  
total 16K  
drwxr-x—. 2 oneadmin oneadmin 83 Feb 18 19:02 .  
drwxr-x—. 11 oneadmin oneadmin 180 Feb 18 19:02 …  
-rwxr-x—. 1 oneadmin oneadmin 2.9K Dec 10 16:55 collectd-client\_control.sh  
-rw-r-----. 1 oneadmin oneadmin 4.4K Dec 10 16:55 collectd-client.rb  
-rw-------. 1 root root 216 Feb 17 19:27 nohup.out  
[root@bdapkvmsbx01 kvm.d]# id  
uid=0(root) gid=0(root) groups=0(root) context=unconfined\_u:unconfined\_r:unconfined\_t:s0-s0:c0.c1023  
[root@bdapkvmsbx01 kvm.d]# ./collectd-client\_control.sh  
bash: ./collectd-client\_control.sh: Permission denied  
[root@bdapkvmsbx01 kvm.d]# ls -lah /bin/bash  
-rwxr-xr-x. 1 root root 942K Mar 12 2019 /bin/bash  
[root@bdapkvmsbx01 kvm.d]# /bin/bash collectd-client\_control.sh  
allexport off  
braceexpand on  
emacs off  
errexit off  
errtrace off  
functrace off  
hashall on  
histexpand off  
history off  
ignoreeof off  
interactive-comments on  
keyword off  
monitor off  
noclobber off  
noexec off  
noglob off  
nolog off  
notify off  
nounset off  
onecmd off  
physical off  
pipefail off  
posix off  
privileged on  
verbose off  
vi off  
xtrace off  
collectd-client\_control.sh: line 100: set: -s: invalid option  
set: usage: set [-abefhkmnptuvxBCHP] [-o option-name] [–] [arg …]  
[root@bdapkvmsbx01 kvm.d]# getenforce  
Permissive  
[root@bdapkvmsbx01 kvm.d]# cat /etc/redhat-release  
Red Hat Enterprise Linux Server release 7.7 (Maipo)

---

<div class="post-metadata">

### Author: ![ahuertas](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ahuertas/32/7487_2.png) [@ahuertas](https://forum.opennebula.io/u/ahuertas)
#### Post date: [February 20, 2020, 2:10pm UTC](https://forum.opennebula.io/t/cannot-add-kvm-to-opennebula/8073/2 "2020-02-20T14:10:26Z")

</div>

Hello @gdobrescu

What error are you getting when you try to create the host?

Best,  
Álex.

---

<div class="post-metadata">

### Author: ![vholer](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/vholer/32/4392_2.png) [@vholer](https://forum.opennebula.io/u/vholer)
#### Post date: [February 21, 2020, 11:33am UTC](https://forum.opennebula.io/t/cannot-add-kvm-to-opennebula/8073/3 "2020-02-21T11:33:51Z")

</div>

Hello @gdobrescu , you probably have your `/var/tmp` on KVM nodes mounted with `noexec` option. Best, Vlastiml
