<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Huihong,</div><div><br></div><div>I thought I committed it already but it in fact was still lying on the disk here.</div><div>Committed now and should appear in svn soon. Thanks.</div><div><br></div><div>Kind regards,</div><div>Alexander Eichner</div><br><div><div>Am 09.11.2009 um 21:06 schrieb Huihong Luo:</div><br class="Apple-interchange-newline"><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font: inherit;"><div>I noted that VDCopy is now in svn, thx.</div> <div> </div> <div>the Hyper-V not recognized patch (VHDHDDCore.cpp) is still not in, just in case you guys forgot it<br><br>--- On <b>Thu, 11/5/09, Huihong Luo <i><<a href="mailto:huisinro@yahoo.com">huisinro@yahoo.com</a>></i></b> wrote:<br></div> <blockquote style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><br>From: Huihong Luo <<a href="mailto:huisinro@yahoo.com">huisinro@yahoo.com</a>><br>Subject: Re: [vbox-dev] fixed - VHD not readable by Hyper-V<br>To: "Klaus Espenlaub" <<a href="mailto:Klaus.Espenlaub@Sun.COM">Klaus.Espenlaub@Sun.COM</a>><br>Cc: "<a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>" <<a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>><br>Date: Thursday, November 5, 2009, 5:23 PM<br><br> <div id="yiv797427219"> <table cellspacing="0" cellpadding="0" border="0"> <tbody> <tr> <td valign="top"> <div>just a kind remainder, the fix hasn't been checked into svn yet.</div> <div> </div> <div>We've been running on VHDs with fix for last couple of weeks, seems to be no side effects. </div> <div> </div> <div>also need to check in the VDCopy patch<br><br>--- On <b>Thu, 10/15/09, Klaus Espenlaub <i><<a href="mailto:Klaus.Espenlaub@Sun.COM">Klaus.Espenlaub@Sun.COM</a>></i></b> wrote:<br></div> <blockquote style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><br>From: Klaus Espenlaub <<a href="mailto:Klaus.Espenlaub@Sun.COM">Klaus.Espenlaub@Sun.COM</a>><br>Subject: Re: [vbox-dev] fixed - VHD not readable by Hyper-V<br>To: "Huihong Luo" <<a href="mailto:huisinro@yahoo.com">huisinro@yahoo.com</a>><br>Cc: "<a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>" <<a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a>><br>Date: Thursday, October 15, 2009, 4:24 AM<br><br> <div class="plainMail">Huihong Luo wrote:<br>> found another bug, I've attached the patch<br>>  two bugs:<br>> (1) parent locators set to zero for base images<br>> (2) block allocation table to be block-size aligned (2M)<br>>  after these two fixes, vbox vhds works well on Hyper-V, I tested quite some large vhd files from p2v, all works fine now.<br>>  These two fixes should be very safe to check in, (not sure if it may break snapshots, though)<br><br>Thanks a lot for those fixes (and the previous ones as well), I'll try to find time myself to apply them in the near future - or find someone else who will handle it.<br><br>What I wanted to ask earlier already - did you read <a href="http://www.virtualbox.org/wiki/Contributor_information" target="_blank" rel="nofollow">http://www.virtualbox.org/wiki/Contributor_information</a> ? Which of the two contribution options (SCA or MIT licensed patches) do you pick?<br><br>Again, we're very grateful for the excellent contributions.<br><br>Klaus<br><br>>  - hl<br>> <br>> --- On *Tue, 10/13/09, Huihong Luo /<<a href="http://us.mc343.mail.yahoo.com/mc/compose?to=huisinro@yahoo.com" target="_blank" rel="nofollow">huisinro@yahoo.com</a>>/* wrote:<br>> <br>> <br>>     From: Huihong Luo <<a href="http://us.mc343.mail.yahoo.com/mc/compose?to=huisinro@yahoo.com" target="_blank" rel="nofollow">huisinro@yahoo.com</a>><br>>     Subject: Re: [vbox-dev] Fwd: VHD not readable by Hyper-V<br>>     To: "<a href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" target="_blank" rel="nofollow">vbox-dev@virtualbox.org</a>" <<a href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" target="_blank" rel="nofollow">vbox-dev@virtualbox.org</a>><br>>     Date: Tuesday, October 13, 2009, 1:40 PM<br>> <br>>     I found the vhd bug on vbox implementation. vbox mistakenly sets<br>>     parent locators ("wi2r", etc.) for base vhd image. If setting these<br>>     fields to zeros for base image, Hyper-V is happy. Should be very<br>>     easy to fix, if you need the code diff, let me know<br>> <br>>     VBox The MS spec states:<br>> <br>>     Parent Locator Entries<br>> <br>>     These entries store an absolute byte offset in the file where the<br>>     parent locator for a differencing hard disk is stored. This field is<br>>     used only for differencing disks and should be set to zero for<br>>     dynamic disks.<br>> <br>> <br>>     --- On *Tue, 10/13/09, Huihong Luo /<<a href="http://us.mc343.mail.yahoo.com/mc/compose?to=huisinro@yahoo.com" target="_blank" rel="nofollow">huisinro@yahoo.com</a>>/* wrote:<br>> <br>> <br>>         From: Huihong Luo <<a href="http://us.mc343.mail.yahoo.com/mc/compose?to=huisinro@yahoo.com" target="_blank" rel="nofollow">huisinro@yahoo.com</a>><br>>         Subject: [vbox-dev] Fwd: VHD not readable by Hyper-V<br>>         To: "<a href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" target="_blank" rel="nofollow">vbox-dev@virtualbox.org</a>" <<a href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" target="_blank" rel="nofollow">vbox-dev@virtualbox.org</a>><br>>         Date: Tuesday, October 13, 2009, 6:49 AM<br>> <br>> <br>> <br>>         Sent from my iPhone<br>> <br>>         Begin forwarded message:<br>> <br>>>         *From:* Huihong Luo <<a href="http://us.mc343.mail.yahoo.com/mc/compose?to=huisinro@yahoo.com" target="_blank" rel="nofollow">huisinro@yahoo.com</a>><br>>>         *Date:* October 13, 2009 6:35:42 AM PDT<br>>>         *To:* Shu Wu <<a href="http://us.mc343.mail.yahoo.com/mc/compose?to=superwushu@gmail.com" target="_blank" rel="nofollow">superwushu@gmail.com</a>><br>>>         *Subject:* *Re: [vbox-dev] VHD not readable by Hyper-V*<br>>> <br>>>         No problem with vpc, vbox also understands vhds from hyper-v<br>>> <br>>>         It is just that hyper-v doesn't understand vbox's vhd <br>>>         Sent from my iPhone<br>>> <br>>>         On Oct 13, 2009, at 2:27 AM, Shu Wu <<a href="http://us.mc343.mail.yahoo.com/mc/compose?to=superwushu@gmail.com" target="_blank" rel="nofollow">superwushu@gmail.com</a>> wrote:<br>>> <br>>>>         Can your VHD disk be read by Virtual PC or Virtual Server? It<br>>>>         seems that Hyper-V and Virtual-PC share the same vhd format.<br>>>>         One year ago I wrote my own program to generate a vhd file<br>>>>         and make it to be accepted by Virtual PC, just following the<br>>>>         official vhd specification. But I haven't tested it on Hyper-V.<br>>>> <br>>>>         Cheers,<br>>>> <br>>>>         Wu Shu<br>>>> <br>>>>         2009/10/13 Klaus Espenlaub <<a href="http://us.mc343.mail.yahoo.com/mc/compose?to=Klaus.Espenlaub@sun.com" target="_blank" rel="nofollow">Klaus.Espenlaub@sun.com</a>><br>>>> <br>>>>             Huihong Luo wrote:<br>>>> <br>>>>                 None of vbox created vhd disk files are readable by<br>>>>                 2008 Hyper-V.<br>>>>                  This is the error: "The file or directory is<br>>>>                 corrupted and unreadable"<br>>>>                  I am debugging through the code, trying to change<br>>>>                 Footer info, such as version, creator OS, checksun,<br>>>>                 etc., to see it can correct the error.<br>>>>                  If you know what might be wrong, pls post<br>>>> <br>>>> <br>>>>             We only know what Microsoft documents in their VHD format<br>>>>             spec, which we believe to have correctly implemented.<br>>>>             However as usual those specs are incomplete and not<br>>>>             really precise, so there's plenty of room for different<br>>>>             interpretations.<br>>>> <br>>>>             Klaus<br>>>> <br>>>> <br>>>>             _______________________________________________<br>>>>             vbox-dev mailing list<br>>>>             <a href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" target="_blank" rel="nofollow">vbox-dev@virtualbox.org</a><br>>>>             <<a href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target="_blank" rel="nofollow">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a>><br>>>>             <<a href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target="_blank" rel="nofollow">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a>><a href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target="_blank" rel="nofollow">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a><br>>>> <br>>>> <br>>>>         _______________________________________________<br>>>>         vbox-dev mailing list<br>>>>         <a href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" target="_blank" rel="nofollow">vbox-dev@virtualbox.org</a><br>>>>         <<a href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target="_blank" rel="nofollow">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a>><a href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target="_blank" rel="nofollow">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a><br>> <br>>         -----Inline Attachment Follows-----<br>> <br>>         _______________________________________________<br>>         vbox-dev mailing list<br>>         <a href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" target="_blank" rel="nofollow">vbox-dev@virtualbox.org</a><br>>         <a href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target="_blank" rel="nofollow">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a><br>> <br>> <br>>     -----Inline Attachment Follows-----<br></div></blockquote></td></tr></tbody></table></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></tbody></table> _______________________________________________<br>vbox-dev mailing list<br><a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>http://vbox.innotek.de/mailman/listinfo/vbox-dev<br></blockquote></div><br></body></html>