<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi Frank,</DIV>
<DIV> </DIV>
<DIV>Wonder if you guys can improve the code, if the last footer is corrupt, then pick the copy stored at begining, since each vhd has two copies of the footer.</DIV>
<DIV> </DIV>
<DIV>We use VHD very often, as we are implementing a native boot of physical computer using vhd format, similar to Windows 7's vhd native boot. For linux, we will release it as open source.</DIV>
<DIV> </DIV>
<DIV>Basically, the same vhd disk file, will be able to run inside  a vm, and will run directly to boot a physical computer. The single file acts as a virtual disk if booted from a physical computer. This will make multiple boot extremely easy, as each OS is contained inside a single file.</DIV>
<DIV> </DIV>
<DIV>- Huihong</DIV>
<DIV> </DIV>
<DIV><BR><BR>--- On <B>Thu, 10/29/09, Frank Mehnert <I><Frank.Mehnert@Sun.COM></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>From: Frank Mehnert <Frank.Mehnert@Sun.COM><BR>Subject: Re: [vbox-dev] sudden host poweroff results inaccessible virtual disks<BR>To: vbox-dev@virtualbox.org<BR>Date: Thursday, October 29, 2009, 8:29 AM<BR><BR>
<DIV class=plainMail>Hi Huihong Luo,<BR><BR>On Wednesday 28 October 2009, Huihong Luo wrote:<BR>> when a vm is running (xp sp3 VHD in my case), and the host suffered a power<BR>> outage. After host was back on, the virtual disk was corrupt. <BR>> Seems quite reproducible, always results in corrupt disks.<BR>>  <BR>> wonder if code can be improved for disks to survice this kind of power<BR>> outage<BR><BR>are you using .vhd images very often? The latest trunk sources<BR>(as well as VBox OSE 3.0.10) contain a fix which enforces writing<BR>the .vhd footer every time a new block is allocated. In previous<BR>versions, this footer was only written when the VM was successfully<BR>shut down, so this fix might be related to your problem. Again,<BR>this applies only to .vhd images.<BR><BR>Kind regards,<BR><BR>Frank<BR>-- <BR>Dr.-Ing. Frank Mehnert<BR><BR>Sitz der Gesellschaft:<BR>Sun Microsystems GmbH, Sonnenallee 1, 85551
 Kirchheim-Heimstetten<BR>Amtsgericht München: HRB 161028<BR>Geschäftsführer: Thomas Schröder, Wolfgang Engels, Wolf Frenkel<BR>Vorsitzender des Aufsichtsrates: Martin Häring<BR></DIV><BR>-----Inline Attachment Follows-----<BR><BR>
<DIV class=plainMail>_______________________________________________<BR>vbox-dev mailing list<BR><A href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" ymailto="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</A><BR><A href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target=_blank>http://vbox.innotek.de/mailman/listinfo/vbox-dev</A><BR></DIV></BLOCKQUOTE></td></tr></table>