Difference between revisions of "Vnx-install-trobleshooting"

From VNX
Jump to: navigation, search
(About libvirt)
(Q: When I execute "virsh list" or other virsh commands I get the following error:)
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
== About libvirt ==
 
== About libvirt ==
  
'''''Q: When I execute "virsh list" or other virsh commands I get the following error:'''''
+
=== 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)
 
  virsh: /usr/lib/libvirt.so.0: version LIBVIRT_PRIVATE_XXX not found (required by virsh)
Line 10: Line 10:
 
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 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:
+
To solve that, check the version you are using:
 +
libvirtd --version
 +
Remove the old links:
 
  cd /usr/lib
 
  cd /usr/lib
 
  rm libvirt-qemu.so libvirt-qemu.so.0 libvirt.so libvirt.so.0
 
  rm libvirt-qemu.so libvirt-qemu.so.0 libvirt.so libvirt.so.0
Check the version you are using:
+
Recreate the links to libraries (change '0.9.8' by the version number 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
 
  ln -s libvirt-qemu.so.0.9.8 libvirt-qemu.so.0
 
  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
 
  ln -s libvirt.so.0.9.8 libvirt.so.0
 
  ln -s libvirt.so.0.9.8 libvirt.so.0
 +
Restart libvirt:
 +
stop libvirt-bin
 +
start libvirt-bin
 +
Note: do not try 'restart libvirt-bin'. It does not work, at least in our case...
  
'''''Q: When I try to create a virtual scenario I get the following error:''''' 
+
=== 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.
 
  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': ...
 
  libvirt error code: 38, message: Failed to connect socket to '/var/run/libvirt/libvirt-sock': ...
Line 28: Line 32:
 
  virsh list
 
  virsh list
 
  virsh capabilities  
 
  virsh capabilities  
to see if you get an error message that will guide you. Have a look at http://wiki.libvirt.org/page/Troubleshooting.
+
to see if you get an error message that will guide you. Have a look at the previous question and to this document http://wiki.libvirt.org/page/Troubleshooting.

Latest revision as of 19:05, 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, check the version you are using:

libvirtd --version

Remove the old links:

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

Recreate 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

Restart libvirt:

stop libvirt-bin
start libvirt-bin

Note: do not try 'restart libvirt-bin'. It does not work, at least in our case...

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 the previous question and to this document http://wiki.libvirt.org/page/Troubleshooting.