What is Boot from VHD?
is a new feature in Windows 7 and Windows Server 2008 R2 provides us the ability to boot our PC from a VHD file, without using virtualization or partitioning software discs.
In this way we can run the system using all the hardware on your PC, and even able to install the Hyper-V role on our Windows 2008 R2 or use the Mode in Windows XP 7.
should I know before I start?
The advantages I imagine that they are already, but what about the disadvantages.
I'm always blogging and trying "new discoveries", but reaching a certain point some functions do not run and do not know why, so I'll put this segment before.
- If you run these steps on the notebook with SATA in AHCI mode, when it seems it is starting correctly, Blue Screen!. To function properly your disk should be in IDE mode or compatible. (Like me suffer!)
- The operating system. VHD must be Windows 7 or Windows 2008 R2.
- The size of the VHD albeit dynamic, must not exceed the disk space. (In our case gave us a blue screen if exceeded)
- The performance decreases about 3% (That said, I did not notice difference.)
- Hibernate and Bitlocker can not work in some scenarios. The disk containing the VHD can not Bitlokeado.
- The procedure WAIK to me alone I ran from Windows 2008 R2. I'm seeing if I find out why.
- A request Fabian Imaz CUMUY the talk, we will investigate what happens if the VHD is on an external USB drive. This requires special SETTINGS resulting from changes in the lyrics of the units on the USB. Publish the method as soon as possible.
How to install a machine that boots from a VHD from the Installation DVD?
Here is the most practical if you want to start on your own computer.
1. Boot the computer from the installation DVD.
2. In the main screen of the installation, do not choose "Install Now", go to repair the system -> using tools, or press Shift + F10 to access the command line.
3. Start the utility partition by running the diskpart command
.
4. Create a new VHD running
create vdisk file = "C: \\ Path \\ nombre.vhd" type = maximum = TamañoenMegabyte expandable
5. Select the new VHD to mount it as a physical disk vdisk
select file = "C: \\ Path \\ nombre.vhd"
attach vdisk
6. Then close the command line and return to the home screen of the installation.
7. Start the installation as normal, selecting the virtual disk system disk. Ignore the message that Windows can not installed on this disk.
8. After installation, if you want to enable the hypervisor to:
- Start bcdedit / set {} hypervisorlaunchtype auto IDGenerado
The following image is an example of how to stay on my computer.
How to install a machine that boots from a VHD using WAIK?
First download Windows Automated Installation Kit from the Microsoft website:
http://www.microsoft.com/downloads/details.aspx?familyid=696DD665-9F76-4177-A811-39C26D3B3B34&displaylang=en
Install the product to access imagex.exe tool which we will prepare the VHD.
will create the VHD using the following commands, remember to check the disc numbers and others who depend on your system.
diskpart
Create vdisk file = C: \\ virtualmachine \\ Hyper-VServer \\ HVServer.vhd maximum = 25000 type = expandable
Select vdisk file=C:\VirtualMachines\Hyper-VServer\HVServer.vhd
Attach vdisk
List disk
select disk 1
create partition primary
select partition 1
active
format fs=ntfs quick
assign
exit
En la siguiente imagen I show you how I did on my pc
execute console
WAIK take us to the PATH where the imagex.exe
We put the installation DVD or in my case Hyper mount ISO -V Server 2008 R2 for testing.
We run the following command: imagex / info D: \\ sources \\ install.wim
The importance of this step is to see what the IMAGE INDEX installation of the system.
As shown in the image in my case is 1.
ran the deployment with this command imagex
/ Apply D: \\ sources \\ install.wim / check 1 F: \\
here and have a VHD, so using the following procedure can do boot to continue the installation.
Use existing VHD.
In the operating system, running from the command line as follows.
1. bcdedit / copy {current} / d "Description"
2. bcdedit / set {} device nuevoidgenerado vhd = [C:] \\ path \\ nombre.vhd
3. bcdedit / set {} osdevice nuevoidgenerado vhd = [C:] \\ path \\ nombre.vhd
4. bcdedit / set {} detecthal nuevoidgenerado on
5. bcdedit / set {} hyperlaunchtype auto nuevoidgenerado
if I have Windows Vista?
If you have Windows Vista SP1 on they have bcdedit.exe including the executable, but this is not the same as Windows 7 and commands that do not have.
For this reason we are going to do is upgrade to hand follows:
From a computer already running Windows 7 copies the boot files, such as a flash drive. Copy
bcdedit.exe and bootmgr.
C: \\ windows \\ system32> xcopy / h / y bcdedit.exe f: \\
C: \\> xcopy / h / and bootmgr f: \\
then booted DVD equipment with Windows 7 or Vista and access to the console as we saw earlier in order to run the following commands.
C: \\> attrib bootmgr-s-h-r
E: \\> xcopy / y / h bootmgr c: \\ bootmgr
E: \\> xcopy / y / h bcdedit.exe c: \\ windows \\ system32
I was wrong! How do I delete the boot to create?
execute the following command to clear entries generated using the appropriate ID. In my case
bcdedit / delete {0c75687a-9668-11de-aa2f-8f5180f2ee69}
hope the info will help in making these settings and any questions or comments to orders.
A hug.
Juan Barrios - Carlos Rovira
0 comments:
Post a Comment