OK, I totally scammed this one off of one of the Springboard series of videos, but wanted to make it easier for people to follow the steps instead of having to sit through the video. GREAT video by the way..
HERE is the script though…
**Boot to VHD script**
Start CMD as Administrator
Diskpart
Create vdisk file=c:ultimate7rc.vhd maximum=15000 type=fixed
Select vdisk file=c:ultimate7rc.vhd
Attach vdisk
List disk
Select disk #
Create part primary
Select part 1
Active
Format fs=ntfs quick
Assign
Open autoplay to show new drive and contents
Exit diskpart
Imagex /info c:install.wim —- shows the versions of the OS to install
Imagex /apply c:install.wim /check 4 (build # from info) g:
About 15 mins here
Diskpart
Sel vdisk file=c:ultimate7rc.vhd
Detach vdisk
See drive G disappears
Bcdedit to show current settings
Bcdedit /copy {current} /d “boot from VHD”
BCDedit again to get GUID
Bcdedit /set {GUID# here} device VHD=[C:]ultimate7rc.vhd
Bcdedit /set {GUID# here} osdevice VHD=[C:]ultimate7rc.vhd
Bcdedit /set {GUID# here} detecthal on
Bcdedit /set {GUID# here} description “VHD BOOT”
Bcdedit to see the changes to the BCDedit entry
1 Trackback or Pingback for this entry:
[…] The nice thing about a virtual machine is just that…it’s virtual and thereby quite portable. One of my favorite features of a virtual machine is the ability to take a snapshot of it. Also, if your laptop/desktop supports hardware virtualization, you can configure your system to allow you to boot directly into your virtual machine! Read Chad Solarz’s boot to .vhd script for further details. […]