SHIFT

--- Sjoerd Hooft's InFormation Technology ---

User Tools

Site Tools


bootingfromvhd
Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
bootingfromvhd [2013/11/05 21:56]
sjoerd [What's a VHD]
bootingfromvhd [2013/11/05 22:37] (current)
sjoerd
Line 17: Line 17:
 Since my laptop is running Windows 8 this article is written for Windows 8. However, given the procedure I expect it to be the same for other Windows editions that support this.  Since my laptop is running Windows 8 this article is written for Windows 8. However, given the procedure I expect it to be the same for other Windows editions that support this. 
  
 +VHD Used:
 +* 9200.16384.amd64fre.win8_rtm.120725-1247_server_serverdatacentereval_en-us.vhd
 +** This VHD is part of this package (double click to extract it): vhd_server_serverdatacentereval_en-us.exe
 +** And can be downloaded from this page (Microsoft ID required, free registration possible): http://​technet.microsoft.com/​nl-nl/​evalcenter/​hh670538.aspx
 +
 +Because the VHD will appear as a disk after you've boot from it and your current OS disk will appear as a different disk it is better to be really precise about your folder structure. It is best to copy the VHD to a new folder structure from the root of a current disk. If you have different disks or real partitions your data disk is fine. If you have a virtual partition it's better to start from the C root, which is also the way to go if you have only one disk. 
 +
 +An example of this folder structure would be:
 +<​code>​
 +C:​\BootVHDs\WIN2012\
 +</​code>​
 +
 +After you've copied the VHD to this directory follow the following steps:
 +
 +== Mount VHD ==
 +On Windows 8 there are two ways to get there (among others):
 +* Right click the VHD and select mount
 +
 +Or start Disk Management:
 +
 +* By typing "​diskmgmt.msc"​ in a command prompt or Run Box (works on all supported Windows Editions)
 +or
 +* By press Windows Key + X and select Disk Management
 +** Note that the X stands for eXpert Tools
 +
 +In disk management click on the Actions Menu and select "​Attach VHD". If you do not have this option your OS does not support this feature: \\
 +{{bootingfromvhd01.jpg}} \\
 +
 +In the "​Attach Virtual Hard Disk" windows that appears browse to the created folder and select the VHD, and click OK. 
 +
 +A new 40 GB disk will now appear in Disk Management: \\
 +{{bootingfromvhd02.jpg}} \\
 +
 +== Booting From the Mounted VHD ==
 +Now is the time to setup the system so you van boot from the mounted VHD. Open a command prompt as administrator. On Windows 8, the Windows Key + X will help you out again, you can select "​Command Prompt (Admin). On Windows 7, type in CMD in the Start menu search and right click the application so you can select "Run as Administrator"​.
 +
 +In the command prompt, type "​BCDBOOT D:​\WINDOWS":​ \\
 +{{bootingfromvhd03.jpg}} \\
 +
 +Check the previous command by starting "​MSCONFIG"​ from the same command prompt and check the boot options: \\
 +{{bootingfromvhd04.jpg}} \\
 +
 +> Note that the default OS is indeed the Windows Server 2012 installation from the D-drive. Also note I changed the timeout to 15 seconds. The default is 30. 
 +
 +Now you can reboot the system. Since the installation from the VHD is like a sys prepped image it will start to configure the hardware. It will also ask for a new administrator password so you van logon to the system. ​
 +
 +Note that reviewing if all required hardware was properly installed should be your first step. Because the installation was sys prepped this is your first chance to check if everything works properly. ​
  
 {{tag>​windows hyperv}} {{tag>​windows hyperv}}
bootingfromvhd.txt ยท Last modified: 2013/11/05 22:37 by sjoerd