# Cannot add Host in opennebula 4.14.2

**URL:** <https://forum.opennebula.io/t/cannot-add-host-in-opennebula-4-14-2/1826>\
**Category:** Product Support\
**Created:** [February 18, 2016, 8:30am UTC](https://forum.opennebula.io/t/cannot-add-host-in-opennebula-4-14-2/1826 "2016-02-18T08:30:32Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferrela](https://avatars.discourse-cdn.com/v4/letter/f/cdc98d/32.png) [@ferrela](https://forum.opennebula.io/u/ferrela)\
**Post date:** [February 18, 2016, 8:30am UTC](https://forum.opennebula.io/t/cannot-add-host-in-opennebula-4-14-2/1826/1 "2016-02-18T08:30:32Z")

</div>

Opennebula 4.14.2 is successfully installed on a single server (CentOS 6.7), but I can’t add a host.  
Here is the error message in oned.conf file:

[InM][I]:Command execution fail: ‘if [-x “/var/tmp/one/im/run\_probes”]; then /var/tmp/one/im/run\_probes kvm /var/lib/one//datastores 4124 20 0 [Op-fr-end.ipwav.com](http://Op-fr-end.ipwav.com); else exit 42; fi’  
[InM][I]: ./pci.rb:36:in `require’: no such file to load – shellwords (LoadError)  
[InM][I]: from ./pci.rb:36  
[InM][E]: Error executing pci.rb  
[InM][E]: Error executing collectd-client\_control.sh  
[InM][I]: ExitCode: 1

Please help !

---

<div class="post-metadata">

**Author:** ![atodorov\_storpool](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/atodorov_storpool/32/5327_2.png) [@atodorov\_storpool](https://forum.opennebula.io/u/atodorov_storpool)\
**Post date:** [February 18, 2016, 9:10am UTC](https://forum.opennebula.io/t/cannot-add-host-in-opennebula-4-14-2/1826/2 "2016-02-18T09:10:42Z")

</div>

Hi,

Short answer:

> yum -y install pciutils

Already discussed [here](https://forum.opennebula.io/t/host-monitoring-problem/1818)

Kind Regards,  
Anton Todorov

---

<div class="post-metadata">

**Author:** ![ferrela](https://avatars.discourse-cdn.com/v4/letter/f/cdc98d/32.png) [@ferrela](https://forum.opennebula.io/u/ferrela)\
**Post date:** [February 18, 2016, 9:15am UTC](https://forum.opennebula.io/t/cannot-add-host-in-opennebula-4-14-2/1826/3 "2016-02-18T09:15:36Z")

</div>

Yes I know but this does not work for me and I still have the same error.  
Please help

---

<div class="post-metadata">

**Author:** ![atodorov\_storpool](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/atodorov_storpool/32/5327_2.png) [@atodorov\_storpool](https://forum.opennebula.io/u/atodorov_storpool)\
**Post date:** [February 18, 2016, 9:25am UTC](https://forum.opennebula.io/t/cannot-add-host-in-opennebula-4-14-2/1826/4 "2016-02-18T09:25:44Z")

</div>

Ok,

Then check what package provides `shellwords.rb`:

> yum whatprovides ‘\*/shellwords.rb’

Probably `ruby-libs` package is not installed?

Kind Regards,  
Anton Todorov

---

<div class="post-metadata">

**Author:** ![ferrela](https://avatars.discourse-cdn.com/v4/letter/f/cdc98d/32.png) [@ferrela](https://forum.opennebula.io/u/ferrela)\
**Post date:** [February 18, 2016, 10:37am UTC](https://forum.opennebula.io/t/cannot-add-host-in-opennebula-4-14-2/1826/5 "2016-02-18T10:37:51Z")

</div>

Thank you for your help!  
I don’t understand the output of this command but here it is:

ruby-libs-1.8.7.374-4.el6\_6.x86\_64 : Libraries necessary to run Ruby  
Repo : base  
Matched from:  
Filename : /usr/lib/ruby/1.8/optparse/shellwords.rb  
Filename : /usr/lib/ruby/1.8/shellwords.rb

ruby-libs-1.8.7.374-4.el6\_6.i686 : Libraries necessary to run Ruby  
Repo : base  
Matched from:  
Filename : /usr/lib/ruby/1.8/optparse/shellwords.rb  
Filename : /usr/lib/ruby/1.8/shellwords.rb

ruby-libs-1.8.7.374-4.el6\_6.x86\_64 : Libraries necessary to run Ruby  
Repo : installed  
Matched from:  
Filename : /usr/lib/ruby/1.8/optparse/shellwords.rb  
Filename : /usr/lib/ruby/1.8/shellwords.rb

Thank

---

<div class="post-metadata">

**Author:** ![atodorov\_storpool](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/atodorov_storpool/32/5327_2.png) [@atodorov\_storpool](https://forum.opennebula.io/u/atodorov_storpool)\
**Post date:** [February 18, 2016, 10:56am UTC](https://forum.opennebula.io/t/cannot-add-host-in-opennebula-4-14-2/1826/6 "2016-02-18T10:56:23Z")

</div>

Hi,

I think it is time to clarify some details:  
You have OpenNebula installed on centos6 server ([Op-fr-end.ipwav.com](http://Op-fr-end.ipwav.com)).  
You are adding another server as KVM hypervisor to the front-end.

The error message is generated on the KVM hypervisor and it is complaining that there is no `shellwords.rb` found.

So the question is the output of `yum whatprovides...` from which server is run?  
It is saying that the `ruby-libs` package is installed, but I suspect that this is on the front-end server, not the hypervisor one. You must have `ruby-libs` on both servers installed.

Kind Regards,  
Anton Todorov

---

<div class="post-metadata">

**Author:** ![ferrela](https://avatars.discourse-cdn.com/v4/letter/f/cdc98d/32.png) [@ferrela](https://forum.opennebula.io/u/ferrela)\
**Post date:** [February 18, 2016, 11:14am UTC](https://forum.opennebula.io/t/cannot-add-host-in-opennebula-4-14-2/1826/7 "2016-02-18T11:14:29Z")

</div>

Thank you Anton,  
But it is a single server installation (front-end server = hypervisor server); so " yum whatprovides ‘\*/shellwords.rb’" command is running on [Op-fr-end.xxxx.com](http://Op-fr-end.xxxx.com) server. I was using OpenNebula 4.12 with the same architecture but I didn’t meet any problem with that.

Thank you

---

<div class="post-metadata">

**Author:** ![atodorov\_storpool](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/atodorov_storpool/32/5327_2.png) [@atodorov\_storpool](https://forum.opennebula.io/u/atodorov_storpool)\
**Post date:** [February 18, 2016, 12:01pm UTC](https://forum.opennebula.io/t/cannot-add-host-in-opennebula-4-14-2/1826/8 "2016-02-18T12:01:14Z")

</div>

Well this is weird.

I am with similar setup in the lab (centos7 tough) and have no such issues.  
Then for some reason the oneadmin user has no rights to read these files?

Kind Regards,  
Anton Todorov

---

<div class="post-metadata">

**Author:** ![ferrela](https://avatars.discourse-cdn.com/v4/letter/f/cdc98d/32.png) [@ferrela](https://forum.opennebula.io/u/ferrela)\
**Post date:** [February 18, 2016, 12:05pm UTC](https://forum.opennebula.io/t/cannot-add-host-in-opennebula-4-14-2/1826/9 "2016-02-18T12:05:37Z")

</div>

Anton I confirm that there is no file:

> [@](#):
>
> shellwords.rb

I have noticed that many folders and files are missing in the ruby librairy directory :[quote]/usr/lib/ruby/1.8/[/quote]  
So how can I fixe this

---

<div class="post-metadata">

**Author:** ![atodorov\_storpool](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/atodorov_storpool/32/5327_2.png) [@atodorov\_storpool](https://forum.opennebula.io/u/atodorov_storpool)\
**Post date:** [February 18, 2016, 12:22pm UTC](https://forum.opennebula.io/t/cannot-add-host-in-opennebula-4-14-2/1826/10 "2016-02-18T12:22:40Z")

</div>

Hi,  
I hope there are missing files only on ruby on your system. You can try to reinstall the packages

> yum reinstall ruby ruby-libs

Kind Regards,  
Anton Todorov

---

<div class="post-metadata">

**Author:** ![ferrela](https://avatars.discourse-cdn.com/v4/letter/f/cdc98d/32.png) [@ferrela](https://forum.opennebula.io/u/ferrela)\
**Post date:** [February 18, 2016, 12:28pm UTC](https://forum.opennebula.io/t/cannot-add-host-in-opennebula-4-14-2/1826/11 "2016-02-18T12:28:45Z")

</div>

Yooopiii !! Thank you very much Anton: this has solved my problem.  
Thank you ! I’m very happy !
