Installing a VHD-Boot Machine:
Perform these steps to install Windows 7 with VHD file:
1. Boot the system with a Windows 7 setup DVD or any other boot media.
2. On the setup screen, don’t choose Install Now, but press Shift-F10 to get into command line mode.
3. Type diskpart on the command line mode to start the partitioning utility.
4. You need to create a new VHD file. Type the following command to create this file:
create vdisk file=”D:\pathToVhd.vhd” type=expandable maximum=maxsizeInMegabyte
5. Select the new VHD and attach it as a physical disk. Use the following command to perform this task:
select vdisk file=”D:\pathToVhd.vhd” attach vdisk
6. Proceed with the normal setup and make sure that you install Windows on the correct disk. You may receive a warning Windows cannot install to this disk. Ignore this warning.
7. At next startup, you’ll see Windows 7 in the boot menu. If you want to add a VHD manually to the boot menu, use this command:
bcdedit /copy {originalguid} /d "New Windows 7 Installation"
bcdedit /set {newguid} device vhd=[D:]\Image.vhd
bcdedit /set {newguid} osdevice vhd=[D:]\Image.vhd
bcdedit /set {newguid} detecthal on
8. Click Start, right-click Computer, and select Manage.
9. To attach an existing VHD File, in the left pane, right-click Disk Management and then click Attach VHD.
10. Click Browse, navigate to the VHD file location, select the file, and then click Open. If you want the VHD to be read-only, select the check box. Click OK.
Perform these steps to install Windows 7 with VHD file:
1. Boot the system with a Windows 7 setup DVD or any other boot media.
2. On the setup screen, don’t choose Install Now, but press Shift-F10 to get into command line mode.
3. Type diskpart on the command line mode to start the partitioning utility.
4. You need to create a new VHD file. Type the following command to create this file:
create vdisk file=”D:\pathToVhd.vhd” type=expandable maximum=maxsizeInMegabyte
5. Select the new VHD and attach it as a physical disk. Use the following command to perform this task:
select vdisk file=”D:\pathToVhd.vhd” attach vdisk
6. Proceed with the normal setup and make sure that you install Windows on the correct disk. You may receive a warning Windows cannot install to this disk. Ignore this warning.
7. At next startup, you’ll see Windows 7 in the boot menu. If you want to add a VHD manually to the boot menu, use this command:
bcdedit /copy {originalguid} /d "New Windows 7 Installation"
bcdedit /set {newguid} device vhd=[D:]\Image.vhd
bcdedit /set {newguid} osdevice vhd=[D:]\Image.vhd
bcdedit /set {newguid} detecthal on
8. Click Start, right-click Computer, and select Manage.
9. To attach an existing VHD File, in the left pane, right-click Disk Management and then click Attach VHD.
10. Click Browse, navigate to the VHD file location, select the file, and then click Open. If you want the VHD to be read-only, select the check box. Click OK.
Comments
Post a Comment