Do not need a virtual machine to start Windows 7 from a VHD

Source: Internet
Author: User

    Today we'll talk about how to use a virtual machine to start Windows7 (Win7) or windowsserver2008r2 directly with the VHD native. The traditional approach is to mount the VHD file, install Windows inside, and then mount the VHD file onto the physical machine with the help of VIRTUALPC or other virtual machines. This approach is more complex, then can not install Windows, how can you directly convert the WIM image file in the Windows installation CD to a VHD? The answer is, of course, acceptable.

1.WAIK, the tool needs to invoke the ImageX command in Waik.

2.wim2vhd.

3. Operate the computer and install Windows7. Prepare the Windows7 installation CD-ROM and, if it is an ISO image file, mount it onto the virtual CD-ROM using the UltraISO and other mount tools. Suppose the optical drive letter is H:

1. Execute the following command with administrator privileges

Cscriptwim2vhd.wsf/wim:h:sourcesinstall.wim

This command detects the names of each of the different SKU images on the installation disc, and we can see that the Windows7 flagship, whose SKU name is Ultimate:

2. Then run the following command to convert the flagship image file in the installation CD into a VHD file. and save to the F disk, the name is win7ult.vhd:

Cscriptwim2vhd.wsf/wim:h:sourcesinstall.wim/sku:ultimate/vhd:f:win7ult.vhd
The
3.wim2vhd script automatically creates a VHD file, the default size is 40GB, and then the notification area of the system tray pops up bubbles, prompting you to load the appropriate VHD disk driver to mount the VHD file.

4. Mount the VHD file, and the Wim2vhd file automatically invokes the ImageX command to release the Ultimatesku in the WIM image to the VHD partition that is being mounted.

5. By default, WIM2VHD does not mount a partition-allocation letter to the VHD file, which is mounted by default to the following NTFS directory:

%temp%wim2vhd. Wsf{guid}mount

6. After the release, Wim2vhd automatically executes the BCDboot so that the VHD can boot, and then automatically mount thePath Uninstall.

7. A VHD file has now been created, which already has a WINDOWS7 system installed, and the usual means of adding a startup item to the Bcdedit command.

8. Reboot the computer and choose to boot from the VHD and the system will be configured automatically.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.