{"id":357,"date":"2011-12-12T22:30:28","date_gmt":"2011-12-12T17:30:28","guid":{"rendered":"http:\/\/kennywu.info\/?p=357"},"modified":"2011-12-12T22:30:28","modified_gmt":"2011-12-12T17:30:28","slug":"boot-from-a-vhd-file","status":"publish","type":"post","link":"http:\/\/kennywu.info\/?p=357","title":{"rendered":"Boot from a VHD file"},"content":{"rendered":"<p>Booting from VHD only works for Windows 7 or Windows 2008. It will not work for USB device since the usb drivers are initialized too late in the boot process(works for eSATA??). The performance loss is about 3% compared to &#8220;normal&#8221; boot, since only the hard driver layer is virtualized. <\/p>\n<h3>Install Windows to a new VHD<\/h3>\n<p>When installation process goes to &#8220;install now&#8221;, press(Shift + F10) to go to DOS prompt.<br \/>\n<code><br \/>\ndiskpart<br \/>\n***to create a 50G expandable disk.***<br \/>\ncreate vdisk file=\"C:\\win7\\win7.vhd\" type=expandable maximum=50000<br \/>\nselect vdisk file=\"c:\\win7\\win7.vhd\"<br \/>\nattach vdisk<br \/>\nexit<br \/>\n<\/code><br \/>\ncontinue the installation process, remember to select the newly created disk, the virtual one!<\/p>\n<h3>Setting up Windows boot manager to boot from an existing VHD<\/h3>\n<p>In admin Dos prompt:<br \/>\n<code><br \/>\nC:\\>bcdedit \/copy {current} \/d \"My New VHD Option\"<br \/>\n*** copy the newly created {guid} by right mouse click and use that in the following command ***<br \/>\nC:\\>bcdedit \/set {guid} device vhd=[driveletter:]\\directory\\vhd filename<br \/>\nC:\\>bcdedit \/set {guid} osdevice vhd=[driverletter:]\\directory\\vhd filename<br \/>\nC:\\>bcdedit \/set {guid} detecthal on<br \/>\n*** the [] needs to be there like the following sample.***<br \/>\nbcdedit \/set {guid} device vhd=[C:]\\win7\\win7.vhd<br \/>\n*** to check out existing boot loaders, run the following ***<br \/>\nbcdedit \/v<br \/>\n*** to delete an existing vhd device ***<br \/>\n bcdedit \/delete {guid} \/cleanup<br \/>\n<code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Booting from VHD only works for Windows 7 or Windows 2008. It will not work for USB device since the usb drivers are initialized too late in the boot process(works for eSATA??). The performance loss is about 3% compared to &hellip; <a href=\"http:\/\/kennywu.info\/?p=357\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63],"tags":[77],"class_list":["post-357","post","type-post","status-publish","format-standard","hentry","category-windows","tag-vhd"],"_links":{"self":[{"href":"http:\/\/kennywu.info\/index.php?rest_route=\/wp\/v2\/posts\/357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/kennywu.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kennywu.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kennywu.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/kennywu.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=357"}],"version-history":[{"count":5,"href":"http:\/\/kennywu.info\/index.php?rest_route=\/wp\/v2\/posts\/357\/revisions"}],"predecessor-version":[{"id":362,"href":"http:\/\/kennywu.info\/index.php?rest_route=\/wp\/v2\/posts\/357\/revisions\/362"}],"wp:attachment":[{"href":"http:\/\/kennywu.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kennywu.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=357"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kennywu.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}