How to Boot from a VHD in Windows Server 2012 / Windows 8

Warning
This blog post is included for archival purposes and may contain outdated information. While it provides historical insights, we strongly recommend that you double-check the details before relying on any of the information outlined here.

We recently cerated some sysprep’d VHDs using Hyper-V to boot physical machines.  We tried using the utility we authored back on the day, the B2VHD Assistant, but after rebooting the machine it would go into what seemed to be a repair mode.

After some research, we found the way to boot from a VHD that has Windows Server 2012 or Windows 8 installed.  Here are the steps that we took:

  1. Using Hyper-V, we installed Windows Server 2012
  2. We sysprep’d the VHD and then had it turned off.
  3. We transferred the VHD to the machine where we wanted to boot from the VHD
  4. If using Windows 8/2012, right click the VHD, selected mount, and take note of the letter in which the VHD was mounted (if using Windows Server 2008 R2, use Server Manager to mount the VHD).
  5. Open a command prompt as administrator.
  6. Type the following command: bcdboot X:\Windows   (assuming the VHD was mounted on the X: drive)
  7. You will receive a message saying that “Boot files were successfully created”.
  8. Unmount the VHD
  9. You can now open msconifg and see that the boot entry is there.
  10. Next time you reboot, the machine will boot from the VHD

Post in comments if you have issues.

Source:

 

 

About Author

Christian Saborio

Christian is a seasoned computer engineer with a rich career spanning collaborations with industry leaders such as Artinsoft (now Mobilize.net), Microsoft, HP, and Intel. As a technical evangelist and trainer, Christian honed his expertise in Costa Rica and Seattle, delivering impactful solutions and sharing his knowledge.

Now based in Sydney, Australia, Christian channels his passion into web development, leading a talented team to tackle diverse projects with innovation and precision. His commitment to crafting exceptional digital experiences reflects his deep-rooted enthusiasm for technology and problem-solving.

Comments

    Comments are closed

    Thank you for your interest. Please fill out this form to provide us with your contact information. We'll get back to you as soon as possible.