Using the C library
Hi,
I want to start a domain from my C program. But it's not very clear how to do so.
I figured out some things, so far I got:xc_interface_openxc_domain_createxc_linux_build
But from here, I must define the partitions, and the network. And then start the domain, right? But, how? :)
I want to make /dev/hda3 available read-only as /dev/hda1. And /dev/hda5 available rw as /dev/hda2. In the vbd structures, the device is an unsigned short. Should I shift the device major 8 bits, and add the minor?
And about the network, simply setting the parameters in the cmdline (xc_linux_build) will do the job, or do I have to do something else?
If there is a place to get C examples, will be of great help.
Thanks,
Marconi.
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
Quoted 3 lines
I want to start a domain from my C program. But it's not very clear how to do so.
I wouldn't advise going down this route: In the xeno-unstable (forthcoming 2.0) your program will need to talk to 'xend' rather than invoking operations on Xen directly. This is necessary since in the new IO model Xen no longer knows about the state of IO devices etc; information about the state of the whole machine is now held in xend.
Xend provides a http interface to enable other programs to issue requests to it. You can see example invocations by looking at the new 'xm' tool.
We anticipate that only xend will use the C libary interface to Xen.
Ian
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND