I'm trying to learn xen.
fc6 install, all updates except the kernel, which is 2.6.18-1.2869.fc6xen (the machine doesn't run the 2.6.19 kernel).
If I log in as root, I get the following:
I can run /usr/bin/virt-manager, but not /usr/sbin/virt-manager:
# virt-manager Traceback (most recent call last): File "/usr/share/virt-manager/virt-manager.py", line 56, in ? import gtk ImportError: No module named gtk
With xm I get:
# xm Traceback (most recent call last): File "/usr/sbin/xm", line 8, in ? from xen.xm import main ImportError: No module named xen.xm
# rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n"|fgrep xen kernel-xen-2.6.18-1.2869.fc6.i686 xen-devel-3.0.3-3.fc6.i386 xen-libs-3.0.3-3.fc6.i386 xen-3.0.3-3.fc6.i386
What am I missing?
Mogens
On February 2, 2007, Mogens Kjaer wrote:
I'm trying to learn xen.
fc6 install, all updates except the kernel, which is 2.6.18-1.2869.fc6xen (the machine doesn't run the 2.6.19 kernel).
If I log in as root, I get the following:
I can run /usr/bin/virt-manager, but not /usr/sbin/virt-manager:
# virt-manager Traceback (most recent call last): File "/usr/share/virt-manager/virt-manager.py", line 56, in ? import gtk ImportError: No module named gtk
With xm I get:
# xm Traceback (most recent call last): File "/usr/sbin/xm", line 8, in ? from xen.xm import main ImportError: No module named xen.xm
# rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n"|fgrep xen kernel-xen-2.6.18-1.2869.fc6.i686 xen-devel-3.0.3-3.fc6.i386 xen-libs-3.0.3-3.fc6.i386 xen-3.0.3-3.fc6.i386
What am I missing?
Good luck! I'm not going to bother. I will wait until I can afford a new processor and then I will try KVM. I have VMware 4.5 anyhow, just to play around with the nifty idea.
Sorry, they've all gone to bed. Can't help :-(
On Fri, 2007-02-02 at 09:44 +0100, Mogens Kjaer wrote:
I'm trying to learn xen.
fc6 install, all updates except the kernel, which is 2.6.18-1.2869.fc6xen (the machine doesn't run the 2.6.19 kernel).
If I log in as root, I get the following:
I can run /usr/bin/virt-manager, but not /usr/sbin/virt-manager:
# virt-manager Traceback (most recent call last): File "/usr/share/virt-manager/virt-manager.py", line 56, in ? import gtk ImportError: No module named gtk
With xm I get:
# xm Traceback (most recent call last): File "/usr/sbin/xm", line 8, in ? from xen.xm import main ImportError: No module named xen.xm
# rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n"|fgrep xen kernel-xen-2.6.18-1.2869.fc6.i686 xen-devel-3.0.3-3.fc6.i386 xen-libs-3.0.3-3.fc6.i386 xen-3.0.3-3.fc6.i386
What am I missing?
You need to install the gtk2 RPMs:
yum install gtk2
If you have the space, might as well install all gtk2 stuff:
yum install gtk2*
---------------------------------------------------------------------- - Rick Stevens, Senior Systems Engineer rstevens@vitalstream.com - - VitalStream, Inc. http://www.vitalstream.com - - - - Where there's a will, I want to be in it. - ----------------------------------------------------------------------
Rick Stevens wrote: ...
You need to install the gtk2 RPMs:
yum install gtk2
If you have the space, might as well install all gtk2 stuff:
yum install gtk2*
# yum install gtk2* ... ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: gtk2-devel i386 2.10.8-1.fc6 updates 3.0 M gtk2hs-doc i386 0.9.10.2-0.1.fc6 extras 842 k Installing for dependencies: atk-devel i386 1.12.2-1.fc6 core 125 k libXi-devel i386 1.0.1-3.1 core 52 k libXinerama-devel i386 1.0.1-2.1 core 5.2 k pango-devel i386 1.14.8-1.fc6 updates 281 k
Transaction Summary ============================================================================= ...
# xm Traceback (most recent call last): File "/usr/sbin/xm", line 8, in ? from xen.xm import main ImportError: No module named xen.xm
Sorry, this didn't help.
Mogens
On Fri, 2007-02-02 at 23:53 +0100, Mogens Kjaer wrote:
Rick Stevens wrote: ...
You need to install the gtk2 RPMs:
yum install gtk2
If you have the space, might as well install all gtk2 stuff:
yum install gtk2*
# yum install gtk2* ... ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: gtk2-devel i386 2.10.8-1.fc6 updates 3.0 M gtk2hs-doc i386 0.9.10.2-0.1.fc6 extras 842 k Installing for dependencies: atk-devel i386 1.12.2-1.fc6 core 125 k libXi-devel i386 1.0.1-3.1 core 52 k libXinerama-devel i386 1.0.1-2.1 core 5.2 k pango-devel i386 1.14.8-1.fc6 updates 281 k
Transaction Summary
...
# xm Traceback (most recent call last): File "/usr/sbin/xm", line 8, in ? from xen.xm import main ImportError: No module named xen.xm
Sorry, this didn't help.
It got you past the gtk issue. xen.xm module is part of the xen RPM. You have that installed, right? If so, then there's something weird. The module should be in /usr/lib[64]/python2.4/site-packages. It's looking for "/usr/lib[64]/python2.4/site-packages/xen/xm/main.pyc".
---------------------------------------------------------------------- - Rick Stevens, Senior Systems Engineer rstevens@vitalstream.com - - VitalStream, Inc. http://www.vitalstream.com - - - - To err is human, to moo bovine. - ----------------------------------------------------------------------
Rick Stevens wrote: ...
It got you past the gtk issue. xen.xm module is part of the xen RPM. You have that installed, right? If so, then there's something weird. The module should be in /usr/lib[64]/python2.4/site-packages. It's looking for "/usr/lib[64]/python2.4/site-packages/xen/xm/main.pyc".
# ls -l /usr/lib/python2.4/site-packages/xen/xm/main.py -rw-r--r-- 1 root root 44354 Jan 11 19:37 /usr/lib/python2.4/site-packages/xen/xm/main.py # rpm -qf /usr/lib/python2.4/site-packages/xen/xm/main.py xen-3.0.3-3.fc6
It's there all right.
I've tried
strace -o/tmp/xm.strace xm
and I've put the output at:
ftp://ftp.crc.dk/pub/xen/xm.strace
Mogens
Mogens Kjaer wrote: ...
strace -o/tmp/xm.strace xm
It was a stupid mistake by me; I had a local python installed in /usr/local/bin - required by some other software.
Mogens