Xend fails to start on bootup.
Here is what I am having problems with.
Getting Xen to start on reboot !!!
1. Start xend on reboot
2. Boot right up into the VM session / domain
Here is what I have done.
1. chkconfig --level 3 xend on
2. chkconfig --level 3 xendomains on
I also copy /etc/xen/<config> to the /etc/xen/auto directory as well. I then reboot my box and during startup I see
xend failed message , however I do see the xendomains start up. I went threw my /var/log/messages and notice
the standard error "Starting xend: Failed" .... Then I went to your
documentation and notice that there should the
following directory /usr/lib/python2.2/site-packages/xen/xend. One thing I notice is I don't have the /xen/xend directory.
I am running RH 3.0 AS , Python-2.3.4. and Twisted-1.3.0. My xen version is 2.0.1 and I am using the 2.6.9 kernel for
my VM. Do you know if there are any known issues? Or can you help me get this to work?
Here is the exact message from the /var/log/messages
Feb 11 09:56:50 anahst22 xend: Traceback (most recent call last): Feb 11 09:56:50 anahst22 xend: File "/usr/sbin/xend", line 27, in ? Feb 11 09:56:50 anahst22 xend: from xen.xend.server import SrvDaemon Feb 11 09:56:50 anahst22 xend: ImportError: No module named xen.xend.server Feb 11 09:56:50 anahst22 rc: Starting xend: failed Feb 11 09:56:59 anahst22 xendomains: Starting auto Xen domains: Feb 11 09:57:00 anahst22 xendomains: Traceback (most recent call last): Feb 11 09:57:00 anahst22 xendomains: File "/usr/sbin/xm", line 7, in ? Feb 11 09:57:00 anahst22 xendomains: from xen.xm import main Feb 11 09:57:00 anahst22 xendomains: ImportError: No module named xen.xm
The next thing I did was an "strace /usr/sbin/xend start" and here is what I am seeing !!
stat64("/usr/local/lib/python2.3/site-packages/xen", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat64("/usr/local/lib/python2.3/site-packages/xen/xend", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 stat64("/usr/local/lib/python2.3/site-packages/xen/xend/__init__.py", {st_mode=S_IFREG|0644, st_size=2, ...}) = 0 stat64("/usr/local/lib/python2.3/site-packages/xen/xend/__init__", 0xbfffe9b0) = -1 ENOENT (No such file or directory) open("/usr/local/lib/python2.3/site-packages/xen/xend/__init__.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/usr/local/lib/python2.3/site-packages/xen/xend/__init__module.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
***I checked "/usr/local/lib/python2.3/site-packages/xen/xend" and this is missing below.***
stat64("/usr/local/lib/python2.3/site-packages/xen/xend/__init__", 0xbfffe9b0) = -1 ENOENT (No such file or directory) open("/usr/local/lib/python2.3/site-packages/xen/xend/__init__.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) open("/usr/local/lib/python2.3/site-packages/xen/xend/__init__module.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
NOTICE THIS LINE IS GOOD! stat64("/usr/local/lib/python2.3/site-packages/xen/xend/__init__.py", {st_mode=S_IFREG|0644, st_size=2, ...}) = 0__init__.py
And my question is why would this be missing ?? kinda werid, however when I run /usr/sbin/xend start from the shell is works fine. Let me know what you think ...
Please get back to me I would really appreciate it. And please don't forget to CC
[email protected]
Thanks,
~D
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click