Difference between revisions of "Vnx-install-trobleshooting"

From VNX
Jump to: navigation, search
(About libvirt)
(About libvirt)
Line 7: Line 7:
 
  virsh: /usr/lib/libvirt.so.0: version LIBVIRT_PRIVATE_XXX not found (required by virsh)
 
  virsh: /usr/lib/libvirt.so.0: version LIBVIRT_PRIVATE_XXX not found (required by virsh)
  
A:  
+
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.
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': No existe el archivo o el directorio
+
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:

Revision as of 16:40, 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: