hello,
I tried to install xen 2.0.5, but got some errors when starting xend.
here is how I installed xen into my system (Ubuntu Hoary)
- got xen-2.0.5-src.tgz from the home page
- untar, then "make world", then "make install". everything
was fine
- configure grub for xen
- reboot the machine with xen-2.0.5
after these steps, I logged in and tried to start xend
(/etc/init.d/xend start). I just got ten dot (.) printed out, then it
stops. I looked more closely and found that xend could not start. the
result of "xend status" returns 3 as error code.
then I looked at /var/log/xend-debug.log. here is the last few lines:
^^^
self.xd = XendDomain.instance()
File "/usr/lib/python/xen/xend/XendDomain.py", line 798, in instance
inst = XendDomain()
File "/usr/lib/python/xen/xend/XendDomain.py", line 60, in __init__
self.domain_db = self.db.fetchall("")
File "/usr/lib/python/xen/xend/XendDB.py", line 69, in fetchall
for k in dircache.listdir(dpath):
File "/usr/lib/python2.4/dircache.py", line 25, in listdir
mtime = os.stat(path).st_mtime
OSError: [Errno 2] No such file or directory:
''/var/lib/xen/xend-db/domain/''
^^^
it looks like that xend cannot start because of lacking a directory,
or it failed because of other reasons. anybody experienced this
problem, or know how to fix this?
by the way, I used to install 2.0.5 on several other machines, but
never got any trouble like this.
thank you a lot,
aq
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
On Wed, 2005-04-06 at 11:16, aq wrote:> it looks like that xend cannot start because of lacking a directory, > or it failed because of other reasons. anybody experienced this > problem, or know how to fix this?Most Xend starting problems can be solved with the following command: ]# rm -rf /var/lib/xen/* Regards,> by the way, I used to install 2.0.5 on several other machines, but > never got any trouble like this. > > thank you a lot, > aq > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- Anthony Liguori Linux Technology Center (LTC) - IBM Austin E-mail: aliguori@us.ibm.com Phone: (512) 838-1208 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> File "/usr/lib/python2.4/dircache.py", line 25, in listdir > mtime = os.stat(path).st_mtime OSError: [Errno 2] No such file or > directory: ''/var/lib/xen/xend-db/domain/'' ^^^OK, this is a somewhat strange problem. The other instance of this I''m aware of was also Python 2.4. What Python were your other machines using? Is there anyone using Python 2.4 who *hasn''t* seen this problem. The other user found that manually mkdir-ing the 3 or 4 missing directories that Xend complains about fixes the problem. Let us know how you get on, Mark> > it looks like that xend cannot start because of lacking a directory, > or it failed because of other reasons. anybody experienced this > problem, or know how to fix this? > > by the way, I used to install 2.0.5 on several other machines, but > never got any trouble like this. > > thank you a lot, > aq > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I installed by running make install. My xend would not start either, when I ran dist/install.sh it started working. This was on a debian unstable. //Peter Hellman M.A. Williamson wrote:>> File "/usr/lib/python2.4/dircache.py", line 25, in listdir >> mtime = os.stat(path).st_mtime OSError: [Errno 2] No such file or >> directory: ''/var/lib/xen/xend-db/domain/'' ^^^ > > > OK, this is a somewhat strange problem. The other instance of this I''m > aware of was also Python 2.4. What Python were your other machines > using? Is there anyone using Python 2.4 who *hasn''t* seen this problem. > > The other user found that manually mkdir-ing the 3 or 4 missing > directories that Xend complains about fixes the problem. > > Let us know how you get on, > Mark > >> >> it looks like that xend cannot start because of lacking a directory, >> or it failed because of other reasons. anybody experienced this >> problem, or know how to fix this? >> >> by the way, I used to install 2.0.5 on several other machines, but >> never got any trouble like this. >> >> thank you a lot, >> aq >> >> _______________________________________________ >> Xen-users mailing list >> Xen-users@lists.xensource.com >> http://lists.xensource.com/xen-users >> > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Apr 7, 2005 9:08 PM, Peter Hellman <listuser@skymail.se> wrote:> I installed by running make install. > My xend would not start either, when I ran dist/install.sh it started > working. > This was on a debian unstable. > > //Peter HellmanPeter, do you use python 2.4? I dont see why running dist/install.sh can solve the problem. That script just copy binary file to the system, no thing more nothing less. I tried, however, but that doesnt work for me. still the same problem. regards, aq _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 07 Apr 2005 12:12:02 +0100, M.A. Williamson <maw48@cam.ac.uk> wrote:> > File "/usr/lib/python2.4/dircache.py", line 25, in listdir > > mtime = os.stat(path).st_mtime OSError: [Errno 2] No such file or > > directory: ''/var/lib/xen/xend-db/domain/'' ^^^ > > OK, this is a somewhat strange problem. The other instance of this I''m > aware of was also Python 2.4. What Python were your other machines using?indeed, Mark. the other machines use python 2.3. so the python 2.4 causes this trouble.> > The other user found that manually mkdir-ing the 3 or 4 missing directories > that Xend complains about fixes the problem. >great trick, it works for me. I just made /var/lib/xen/xend-db/{domain,vnet}, then xend could start. to tell the truth, in fact I used to try that trick: after looking at the debug log, I was back to made the {domain} directory. then the second error about {vnet} arose. I thougt myself: WTF, how many directories will I need to make manually this way, then I gave up and posted to the list to ask ;-) thank you for your help, Mark. aq _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
The wierd thing is that I had to do this on both machines I installed on, I see that make install runs dist/install.sh .. wierd. Python version seems to be 2.3.5. Have a nice day //Peter Hellman aq wrote:>On Apr 7, 2005 9:08 PM, Peter Hellman <listuser@skymail.se> wrote: > > >>I installed by running make install. >>My xend would not start either, when I ran dist/install.sh it started >>working. >>This was on a debian unstable. >> >>//Peter Hellman >> >> > >Peter, do you use python 2.4? I dont see why running dist/install.sh >can solve the problem. That script just copy binary file to the >system, no thing more nothing less. I tried, however, but that doesnt >work for me. still the same problem. > >regards, >aq > >_______________________________________________ >Xen-users mailing list >Xen-users@lists.xensource.com >http://lists.xensource.com/xen-users > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users