From: marconi@lncc.br Subject: Using the C library Date: Fri, 18 Jun 2004 18:26:38 -0300 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: <1087593998.40d35e0e09757@webmail.lncc.br> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org I made some progress. But not the way I think it should be... There goes the code: #include int main() { int xc_handle; int mem_kb =3D 16384; char name[32] =3D "Maquina virtual"; u64 domid; xc_vbdextent_t extent; extent.real_device =3D 0x0300; extent.start_sector =3D 53319798; extent.nr_sectors =3D 1188746; xc_handle =3D xc_interface_open(); xc_domain_create(xc_handle, mem_kb, name, &domid); xc_linux_build(xc_handle,domid,"/boot/xenolinux.gz","","root=3D/dev/hda= 3 ro=20 ip=3D169.254.1.1:::::eth0:off"); xc_vbd_create(xc_handle,domid,0x0303,0); xc_vbd_setextents(xc_handle,domid,0x0303,1,&extent); xc_domain_start(xc_handle,domid); } With the xen_read_console, I see the system booting correctly. The proble= m is=20 that the real_device I'm using is hda. Becouse 0x0307 with start_sector 0= didn't=20 work. So, I made fdisk -lu /dev/hda and got the starting sector of hda7. = It will=20 be painfull to do it like this, because of the final complexity (this is = just a=20 starting test). The other problem is that I didn't figure out how to setup the networking= . PS: In the previeus message, I said the wrong partitions... What I really= want=20 is phy:hda7,hda3. Thanks! ------------------------------------------------- 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