{"id":230,"date":"2010-01-19T12:26:30","date_gmt":"2010-01-19T10:26:30","guid":{"rendered":"http:\/\/dev.flauschig.ch\/wordpress\/?p=230"},"modified":"2010-01-19T12:26:30","modified_gmt":"2010-01-19T10:26:30","slug":"win7-boot-from-vhd-part-ii","status":"publish","type":"post","link":"http:\/\/dev.flauschig.ch\/wordpress\/?p=230","title":{"rendered":"Win7 Boot from VHD &#8211; Part II"},"content":{"rendered":"<p>To install Windows 7 on a virtual disk, follow these instructions.<\/p>\n<ul>\n<li>Boot from the Windows 7 installation disc<\/li>\n<li>Press SHIFT+F10 to open the command prompt<\/li>\n<li>Start diskpart.exe<\/li>\n<li>If you already haven&#8217;t already created a vdisk that you would like to install Win7 on, create one (<a href=\"http:\/\/dev.flauschig.ch\/wordpress\/?p=229\">see previous post<\/a>)<\/li>\n<li>Attach the virtual disk\n<p>\t<code>> select vdisk file=\"C:\\path\\to\\vhd\"<br \/>\n\t> attach vdisk<br \/>\n\t> exit<\/code>\n\t<\/li>\n<li>Continue with the installation by selecting &#8220;Custom Install&#8221;<\/li>\n<li>Select the virtual disk (if you have formatted and named your disk, you will see that name now, otherwise you will have to consider the disk size)<\/li>\n<li>Install Windows 7<\/li>\n<\/ul>\n<p>The installer will create a boot menu entry for your new Windows installation and your existing non-virtual installation. Unfortunately, they are (by default) both called &#8220;Windows 7&#8221;. Very helpful&#8230; The virtual installation will be the first entry in your boot menu and started by default. Once your installation is complete, you can fix this issue with the &#8220;bcdedit.exe&#8221; command line tool.<\/p>\n<p>Open a command prompt as administrator and follow these steps:<\/p>\n<p><code>> bcdedit.exe<\/code><\/p>\n<p>This will give you a list of all boot manager entries. Find the one that refers to your VHD file and copy it&#8217;s ID &#8211; {current} if you are currently running your virtual installation and usually {default} if you&#8217;re running the physical installation.<\/p>\n<p><code>> bcdedit.exe \/set <guid> description \"New boot menu entry\"<\/code><\/p>\n<p>You can also create copies of your bood menu entries and adjust them to, let&#8217;s say, point to a different VHD file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To install Windows 7 on a virtual disk, follow these instructions. Boot from the Windows 7 installation disc Press SHIFT+F10 to open the command prompt Start diskpart.exe If you already haven&#8217;t already created a vdisk that you would like to install Win7 on, create one (see previous post) Attach the virtual disk > select vdisk &hellip; <\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-executor","4":"post-230","6":"format-standard","7":"category-uncategorized"},"acf":[],"views":24496,"_links":{"self":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/230"}],"collection":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=230"}],"version-history":[{"count":0,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/230\/revisions"}],"wp:attachment":[{"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=230"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dev.flauschig.ch\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}