In the previous, think some of you might heard about dual boot on a single machine. Have you ever think that you can do so with a virtual hard drive. The beauty of the VHD, when you are done with it, just delete it and make a new one.
In other area also, VHD provide a good performance in the Fixed Size disk and it do not require Hyper-V to boot them. Here I am going to explain some of the steps. They will be just 4 simple steps. Download the Windows Server 8 Preview and start to test it out your self at Windows Server 8 Preview download page.
Step 1 : Create Virtual Hard Drive by using diskpart.
- diskpart
- create vdisk file=”e:\winsrv8devprev.vhd” maximum=20000 type=FIXED
- select vdisk file=”e:\winsrv8devprev.vhd”
- attach vdisk
- create partition primary
- assign letter=W
- format quick fs=ntfs label=WINSRV8DEVPREV
- exit
Step 2 : Preparation for installation.
- Create a folder in Drive e:\vhd
- Copy the install.wim from the cd\sources\install.wim to e:\vhd
- Download powershell script from http://archive.msdn.microsoft.com/InstallWindowsImage/Release/ProjectReleases.aspx?ReleaseId=2662
- After you have perform step 1 and 2, to proceed to the next steps you can either use step 3.1 or 3.2.But my prefer option will be using powershell
Step 3.1 : Installing WIM Image to VHD (powershell)
- Open cmd and cd to e:\vhd
- run powershell command and run the following command to change the behaviour of the powershell to allow any scripts to be loaded set-executionpolicy unrestricted
- .\install-windowimage.ps1 -WIM install.wim
- .\install-windowimage.ps1 -WIM install.wim -Apply -index 1 -Destination w:
Step 3.2 : Installing WIM Image to VHD (imagex)
- Open cmd and cd to e:\vhd
- run powershell command and run the following command to start the installation "imagex /apply d:\install.vim 1 w:"
Step 4.1 : Configure vhd boot (1 step)
- bcdboot w:\windows
Step 4.2 : Configure vhd boot (4 step)
- bcdedit /copy {current} /d "Windows 8 Preview"
- bcdedit /set
device vhd=d:\vhd\windows8.vhd - bcdedit /set
osdevice vhd=d:\vhd\windows8.vhd - bcdedit /set
detecthal on
I am interested in hearing your feedback, so that I can improve my articles and learning resources for you.
No comments:
Post a Comment