[Pkg-xen-devel] Error starting xend?

Steve Kemp steve at steve.org.uk
Sun Sep 17 15:41:34 CEST 2006


On Sun, Sep 17, 2006 at 03:30:24PM +0200, Bastian Blank wrote:

> Please do dpkg -l "*xen*" and show this. The output includes the state
> of the whole bunch of packages. I think you have the old xen-utils-3.0
> package in a removed but not purged state.

  Certainly:

skx at itchy:~$ dpkg -l "*xen*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  libc6-xen      2.3.6.ds1-4    GNU C Library: Shared libraries [Xen version
un  libxen-python  <none>         (no description available)
un  libxen2.0      <none>         (no description available)
un  libxen2.0-dev  <none>         (no description available)
pn  linux-headers- <none>         (no description available)
pn  linux-headers- <none>         (no description available)
pn  linux-headers- <none>         (no description available)
pn  linux-headers- <none>         (no description available)
pn  linux-image-2. <none>         (no description available)
pn  linux-image-2. <none>         (no description available)
ii  linux-image-2. 2.6.17-9       Linux 2.6.17 image on PPro/Celeron/PII/PIII/
pn  linux-modules- <none>         (no description available)
pn  linux-modules- <none>         (no description available)
ii  linux-modules- 2.6.17-9       Linux 2.6.17 modules on PPro/Celeron/PII/PII
pn  pwc-modules-2. <none>         (no description available)
un  xen            <none>         (no description available)
un  xen-hypervisor <none>         (no description available)
un  xen-hypervisor <none>         (no description available)
pn  xen-hypervisor <none>         (no description available)
un  xen-hypervisor <none>         (no description available)
un  xen-hypervisor <none>         (no description available)
ii  xen-hypervisor 3.0-unstable+h The Xen Hypervisor on i386-class
un  xen-hypervisor <none>         (no description available)
un  xen-hypervisor <none>         (no description available)
pn  xen-hypervisor <none>         (no description available)
un  xen-hypervisor <none>         (no description available)
un  xen-hypervisor <none>         (no description available)
ii  xen-ioemu-3.0- 3.0-unstable+h XEN administrative tools
ii  xen-linux-syst 2.6.17-9       XEN system with Linux 2.6.17 image on PPro/C
ii  xen-tools      2.6-1          Tools to manage debian XEN virtual servers
un  xen-utils      <none>         (no description available)
pn  xen-utils-3.0  <none>         (no description available)
ii  xen-utils-3.0- 3.0-unstable+h XEN administrative tools
pn  xen-utils-3.0. <none>         (no description available)
ii  xen-utils-comm 3.0+hg11292-2  XEN administrative tools - common files
un  xengine        <none>         (no description available)

  Whoah, what a big list!

> This files seems to be a leftover from xen-utils-3.0, I don't know why
> they are not removed.

  OK.

> You may test the following. Replace the following line in
> /usr/lib/xen-3.0-unstable-1/bin/xend
> | sys.path.append('%s/../lib/python' % sys.path[0])
> with
> | sys.path[0] = '%s/../lib/python' % sys.path[0]
> 
> This always checks the correct path first.

  I've made that change and now recieve this:

skx at itchy:/usr/lib/xen-3.0-unstable-1$ sudo /etc/init.d/xend restart
Restarting XEN control daemon: xendTraceback (most recent call last):
  File "/usr/lib/xen-3.0-unstable-1/bin/xend", line 118, in ?
    sys.exit(main())
  File "/usr/lib/xen-3.0-unstable-1/bin/xend", line 99, in main
    start_consoled()
  File "/usr/lib/xen-3.0-unstable-1/bin/xend", line 85, in start_consoled
    os.execvp(sys.path[0] + '/xenconsoled', ['xenconsoled'])
  File "/usr/lib/python2.4/os.py", line 341, in execvp
    _execvpe(file, args)
  File "/usr/lib/python2.4/os.py", line 367, in _execvpe
    func(file, *argrest)
OSError: [Errno 2] No such file or directory
 failed!


  Adding a print to the code:

  sys.path[0] = '%s/../lib/python' % sys.path[0]
  print sys.path[0]

  I see:
/usr/lib/xen-3.0-unstable-1/bin/../lib/python

  That seems to be correct since my xc.so is at
 /usr/lib/xen-3.0-unstable-1/lib/python/xen/lowlevel/xc.so

Steve
-- 



More information about the Pkg-xen-devel mailing list