[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] python xs.read/write in domU
Hi Kareem, On Feb 19, 2008 4:00 PM, Kareem Dana <kareem.dana@xxxxxxxxx> wrote: > This code works fine in dom0. I've found that if i do xenstore-read -s > it will give me the same No such file or directory error. The -s > parameter forces xenstore-read to call xs_daemon_open() instead of > xs_domain_open(). The python lowlevel xs file always calls > xs_daemon_open(). Is this the issue? What is the difference between > daemon and domain_open? I expect that this is the issue. xs_daemon_open() uses a UNIX domain socket for communication with the xenstore daemon, which is a process running in Dom0. xs_domain_open() uses a kernel module and the xenbus to talk to xenstore. Therefore, only xs_domain_open() will work in a DomU. You could probably add a function to lowlevel/xs.c to do this so that you can use the Python functions in your DomU script. > Also just to test, I tried to run xend inside domU. Xend fails with an > operation not permitted error, but then when I run test.py after that > I get a Connection Refused error instead of No such file or directory. > Not sure what is going on. I'm using Ubuntu 7.10 with Xen 3.1.0 from > their prebuilt packages. A rough guess here would be that starting xend also starts xenstored in your DomU, which initialises the relevant sockets. Your program would then be attempting to connect to the xenstore running in your DomU, which is being refused for some reason. Regards, Derek. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |