VHD Native Boot Part 2

VHD Native Boot: Part 2 – Windows 8.1 & 10

In part one of this series we talked about booting a Windows 7 VHD and how to do it. In this part, we will talk about how to do it with Windows 8.1 and Windows 10. The real difference is that with Windows 7, we booted using legacy BIOS. In this part, we will boot a UEFI-based computer. The process is similar, but there are some differences that I wanted to talk about.

Part 1 can be found here: https://windowsmanagementexperts.com/vhd-native-boot-part-1-windows-7/vhd-native-boot-part-1-windows-7.htm

Requirements

The requirements are the same as they were in part one, expect for the fact we will be doing UEFI instead of BIOS. Windows 8.1 and Windows 10 can boot using BIOS, as long as your base image was created on that type of hardware.

Base Image

You will still create your base image using a VM or physical machine. If you are using VMware to create your base, make sure to select EFI on the firmware page. If you are using Hyper-V, make sure that it is a generation two virtual machine. If you are using a physical machine, be sure to set it to UEFI in the BIOS before installing Windows.

With UEFI-based machines, you can use the VHDX file format instead of VHD. This format allows for larger volumes (up to 64TB), as well as other performance-based improvements.

The rest of the process is the same as stated in part one. If you use Hyper-V, you can sysprep the VM and then copy the VHD to your other machines. If you take a checkpoint of your VM, you may have to merge the disks back together. Take a backup before doing this. To merge disks, open Hyper-V manager and select Edit Disk in the right column.

1

Browse to the AVHDX file (the checkpoint file) and click OK. Select “Merge”:

2

Then, press OK, keep “To the parent virtual hard disk” selected and click Finish.

If you are using VMware or a physical machine, you will need to capture a WIM and then apply the WIM to a VHD using the directions in part one.

Once you have your VHD, copy it to a USB drive or to a network share.

Apply VHD

Now we will apply the VHD to our machine. Remember, this will wipe the current drive.

Boot to WinPE (for instructions, see part one). If the USB drive is recognized, it may be because the drive is formatted for BIOS and UEFI. Once booted to WinPE, we need to launch diskpart and format the drive. Use these commands:

diskpart

select disk 0

clean

convert gpt

create partition efi size=100

format quick fs=fat32

assign letter=s

create partition msr size=128

create partition primary

format quick fs=ntfs

assign letter=c

exit

Now we need to copy our VHDX to the computer. If you are using a network drive, you should use the net use command to map the drive first. If you are using a USB device, you can ignore line one of these commands. Be sure to input the proper path in the copy command:

net use z:\ \\server01\share01 /user:contoso\user1

copy z:\win10.vhdx c:

Now we need to launch diskpart again and mount the VHD. For the list volume line, you must locate the volume number of your mounted VHDX.

diskpart

select vdisk file=c:\win10.vhdx

attach vdisk

list volume

select volume <VHDX volume number>

assign letter=v

exit

Finally, we need to copy the boot files to our system partition:

cd v:\windows\system32

bcdboot v:\windows /s s: /f UEFI

Now you should be able to reboot your computer and boot into your VHD. It will run through the OOBE the first boot.

Disclaimer

All content provided on this blog is for information purposes only. Windows Management Experts, Inc makes no representation as to accuracy or completeness of any information on this site. Windows Management Experts, Inc will not be liable for any errors or omission in this information nor for the availability of this information. It is highly recommended that you consult one of our technical consultants, should you need any further assistance.

Share:

Facebook
Twitter
LinkedIn

Contact Us

On Key

More Posts

Mastering Azure AD Connect - A Comprehensive Guide by WME
Active Directory

Mastering Azure AD Connect – A Comprehensive Guide

Modern businesses are fast moving toward cloud-based infrastructure. In fact, cloud-based business is not just a trend anymore but a strategic necessity. Microsoft’s Azure Active Directory (Azure AD) has become a frontrunner in this domain. It

Read More »
Security Best Practices in SharePoint
Office 365

Security Best Practices in SharePoint

Microsoft SharePoint is an online collaboration platform that integrates with Microsoft Office. You can use it to store, organize, share, and access information online. SharePoint enables collaboration and content management and ultimately allows your teams to

Read More »
The Ultimate Guide to Microsoft Intune - Article by WME
Active Directory

The Ultimate Guide to Microsoft Intune

The corporate world is evolving fast. And with that, mobile devices are spreading everywhere. As we venture into the year 2024, they have already claimed a substantial 55% share of the total corporate device ecosystem. You

Read More »
Protecting Microsoft 365 from on-Premises Attacks
Cloud Security

How to Protect Microsoft 365 from On-Premises Attacks?

Microsoft 365 is diverse enough to enrich the capabilities of many types of private businesses. It complements users, applications, networks, devices, and whatnot. However, Microsoft 365 cybersecurity is often compromised and there are countless ways that

Read More »
Be assured of everything

Get WME Services

Stay ahead of the competition with our Professional IT offerings.