Jacob Gorm Hansen
2005-Sep-27 13:24 UTC
[Xen-devel] Minimal fileset for Xenstore domU boot
hi, I am trying to figure out how to boot a domain using Xenstore. My current setup does not allow me to install the XenD family of tools and technologies onto my debug machines, and usually I am able to get by using vmtools instead. Could someone give me a rough skech of what I need to tell Xenstore in order for my domain to complete booting? I have disabled both the blkfront and netfront drivers in Linux, but booting still hangs at some point after xenbus has been initialized. How do I access the console, do I need to run xenconsoled? Thanks, Jacob -- Save time and bandwidth with EDelta: http://www.diku.dk/~jacobg/edelta/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 27 Sep 2005, at 14:24, Jacob Gorm Hansen wrote:> Could someone give me a rough skech of what I need to tell Xenstore in > order for my domain to complete booting? I have disabled both the > blkfront and netfront drivers in Linux, but booting still hangs at > some point after xenbus has been initialized. > > How do I access the console, do I need to run xenconsoled?Yes, you do, and xenconsoled requires xenstored. And your tools must introduce xenstored to the new domain when it is built. Without xenconsoled the new domain will stall waiting for the console ring to empty, which never happens. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jacob Gorm Hansen
2005-Sep-27 13:55 UTC
Re: [Xen-devel] Minimal fileset for Xenstore domU boot
On 9/27/05, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:> > Yes, you do, and xenconsoled requires xenstored. And your tools must > introduce xenstored to the new domain when it is built. > > Without xenconsoled the new domain will stall waiting for the console > ring to empty, which never happens.Thanks, I removed the domU console driver for now and my domain boots. xc_linux_build() takes a console_evtchn as argument, what is the strategy for obtaining that value from xenconsoled? Jacob -- Save time and bandwidth with EDelta: http://www.diku.dk/~jacobg/edelta/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 27 Sep 2005, at 14:55, Jacob Gorm Hansen wrote:> Thanks, I removed the domU console driver for now and my domain boots. > xc_linux_build() takes a console_evtchn as argument, what is the > strategy for obtaining that value from xenconsoled?The tools must write the page frame number of the console page, and the local event-channel port (that is, domain0''s port, not console_evtchn which is domainU''s port) to xenstore at: <path_to_domU>/console/ring-ref <path_to_domU>/console/port See console/daemon/io.c. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Anthony Liguori
2005-Sep-27 18:10 UTC
Re: [Xen-devel] Minimal fileset for Xenstore domU boot
Jacob Gorm Hansen wrote:>On 9/27/05, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote: > > >>Yes, you do, and xenconsoled requires xenstored. And your tools must >>introduce xenstored to the new domain when it is built. >> >>Without xenconsoled the new domain will stall waiting for the console >>ring to empty, which never happens. >> >> > >Thanks, I removed the domU console driver for now and my domain boots. >xc_linux_build() takes a console_evtchn as argument, what is the >strategy for obtaining that value from xenconsoled? > >Setting up the console is just like setting up xenstore. The tools have to create an interdomain evtchn between domain-0 and the remote domain. The xc_linux_build function will return to MFNs. You have to introduce the domain with the local evtchn for the store and the store MFN. Then you have to write the local console evtchn and console MFN to the store. Regards, Anthony Liguori>Jacob >-- >Save time and bandwidth with EDelta: http://www.diku.dk/~jacobg/edelta/ > >_______________________________________________ >Xen-devel mailing list >Xen-devel@lists.xensource.com >http://lists.xensource.com/xen-devel > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel