From: Adam Wendt Subject: Re: Problem with starting guest (para_virt dom0) Date: Fri, 16 Jan 2009 13:40:08 -0800 Message-ID: <7385ecaf0901161340i2697ae53s215f1f52a50b73d9@mail.gmail.com> References: <7385ecaf0901142356l5fc58aabx4f525d5a453287d7@mail.gmail.com> <1232006689.23860.14.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2089279400==" Return-path: In-Reply-To: <1232006689.23860.14.camel@localhost.localdomain> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============2089279400== Content-Type: multipart/alternative; boundary=0015174c368ebd58050460a06a72 --0015174c368ebd58050460a06a72 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Thu, Jan 15, 2009 at 12:04 AM, Ian Campbell wrote: > On Wed, 2009-01-14 at 23:56 -0800, Adam Wendt wrote: > > Hi, > > > > I've managed to get a para_virt dom0 running on my x86_64 system but > > having problems starting a guest. First problem was that xenstore > > client programs weren't able to communicate over xenbus (xs_write_all > > hitting its return false branch) still not sure why this is happening. > > I was able to at least get xenstore working by hacking the client to > > use the normal socket by default. > > Perhaps you need to enable xenfs in your kernel build and mount it > on /proc/xen in order to gain access to /proc/xen/xsd*? Not sure if you actually meant /proc/xen/xsd or that was just a mistype, but xs_lib.c tries to use /proc/xen/xenbus which _does_ exist in /proc/xen/ but like I said above the xs_write_all hits the return false branch so something wrong with the filehandle or who knows what, for now I was able to get rudimentary xenstore functionality working defaulting to the socket interface, but when I try to start a guest I get a bunch of: xenstore-write: could not write path backend/vbd/1/770/hotplug-error xenstore-write: could not write path backend/vbd/1/771/hotplug-error xenstore-write: could not write path backend/vbd/1/770/hotplug-error In the hotplug log and then guest creation errors out about failed hotplug. So still unable to start a guest. > > > > But now I'm getting: > > Error: [Errno 2] No such file or directory: '/proc/xen/balloon' > > > > Google only turned up reports that this is related to trying to give > > the guest too much memory, but xm info shows I have over 3.5G free and > > only trying to give 128M to the guest. Any other ideas what might be > > causing this? > > pvops only supports balloon via a sysfs interface not proc. There is a > patch in xen-unstable.hg from Jeremy Fitzhardinge which fixes this but > you'll either need to use xen-unstable or backport it to whatever you > are using (it's pretty simple, IIRC). > Ok yea I switched back to xen-unstable for now, though not sure if unstable is causing my above xenstore-write error as I wasn't getting that on 3.3.1 (but was then getting the balloon error) Adam > > Ian. > > > --0015174c368ebd58050460a06a72 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, Jan 15, 2009 at 12:04 AM, Ian Campbell <Ian.Campbell@citrix.com>= wrote:
On Wed, 2009-01-14 at 23:56 -0800, Adam Wendt wrote:<= br> > Hi,
>
> I've managed to get a para_virt dom0 running on my x86_64 system b= ut
> having problems starting a guest.  First problem was that xenstor= e
> client programs weren't able to communicate over xenbus (xs_write_= all
> hitting its return false branch) still not sure why this is happening.=
> I was able to at least get xenstore working by hacking the client to > use the normal socket by default.

Perhaps you need to enable xenfs in your kernel build and mount it on /proc/xen in order to gain access to /proc/xen/xsd*?
Not sure if you actually meant /proc/xen/xsd or that was just a mistype, = but xs_lib.c tries to use /proc/xen/xenbus which _does_ exist in /proc/xen/= but like I said above the xs_write_all hits the return false branch so som= ething wrong with the filehandle or who knows what, for now I was able to g= et rudimentary xenstore functionality working defaulting to the socket inte= rface, but when I try to start a guest I get a bunch of:

xenstore-write: could not write path backend/vbd/1/770/hotplug-errorxenstore-write: could not write path backend/vbd/1/771/hotplug-error
xe= nstore-write: could not write path backend/vbd/1/770/hotplug-error

In the hotplug log and then guest creation errors out about failed hotplug.= So still unable to start a guest.


> But now I'm getting:
> Error: [Errno 2] No such file or directory: '/proc/xen/balloon'= ;
>
> Google only turned up reports that this is related to trying to give > the guest too much memory, but xm info shows I have over 3.5G free and=
> only trying to give 128M to the guest. Any other ideas what might be > causing this?

pvops only supports balloon via a sysfs interface not proc. There is = a
patch in xen-unstable.hg from Jeremy Fitzhardinge which fixes this but
you'll either need to use xen-unstable or backport it to whatever you are using (it's pretty simple, IIRC).

Ok yea I switched back= to xen-unstable for now, though not sure if unstable is causing my above x= enstore-write error as I wasn't getting that on 3.3.1 (but was then get= ting the balloon error)

Adam

Ian.



--0015174c368ebd58050460a06a72-- --===============2089279400== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============2089279400==--