# Unable to add a host - err state

**URL:** <https://forum.opennebula.io/t/unable-to-add-a-host-err-state/13457>\
**Category:** Product Support\
**Created:** [January 11, 2025, 8:59pm UTC](https://forum.opennebula.io/t/unable-to-add-a-host-err-state/13457 "2025-01-11T20:59:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave2theMc](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@Dave2theMc](https://forum.opennebula.io/u/Dave2theMc)\
**Post date:** [January 11, 2025, 8:59pm UTC](https://forum.opennebula.io/t/unable-to-add-a-host-err-state/13457/1 "2025-01-11T20:59:45Z")

</div>

First time setting up OpenNebula, having issues adding an Alma Linux 8.10 KVM / LXC host. Same outcome on both hosts, I can SSH between the hosts and the Front End. Followed the guides in [OpenNebula 6.10 Documentation — OpenNebula 6.10.4 documentation](https://docs.opennebula.io/6.10/)

Tried using FQDN and IP, getting this error in ‘/var/log/one/monitor.log’

"Sat Jan 11 19:50:49 2025 [Z0][MDP][I]: Error executing monitord-client\_control.sh: ruby: Operation not permitted – /var/tmp/one/im/lxc.d/monitord-client.rb (LoadError)  
Sat Jan 11 19:50:51 2025 [Z0][MDP][I]: Command execution failed (exit code: 1): ‘if [-x “/var/tmp/one/im/run\_monitord\_client”]; then /var/tmp/one/im/run\_monitord\_client lxc 5 192.168.40.40; else exit 42; fi’  
Sat Jan 11 19:50:51 2025 [Z0][MDP][I]: Error executing monitord-client\_control.sh: ruby: Operation not permitted – /var/tmp/one/im/lxc.d/monitord-client.rb (LoadError)  
Sat Jan 11 19:50:51 2025 [Z0][MDP][W]: Start monitor failed for host 5: Error executing monitord-client\_control.sh: ruby: Operation not permitted – /var/tmp/one/im/lxc.d/monitord-client.rb (LoadError)  
Sat Jan 11 19:50:51 2025 [Z0][HMM][E]: Unable to monitor host id: 5  
Sat Jan 11 19:50:51 2025 [Z0][HMM][D]: Updated Host 5, state ERROR  
"

On the host, when I try to interact I get the following:

_head -n 1 /var/tmp/one/im/kvm.d/monitord-client.rb_  
_head: cannot open ‘/var/tmp/one/im/kvm.d/monitord-client.rb’ for reading: Operation not permitted_

Adding the oneadmin account to wheel solves that, but I believe that’s not the answer

_sudo head -n 1 /var/tmp/one/im/kvm.d/monitord-client.rb_  
_#!/usr/bin/env ruby_

Tried disabling SELinux, and modifying the permissions, but still nothing

_ls -l /var/tmp/one/im/kvm.d/monitord-client.rb_  
_-rw-r-----. 1 oneadmin oneadmin 8940 Aug 27 17:22 /var/tmp/one/im/kvm.d/monitord-client.rb_

Any ideas?

---

<div class="post-metadata">

**Author:** ![dclavijo](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/dclavijo/32/5265_2.png) [@dclavijo](https://forum.opennebula.io/u/dclavijo)\
**Post date:** [January 13, 2025, 4:42pm UTC](https://forum.opennebula.io/t/unable-to-add-a-host-err-state/13457/2 "2025-01-13T16:42:40Z")

</div>

The oneadmin user needs to be able to start that script on the host. This script triggers the monitoring process which should lead to the host information being reported. Please review the [LXC node setup](https://docs.opennebula.io/6.10/open_cluster_deployment/lxc_node/lxc_node_installation.html#lxc-node-installation) to find out why there are permissions issues.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/1/14d66f1130b9cd292905f575da9b68a9f574dd03.png) [@system](https://forum.opennebula.io/u/system)\
**Post date:** [June 25, 2025, 3:47pm UTC](https://forum.opennebula.io/t/unable-to-add-a-host-err-state/13457/3 "2025-06-25T15:47:00Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
