Skip to contentSkip to conversation

Minimal fileset for Xenstore domU boot

DISCUSSION Jacob Gorm Hansen 3 participants 5 messages Sep 27, 2005

lore
Share & tools
lore
#0 lore raw

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/

#1 lore raw
Quoted 6 lines · Jacob Gorm Hansen

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

#2 lore raw
Quoted 6 lines · Keir Fraser

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/

#3 lore raw
Quoted 3 lines · Jacob Gorm Hansen

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

#4 lore raw
In reply to Jacob Gorm Hansen
Quoted 6 lines · Jacob Gorm Hansen
Quoted 3 lines · Keir Fraser

Yes, you do, and xenconsoled requires xenstored. And your tools must introduce xenstored to the new domain when it is built.

Quoted 10 lines
Quoted 4 lines

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

Quoted 11 lines

Jacob
--
Save time and bandwidth with EDelta: http://www.diku.dk/~jacobg/edelta/

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel