[chef] Re: Re: knife kvm vm


Chronological Thread 
  • From: Vladimir Berezovski < >
  • To:
  • Subject: [chef] Re: Re: knife kvm vm
  • Date: Thu, 2 Aug 2012 17:25:40 +0300

  I  ran this command command on my Chef workstation ( CentOS 6) .
  Added libvirt* packages  and started libvirt services - didn't help  .

 starce log  indicates  the command  cannot find libvirt.so and libvirt.rb in the /usr/lib64/ruby/gems/1.8/gems/ folders .
 Suspect this is the problem .

Thanks .

/Vlad .

 

On Thu, Aug 2, 2012 at 5:01 PM, Tim Green < " target="_blank"> > wrote:
Vlad,

It looks like knife-kvm has Fog as a dependency, which itself relies upon the libvirt library to work properly.  You should be able to download this using your OS package manager.  For example (on Ubuntu):

sudo apt-get install libvirt-dev

Thanks,

-Tim

On Thursday, August 2, 2012 at 9:23 AM, " target="_blank"> wrote:


Hi , I added have the following kvm knife configuration in my ~/.chef/knife.rb
file :


knife[:kvm_host] = "10.10.10.1"
knife[:kvm_username] = "root"
knife[:kvm_password] = "password"

When I test this command the knife looks for local KVM :


# knife kvm vm list
Connecting to KVM host 127.0.0.1 (ssh)...
ERROR: LoadError: no such file to load -- libvirt

Wrong config ?


/Vlad





Archive powered by MHonArc 2.6.16.

§