{"id":1195,"date":"2009-12-30T08:56:00","date_gmt":"2009-12-30T00:56:00","guid":{"rendered":"http:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/?p=1195"},"modified":"2009-12-30T08:57:45","modified_gmt":"2009-12-30T00:57:45","slug":"install-boot-win7-in-vhd-a-short-note","status":"publish","type":"post","link":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/?p=1195","title":{"rendered":"Install &#038; boot Win7 in VHD &#8211; a short note"},"content":{"rendered":"<p>1. Create VHD using disk manager, mounted as X:\\<\/p>\n<p>1. Install CloneDrive to mount win aik iso , install it<\/p>\n<p>2. run windows aik cmd as administrator<\/p>\n<p>3. imagex \/apply d:\\sources\\install.wim 1 x:\\ (D: drive is the DVD ROM with Win7 DVD)<\/p>\n<p>4. imagex \/info d:\\sources\\install.wim\u00a0 (to verify the install.wim)<\/p>\n<p style=\"padding-left: 30px;\"><span style=\"background-color: #ffff00;\"><span style=\"font-size: x-small;\">ImageX Tool for Windows<br \/>\nCopyright (C) Microsoft Corp. All rights reserved.<br \/>\nVersion: 6.1.7600.16385<\/span><\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"background-color: #ffff00;\">WIM Information:<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nPath:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 d:\\sources\\install.wim<br \/>\nGUID:\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 {7bf33c3a-c5ea-442f-bc19-e23bb486a301}<br \/>\nImage Count: 1<br \/>\nCompression: LZX<br \/>\nPart Number: 1\/1<br \/>\nAttributes:\u00a0 0xc<br \/>\nIntegrity info<br \/>\nRelative path junction<\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"background-color: #ffff00;\">Available Image Choices:<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n&lt;WIM&gt;<br \/>\n&lt;TOTALBYTES&gt;2760348780&lt;\/TOTALBYTES&gt;<br \/>\n&lt;IMAGE INDEX=&#8221;1&#8243;&gt;<br \/>\n&lt;DIRCOUNT&gt;13629&lt;\/DIRCOUNT&gt;<br \/>\n&lt;FILECOUNT&gt;64547&lt;\/FILECOUNT&gt;<br \/>\n&lt;TOTALBYTES&gt;11912905130&lt;\/TOTALBYTES&gt;<br \/>\n&lt;CREATIONTIME&gt;<br \/>\n&lt;HIGHPART&gt;0x01CA0446&lt;\/HIGHPART&gt;<br \/>\n&lt;LOWPART&gt;0xE89FF88A&lt;\/LOWPART&gt;<br \/>\n&lt;\/CREATIONTIME&gt;<\/span><\/p>\n<p>5. Use bcdedit to add the win7 vhd into the boot entry :<\/p>\n<p style=\"padding-left: 30px;\"><span style=\"background-color: #ffff00;\">C:\\&gt;bcdedit \/copy {current} \/d &#8220;Windows 7 VHD&#8221;<br \/>\nThe entry was successfully copied to {ce2dd7bd-f356-11de-82a2-9f0f331b23ba}.<\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"background-color: #ffff00;\">C:\\&gt;bcdedit \/set {ce2dd7bd-f356-11de-82a2-9f0f331b23ba} device vhd=[C:]\\VHD\\win7<br \/>\n.vhd<br \/>\nThe operation completed successfully.<\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"background-color: #ffff00;\">C:\\&gt;bcdedit \/set {ce2dd7bd-f356-11de-82a2-9f0f331b23ba} osdevice vhd=[C:]\\VHD\\wi<br \/>\nn7.vhd<br \/>\nThe operation completed successfully.<\/span><\/p>\n<p style=\"padding-left: 30px;\"><span style=\"background-color: #ffff00;\">C:\\&gt;bcdedit \/set {ce2dd7bd-f356-11de-82a2-9f0f331b23ba} detecthal on<br \/>\nThe operation completed successfully.<\/span><\/p>\n<p>run the following command to test if your boot entry is successfully created using <strong><em>C:\\&gt;bcdedit \/v<\/em><\/strong><\/p>\n<p>If you want to delete any existing VHD entry from the Boot Menu you can always use the command <strong><em>C:\\&gt;bcdedit \/delete &lt;guid&gt; \/cleanup<\/em><\/strong><\/p>\n<p><strong><em><br \/>\n<\/em><\/strong><\/p>\n<p><strong><em><br \/>\n<\/em><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Create VHD using disk manager, mounted as X:\\<\/p>\n<p>1. Install CloneDrive to mount win aik iso , install it<\/p>\n<p>2. run windows aik cmd as administrator<\/p>\n<p>3. imagex \/apply d:\\sources\\install.wim 1 x:\\ (D: drive is the DVD ROM with Win7 DVD)<\/p>\n<p>4. imagex \/info d:\\sources\\install.wim (to verify the install.wim)<\/p>\n<p style=\"padding-left: 30px;\">ImageX Tool for [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[3],"tags":[24],"class_list":["post-1195","post","type-post","status-publish","format-standard","hentry","category-computer","tag-windows-7","odd"],"_links":{"self":[{"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1195"}],"version-history":[{"count":2,"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1195\/revisions"}],"predecessor-version":[{"id":1197,"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1195\/revisions\/1197"}],"wp:attachment":[{"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staff.ie.cuhk.edu.hk\/~sfluk\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}