Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: basic xend problems



On Fri, Apr 30, 2010 at 02:33:57PM +0200, Jukka Salmi wrote:
> Hi,
> 
> I'm having troubles setting up Xen 3.3 on a NetBSD/amd64 5.1_RC1 system
> with xen{kernel,tools}33 from pkgsrc.
> 
> Dom0 boots fine.  Then I start xend and xenbackendd using the rc.d
> scripts shipping with the xentools33 package.  Now I'm able to create a
> domU (`xm create -u ...'), use it and destroy it.  So far so good.  But
> while stopping xenbackendd now succeeds, stopping xend fails:
> 
>   $ sudo /etc/rc.d/xenbackendd onestop
>   Stopping xenbackendd.
>   Waiting for PIDS: 463.
>   $ sudo /etc/rc.d/xend onestop
>   Stopping xend.
>   Waiting for PIDS: 958, 958, 958, 958, 958, 958, 958, 958, 958, 958, 958^C
>   $ ps -ax | grep xen
>     97 ?     Il   0:00.01 xenconsoled
>    958 ?     Il   0:00.45 /usr/pkg/bin/python2.6 /usr/pkg/sbin/xend start
>    963 ?     I    0:00.12 xenstored --pid-file /var/run/xenstore.pid
>   $ sudo kill 958 963 97
>   $ ps -ax | grep xen
>    958 ?     Il   0:00.46 /usr/pkg/bin/python2.6 /usr/pkg/sbin/xend start
>   $ sudo kill -9 958
>   $ ps -ax | grep xen
> 
> When xend received the SIGTERM, it logged
> 
>   [2010-04-30 13:55:10 958] DEBUG (XMLRPCServer:235) XMLRPCServer.cleanup()
> 
> but apparently did not die until it was sent a SIGKILL.

I'm not sure xend is really designed to be stopped/restarted.
The xenstore would need some cleanup between runs, and I'm not sure
it happends.
That said, I've had to kill & restart xend on occasion and it sometimes
worked.

> 
> Trying to start xend again now fails with the following being logged:
> 
>   [2010-04-30 13:59:06 965] INFO (SrvDaemon:331) Xend Daemon started
>   [2010-04-30 13:59:06 965] INFO (SrvDaemon:335) Xend changeset: unavailable.
>   [2010-04-30 13:59:06 965] ERROR (SrvDaemon:347) Exception starting xend 
> (Shared object "libexpat.so.1" not found)
>   Traceback (most recent call last):
>     File "/usr/pkg/lib/python2.6/site-packages/xen/xend/server/SrvDaemon.py", 
> line 339, in run
>       servers = SrvServer.create()
>     [...]
>     File "/usr/pkg/lib/python2.6/site-packages/_xmlplus/parsers/expat.py", 
> line 4, in <module>
>       from pyexpat import *
>   ImportError: Shared object "libexpat.so.1" not found
>   [2010-04-30 13:59:06 1022] INFO (SrvDaemon:219) Xend exited with status 1.
> 
> The system in question does not have a libexpat.so since I did not extract the
> xbase set.

The binaries from bulk build are linked against the x11 expact.
You don't need the whole x11 binairies, only libexpact.

It's strange it could start the first time though.


-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index