Booting Hyper-V

You can boot directly from a virtual machine with Hyper-V (server 2012).

Go to (for example):
Server Manager -> Tools -> Computer Management
then
Storage -> Right Click Disk Management -> Attach VHD and choose the vhd you want to use.

After attaching a vhd, start the command prompt as administrator and type:

Bcdboot <driveletter for vhd-disk>:\windows
(makes the vhd available for booting, example: bcdboot h:\windows )

Bcdedit /set {default} Description <name for booting the vhd>
(makes the vhd boot as default and adds a description, example: bcdedit /set {default} Description VirtualServer2012Data)

If you want to remove the boot option type:
Bcdedit /delete {default}

Some good links to bcdboot and bcdedit:

http://www.geoffchappell.com/notes/windows/boot/bcd/index.htm
http://www.geoffchappell.com/notes/windows/boot/advancedoptions.htm?tx=5

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s