Difference between revisions of "Vnx-install-trobleshooting"

From VNX
Jump to: navigation, search
(About libvirt)
(About libvirt)
Line 25: Line 25:
 
  libvirt error code: 38, message: Failed to connect socket to '/var/run/libvirt/libvirt-sock': ...
 
  libvirt error code: 38, message: Failed to connect socket to '/var/run/libvirt/libvirt-sock': ...
  
'''A''':
+
'''A''': Seems that libvirt is not running correctly. Check libvirt configuration and be sure it works before executing VNX. Try commands like:
 +
virsh list
 +
virsh capabilities
 +
to see if you get an error message that will guide you. Have a look at http://wiki.libvirt.org/page/Troubleshooting.

Revision as of 16:46, 18 June 2012

Installation Troubleshooting

About libvirt

Q: When I execute "virsh list" or other virsh commands I get the following error:

virsh: /usr/lib/libvirt.so.0: version LIBVIRT_PRIVATE_XXX not found (required by virsh)

A: It seems that libvirt installation scripts do not manage correctly the links to libvirt libraries when, for example, you manually install a version of libvirt and later change it to a new one or you try to use the libvirt version distributed as package.

To solve that, remove the old links:

cd /usr/lib
rm libvirt-qemu.so libvirt-qemu.so.0 libvirt.so libvirt.so.0

Check the version you are using:

libvirtd --version

Create the links to libraries (change '0.9.8' by the version number you are using:

ln -s libvirt-qemu.so.0.9.8 libvirt-qemu.so
ln -s libvirt-qemu.so.0.9.8 libvirt-qemu.so.0
ln -s libvirt.so.0.9.8 libvirt.so
ln -s libvirt.so.0.9.8 libvirt.so.0

Q: When I try to create a virtual scenario I get the following error:

VNX::vmAPI_libvirt::defineVM (1172): error connecting to qemu:///system hypervisor.
libvirt error code: 38, message: Failed to connect socket to '/var/run/libvirt/libvirt-sock': ...

A: Seems that libvirt is not running correctly. Check libvirt configuration and be sure it works before executing VNX. Try commands like:

virsh list
virsh capabilities 

to see if you get an error message that will guide you. Have a look at http://wiki.libvirt.org/page/Troubleshooting.