Check this out

Saturday 2 April 2011

How to Make VHD On Windows 7

its-berry.com – To create a native VHD, you right-click My Computer and click Manage to open Computer Management. You then select Disk Management, You can then right-click Disk Management and click Create VHD. This opens the Create And Attach Virtual Hard Disk dialog box. You select the location where you want to create the VHD file (first making sure you have sufficient free space).

Another way to create vhd from command prompt ,type these commands in elevate command prompt to make 30Gb VHD :

  • Enter diskpart.
  • Enter create vdisk file=c\win7\itsberryvhd.vhd maximum=30000.

Attaching and Detaching a VHD

You can also use the Disk Management tool to attach a VHD so you can use it and to detach it so you can change its properties or delete it. In Computer Management, you click Disk Management and then right-click Disk Management and click Attach VHD. This opens the Attach Virtual Hard Disk dialog box. Click OK to attach the existing VHD.

 

Booting from VHD

The ability to boot from VHD (available in Windows 7 Ultimate and Enterprise editions only) is one of the more significant new features introduced by Windows 7. You can boot the machine as if it were running from the primary hard disk, and your operating system recognizes all the hardware available in your system. This lets you run multiple operating systems on the same computer without the performance issues sometimes encountered in virtual PCs.

Adding a VHD to the Boot Menu

its-berry.com – To add the VHD that you have created to the Boot menu, perform the following procedure:

  1. Log on to your computer with Administrator account.
  2. Open an elevated command prompt and enter bcdedit /copy {current} /d “MyVHD”. As shown in Figure 2-19, this returns the GUID of the loader object. You use this value to replace the variable <guid> in the next steps in this procedure.
  3. Enter bcdedit /set <guid> device vhd=partition w:.
  4. Enter bcdedit /set <guid> osdevice vhd=C:\vhds\myvhd.vhd.
  5. To force Windows 7 to automatically detect the HAL, enter bcdedit /vbcdedit /set <guid> detecthal on.
  6. To test if your boot entry has been successfully created, enter bcdedit /v.
  7. Copy the WIM image file Myimage.wim that you created in Lesson 1 to the bootable W: drive.
  8. Reboot the computer. Check that you can boot from the device MyVHD.

No comments:

Post a Comment

Popular Posts