<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Ok, then should be very straightforward. You can port it, we will try to post the source code late next week.</DIV>
<DIV> </DIV>
<DIV>The majority of the src is cross platform, you only need to change the hooks to the kernel, in runtime.c.<BR><BR>--- On <B>Sat, 4/10/10, François Revol <I><revol@free.fr></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>From: François Revol <revol@free.fr><BR>Subject: Re: [vbox-dev] Linux VHD Boot available - download and boot your physical pc, also runs as vm<BR>To: "Huihong Luo" <huisinro@yahoo.com><BR>Cc: haiku-development@freelists.org, vbox-dev@virtualbox.org<BR>Date: Saturday, April 10, 2010, 9:24 AM<BR><BR>
<DIV class=plainMail>Le Sat, 10 Apr 2010 09:01:37 -0700 (PDT), Huihong Luo a écrit :<BR>> That should be doable. I am not familar with Haiku, but I guess it<BR>> should<BR>>  have something like Linux's loop module? our virtual disk driver is<BR>>  something like the loop module, by mounting a vhd file, and acts as<BR>> a dsik.<BR>><BR><BR>Haiku can mount regular files directly as raw partitions, and the boot<BR>partition is mounted as /boot on a virtual rootfs anyway, though it<BR>won't work for vmdk files which aren't a plain image of the<BR>partition...<BR><BR>BeOS had an fmap driver which used block lists in the partition the<BR>image was, passed from the bootloader, to access it directly (without<BR>having to mount the containing filesystem). I started implementing a<BR>similar driver in Haiku but never finished.<BR><BR>Something alike could be done, either as a vmdkloop driver publishing a<BR>device directly
 or as a partition_module which the device manager uses<BR>to then publish entries in /dev/disk/.<BR><BR>François.<BR></DIV></BLOCKQUOTE></td></tr></table>