Multi-system installation through vhd Virtual Disk

Source: Internet
Author: User
Multi-system installation through vhd Virtual Disk

I. experiment environment

Host System: Windows 7 flagship edition (only Windows 7 flagship edition and later versions can be implemented. If it is not a version above Windows 7 flagship edition, you can create a vhd Virtual Disk only when installing a new Windows 7 flagship edition system.

Ii. Tutorial Purpose

Multiple operating systems are installed through Virtual Disks, instead of using a separate physical disk partition for the system.

Finally, the win7 system and Win8 system will coexist.

Iii. Experiment steps

1.Add a Dynamic Disk

Open "Computer Management" and select "create vhd"

650) This. width = 650; "Title =" clip_image002 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image002 "src =" http://img1.51cto.com/attachment/201407/3/283611_14043561768m1C.jpg "Height =" 144 "/>

Select the Virtual Machine disk path and disk size

650) This. width = 650; "Title =" clip_image004 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image004 "src =" http://img1.51cto.com/attachment/201407/3/283611_1404356177jtKI.jpg "Height =" 239 "/>

650) This. width = 650; "Title =" clip_image006 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image006 "src =" http://img1.51cto.com/attachment/201407/3/283611_1404356178WMbT.jpg "Height =" 106 "/>

Create disk as disk J and format the disk

2. Mount windows to the created vhd Hard Disk

Mount the Windows Installation File to the created vhd hard disk by using the unzip imagex.exe tool.

(1) Find the configuration file of the installed system

First, find the installation configuration file for Windows 8 on the system installation disk.

650) This. width = 650; "Title =" clip_image008 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image008 "src =" http://img1.51cto.com/attachment/201407/3/283611_1404356182jvW1.jpg "Height =" 287 "/>

(2) mount the system using imagex.exe

Use imagex.exe to deploy the system using the Windows Image (. WIM) file:

View image file information through "/INFO"

650) This. width = 650; "Title =" clip_image009 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image009 "src =" http://img1.51cto.com/attachment/201407/3/283611_1404356182wMd5.jpg "Height =" 312 "/>

In this example, the Windows 8 system has only one image, and the image count is 1.

650) This. width = 650; "Title =" clip_image011 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image011 "src =" http://img1.51cto.com/attachment/201407/3/283611_1404356183kieO.jpg "Height =" 359 "/>

650) This. width = 650; "Title =" clip_image013 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image013 "src =" http://img1.51cto.com/attachment/201407/3/283611_14043561841e6U.jpg "Height =" 274 "/>

Write down the version represented by each images index,

Use the imagex/apply command to apply the volume image to the specified drive.

650) This. width = 650; "Title =" clip_image014 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image014 "src =" http://img1.51cto.com/attachment/201407/3/283611_14043561841q6P.jpg "Height =" 169 "/>

The "/INFO" command verifies that there is only one image file on the CD, and the images index is 1. Therefore, select "1" for installation.

650) This. width = 650; "Title =" clip_image015 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image015 "src =" http://img1.51cto.com/attachment/201407/3/283611_1404356189btm1.jpg "Height =" 205 "/>

(3) Add a startup Item

Both methods can be used to add a boot item. The bcdboot command is relatively simple. Although the bcdedit command is complex, You Can Customize various parameters and names, providing more powerful functions.

BcdbootCommand

Bcdboot J: \ windows/s c:

Copy the boot file of the newly created J disk to drive C (/s is the import startup information parameter, and C: Is the partition where we want to import the startup information)

Restart

② Bcdedit command

Use the bcdedit command to add a startup Item

L bcdedit/copy {current}/D "Windows 8 start" (copy the startup information of the current system as the vhd startup information)

650) This. width = 650; "Title =" clip_image016 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image016 "src =" http://img1.51cto.com/attachment/201407/3/283611_1404356190X6qM.jpg "Height =" 63 "/>

The middle part of the quotation marks is the name displayed in the Start Menu. Then, the system will generate a {Variable} and {Variable} will be used in subsequent commands.

L bcdedit (view the current Boot configuration information after replication), the partition information is still C

650) This. width = 650; "Title =" clip_image017 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image017 "src =" http://img1.51cto.com/attachment/201407/3/283611_1404356190Lx2U.jpg "Height =" 245 "/>

L modify the osdevice path

Bcdedit/set {18d97c36-c553-11e2-b6e0-ca453d480c66}

Osdevice vhd = [D:] \ Windows 8.vhd (change the startup information of vhd to point it to the vhd file)

650) This. width = 650; "Title =" clip_image018 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image018 "src =" http://img1.51cto.com/attachment/201407/3/283611_1404356191m1IW.jpg "Height =" 68 "/>

Bcdedit (query the modified current Boot configuration)

650) This. width = 650; "Title =" clip_image019 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image019 "src =" http://img1.51cto.com/attachment/201407/3/283611_1404356192Ia3z.jpg "Height =" 239 "/>

L modify the device path

Bcdedit/set {18d97c36-c553-11e2-b6e0-ca453d480c66} device vhd = [E:] \ win8.vhd

650) This. width = 650; "Title =" clip_image020 "style =" border-top: 0px; border-Right: 0px; Background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; padding-Right: 0px; "Border =" 0 "alt =" clip_image020 "src =" http://img1.51cto.com/attachment/201407/3/283611_14043561966E1L.jpg "Height =" 246 "/>

L restart the system.

This article is from the "Linux growth history" blog, please be sure to keep this source http://20101218.blog.51cto.com/283611/1433837

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.