System: snv115, SXCE.
First:
Using virt-manager:
virt-manager
Traceback (most recent call last):
File "/usr/share/virt-manager/virt-manager.py", line 108, in ?
from virtManager.config import vmmConfig
File "/usr/share/virt-manager/virtManager/config.py", line 24, in ?
import libvirt
File "/usr/lib/python2.4/vendor-packages/libvirt.py", line 12, in ?
import cygvirtmod as libvirtmod
ImportError: No module named cygvirtmod
So from http://defect.opensolaris.org/bz/show_bug.cgi?id=8876, I guessed a
soft-link should be created:
Before that, checking using ldd:
/usr/lib>ldd /usr/lib/python2.4/vendor-packages/64/libvirtmod.so
libvirt.so.0 => /usr/lib/64/libvirt.so.0
libxenstore.so.3.0 => /usr/lib/64/libxenstore.so.3.0
libnsl.so.1 => /lib/64/libnsl.so.1
libsocket.so.1 => /lib/64/libsocket.so.1
libc.so.1 => /lib/64/libc.so.1
libxml2.so.2 => /lib/64/libxml2.so.2
libgnutls.so.13 => (file not found)
libpthread.so.1 => /lib/64/libpthread.so.1
libgcc_s.so.1 => /usr/sfw/lib/amd64/libgcc_s.so.1
libmp.so.2 => /lib/64/libmp.so.2
libmd.so.1 => /lib/64/libmd.so.1
libscf.so.1 => /lib/64/libscf.so.1
libz.so.1 => /lib/64/libz.so.1
libm.so.2 => /lib/64/libm.so.2
libuutil.so.1 => /lib/64/libuutil.so.1
libgen.so.1 => /lib/64/libgen.so.1
libsmbios.so.1 => /usr/lib/64/libsmbios.so.1
/usr/lib>ldd /usr/lib/python2.4/vendor-packages/libvirtmod.so
libvirt.so.0 => /usr/lib/libvirt.so.0
libxenstore.so.3.0 => /usr/lib/libxenstore.so.3.0
libnsl.so.1 => /lib/libnsl.so.1
libsocket.so.1 => /lib/libsocket.so.1
libc.so.1 => /lib/libc.so.1
libxml2.so.2 => /lib/libxml2.so.2
libgnutls.so.13 => (file not found)
libpthread.so.1 => /lib/libpthread.so.1
libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1
libmp.so.2 => /lib/libmp.so.2
libmd.so.1 => /lib/libmd.so.1
libscf.so.1 => /lib/libscf.so.1
libz.so.1 => /lib/libz.so.1
libm.so.2 => /lib/libm.so.2
libuutil.so.1 => /lib/libuutil.so.1
libgen.so.1 => /lib/libgen.so.1
libsmbios.so.1 => /usr/lib/libsmbios.so.1
Noticed the "file not found" above.
So the softlink is created:
ln -s libgnutls.so.26.11.6 libgnutls.so.13
and then checking again:
/usr/lib>ldd /usr/lib/python2.4/vendor-packages/libvirtmod.so
libvirt.so.0 => /usr/lib/libvirt.so.0
libxenstore.so.3.0 => /usr/lib/libxenstore.so.3.0
libnsl.so.1 => /lib/libnsl.so.1
libsocket.so.1 => /lib/libsocket.so.1
libc.so.1 => /lib/libc.so.1
libxml2.so.2 => /lib/libxml2.so.2
libgnutls.so.13 => /usr/lib/libgnutls.so.13
libpthread.so.1 => /lib/libpthread.so.1
libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1
libmp.so.2 => /lib/libmp.so.2
libmd.so.1 => /lib/libmd.so.1
libscf.so.1 => /lib/libscf.so.1
libz.so.1 => /lib/libz.so.1
libm.so.2 => /lib/libm.so.2
libtasn1.so.3 => /usr/lib/libtasn1.so.3
libgcrypt.so.11 => /usr/lib/libgcrypt.so.11
libgpg-error.so.0 => /usr/lib/libgpg-error.so.0
libuutil.so.1 => /lib/libuutil.so.1
libgen.so.1 => /lib/libgen.so.1
libsmbios.so.1 => /usr/lib/libsmbios.so.1
The above library has linked to the newly created softlink.
/usr/lib>ldd /usr/lib/python2.4/vendor-packages/64/libvirtmod.so
libvirt.so.0 => /usr/lib/64/libvirt.so.0
libxenstore.so.3.0 => /usr/lib/64/libxenstore.so.3.0
libnsl.so.1 => /lib/64/libnsl.so.1
libsocket.so.1 => /lib/64/libsocket.so.1
libc.so.1 => /lib/64/libc.so.1
libxml2.so.2 => /lib/64/libxml2.so.2
libgnutls.so.13 => (file not found)
libpthread.so.1 => /lib/64/libpthread.so.1
libgcc_s.so.1 => /usr/sfw/lib/amd64/libgcc_s.so.1
libmp.so.2 => /lib/64/libmp.so.2
libmd.so.1 => /lib/64/libmd.so.1
libscf.so.1 => /lib/64/libscf.so.1
libz.so.1 => /lib/64/libz.so.1
libm.so.2 => /lib/64/libm.so.2
libuutil.so.1 => /lib/64/libuutil.so.1
libgen.so.1 => /lib/64/libgen.so.1
libsmbios.so.1 => /usr/lib/64/libsmbios.so.1
But this library still cannot see the newly created softlink, why?
Next:
virt-install
Mon, 16 Nov 2009 12:41:39 ERROR virConnectOpen() failed
Traceback (most recent call last):
File "/usr/bin/virt-install", line 511, in ?
main()
File "/usr/bin/virt-install", line 357, in main
conn = cli.getConnection(options.connect)
File
"/export/builds/xvm_115///proto/install/usr/lib/python2.4/site-packages/virtinst/cli.py",
line 92, in getConnection
File "libvirt.py", line 135, in open
if ret is None:raise libvirtError(''virConnectOpen()
failed'')
libvirtError: virConnectOpen() failed
virt-install does not work.
/root/solaris/guest>virt-manager
/usr/share/virt-manager/virtManager/connect.py:33: GtkWarning: ld.so.1:
isapython2.4: fatal: /a/usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so: open
failed: No such file or directory
self.window = gtk.glade.XML(config.get_glade_dir() +
"/vmm-open-connection.glade", "vmm-open-connection",
domain="virt-manager")
/usr/share/virt-manager/virtManager/connect.py:33: GtkWarning: Loading IM
context type ''xim'' failed
self.window = gtk.glade.XML(config.get_glade_dir() +
"/vmm-open-connection.glade", "vmm-open-connection",
domain="virt-manager")
libvir: Remote error : No such file or directory
libvir: Remote error : No such file or directory
/usr/share/virt-manager/virtManager/error.py:45: GtkWarning: ld.so.1:
isapython2.4: fatal: /a/usr/lib/gtk-2.0/2.10.0/immodules/im-xim.so: open
failed: No such file or directory
sw.add (details)
/usr/share/virt-manager/virtManager/error.py:45: GtkWarning: Loading IM
context type ''xim'' failed
sw.add (details)
yes, virt-manager''s gui came up, but gave error message (as below)
after
"connect" is attempted:
Unable to open a connection to the Xen hypervisor/daemon.
Verify that:
- A Xen host kernel was booted
- The Xen service has been started
Checking on dom0 hypervisor (this is booted choosing xVM on grub):
/usr/lib>svcs -a |grep xvm
disabled 7:27:29 svc:/system/xvm/ipagent:default
online 7:27:59 svc:/system/xvm/store:default
online 7:28:09 svc:/system/xvm/xend:default
online 7:28:09 svc:/system/xvm/console:default
online 10:19:24 svc:/system/xvm/domains:default
maintenance 7:28:09 svc:/system/xvm/virtd:default
Both the refresh and enable using svcadm for "xvm/virtd" all failed
svcs -xv gave:
svc:/system/xvm/virtd:default (libvirt management daemon)
State: maintenance since Mon Nov 16 07:28:09 2009
Reason: Start method failed repeatedly, last exited with status 137.
See: http://sun.com/msg/SMF-8000-KS
See: man -M /usr/share/man -s 1M libvirtd
See: /var/svc/log/system-xvm-virtd:default.log
Impact: This service is not running.
And looking into the log file mentioned above:
ld.so.1: libvirtd: fatal: libgnutls.so.13: open failed: No such file or
director
y
Killed
[ Nov 13 07:18:37 Method "start" exited with status 137. ]
[ Nov 16 07:28:09 Executing start method ("/lib/svc/method/virtd
start"). ]
ld.so.1: libvirtd: fatal: libgnutls.so.13: open failed: No such file or
director
y
Killed
[ Nov 16 07:28:09 Method "start" exited with status 137. ]
[ Nov 16 07:28:09 Executing start method ("/lib/svc/method/virtd
start"). ]
ld.so.1: libvirtd: fatal: libgnutls.so.13: open failed: No such file or
director
y
Killed
[ Nov 16 07:28:09 Method "start" exited with status 137. ]
[ Nov 16 07:28:09 Executing start method ("/lib/svc/method/virtd
start"). ]
ld.so.1: libvirtd: fatal: libgnutls.so.13: open failed: No such file or
director
y
Killed
[ Nov 16 07:28:09 Method "start" exited with status 137. ]
[ Nov 16 12:42:56 Rereading configuration. ]
Why?
--
Regards,
Peter Teoh