Technical Blog | 技術博客

易,窮則變,變則通,通則久。是以自天佑之,吉無不利。

[Original] UEFI Bare-metal VHDX Boot (Snapshot, Branch ,Portable) System - Support Disk (Local Disk SSD/HDD, Portable Storage Device)

Introduction

This tutorial will teach you to complete the UEFI bare metal VHDX boot system deployment, and teach people to fish and teach. I hope you can stand on the shoulders of giants to create better content.

Currently, most PCs sold on the market are all booted by UEFI boot security by default, supporting fast boot, higher performance, more convenient operation, and will evolve as technology updates, which means UEFI will be current The best way to get started.

VHDX (VHD) boot mode, no need for separate partitioning, easy to deploy and manage multiple systems, system installation and uninstallation is simple, and you can get the maximum performance experience. Physical machine snapshots and system branching are enabled on a differential disk without a virtual machine, and the VHDX system can be loaded into a portable device and taken away at any time.

In this tutorial, I will share the VHDX image file for Windows Server 2019 Datacenter for UEFI bootloading, which has been updated and updated several times by [Technical Blog | 技術博客]. (A few months ago, [Technical Blog | 技術博客] released a VHD image for Windows Server 2019 Datacenter for Legacy bootloading)

如果你来自于中文社区,请点击这里

Advantage

1. Bare metal is started. This machine does not require a system, direct grid, to achieve bare metal VHDX system startup.

2. Snap the branch. It is implemented by a differential disk image file, based on the parent image, multiple branch sub-images, and different systems for different purposes. Backup and restore the system at any time, just copy and paste the VHDX file backup.

3. Make reasonable use of SSD disk space. No need for multiple partitions, you can understand that the entire hard disk as a storage pool, there will be no waste of SSD disk space, and improve disk efficiency.

4. The advantages of UEFI. Quick start, safe boot, higher performance, more convenient operation, and more, you can search to find out more.

5. The advantages of VHDX boot. Easy to maintain (install/uninstall), multi-system boot, higher performance, the system can be taken away portable.

6. Install and uninstall portable. The VHDX system is a disk file + a boot entry. When installing, copy the disk file and add a startup item. When uninstalling, delete the disk file and remove the startup item.

Let’s get started (basic tutorial)

1. Prepare the file and download the required files to your external storage device (all files are hosted on Open Disk CDN)

System Image:https://opendisk.cxthhhhh.com/OperatingSystem/Windows/Disk_UEFI_Bare-metal_Windows/Disk_UEFI_Bare-metal_Windows_Server_2019_Datacenter_VHDX.7z

ESP Image:https://opendisk.cxthhhhh.com/OperatingSystem/Windows/Disk_UEFI_Bare-metal_Windows/ESP_Partition_Fix.pmf

DiskGenius:https://opendisk.cxthhhhh.com/OperatingSystem/Windows/Disk_UEFI_Bare-metal_Windows/DiskGenius64.7z

BOOTICE:https://opendisk.cxthhhhh.com/OperatingSystem/Windows/Disk_UEFI_Bare-metal_Windows/BOOTICEx64.exe

Because you need to re-partition the local hard disk, please store the above files to external portable devices (such as U disk, mobile hard disk), you also need a U disk PE or CD-ROM boot disk. (VNC or IPIM is required for a standalone server)

2. Enter the PE/boot disk, use DiskGenius software, and perform (single) partitioning on your target disk according to the template below. (Installable to local disk and portable devices)

(Warning: Partition is risky and will erase all data. Please backup all the data on your current hard drive.)

《[Original] UEFI Bare-metal VHDX Boot (Snapshot, Branch ,Portable) System - Support Disk (Local Disk SSD/HDD, Portable Storage Device)》

3. Import the ESP partition. ESP is the necessary file for UEFI boot startup. At the same time, assign a drive letter to the ESP partition, which is convenient for the next step to modify the BCD to add startup items. (Use the drive letter O: in the tutorial)

《[Original] UEFI Bare-metal VHDX Boot (Snapshot, Branch ,Portable) System - Support Disk (Local Disk SSD/HDD, Portable Storage Device)》

4. Create a VHDX image storage folder in the partition and decompress the System Image into the directory through 7Z-ZIP.

The directory [OS_VHDX_DATA] is used in a single partition in the demo tutorial, as shown below. At this point, there is only the parent image in your directory, which is the first file. Other files will be taught to build below.

《[Original] UEFI Bare-metal VHDX Boot (Snapshot, Branch ,Portable) System - Support Disk (Local Disk SSD/HDD, Portable Storage Device)》

5. add the VHDX boot item of the parent image (add the sub-image steps the same, the only difference is that the file path points to the sub-image)

Open BOOTICE, select BCD paging, select the [O:] disk you have previously mounted, and modify the BCD file path as shown:

《[Original] UEFI Bare-metal VHDX Boot (Snapshot, Branch ,Portable) System - Support Disk (Local Disk SSD/HDD, Portable Storage Device)》

Add a new VHDX boot entry. Do not delete the default startup items I have set before completing the addition of a new VHDX startup item.

《[Original] UEFI Bare-metal VHDX Boot (Snapshot, Branch ,Portable) System - Support Disk (Local Disk SSD/HDD, Portable Storage Device)》

Add the VHDX startup item and follow the instructions in the tutorial. You only need to modify what I circled. Each setting will be described in detail below.

《[Original] UEFI Bare-metal VHDX Boot (Snapshot, Branch ,Portable) System - Support Disk (Local Disk SSD/HDD, Portable Storage Device)》

①. Set up your hard drive physical device. It is possible to determine which device is available by hard disk capacity and DiskGenius. For example, the blogger’s computer has a total of three hard drives, and the SSD is the first physical hard drive of 256GB, which is HD0.

②. Set up the partition on the physical hard disk. We are a single partition. So select the partition with the largest space on the device, usually GPT2. (GPT0 is an ESP partition and GPT1 is a Microsoft reserved partition)

③. Fill in the VHDX file path. 12 has set which hard drive and partition to boot from, now just set the path to the previous VHDX parent image.
You can understand the path by referring to the figure in the previous step. The parent image path of the blogger is \[OS_VHDX_DATA]\Windows_Server_2019_Datacenter.vhdx

④. Set the title name displayed in the boot menu. Arbitrary settings, the purpose is to facilitate their own identification, such as writing purposes and so on.

⑤. Click to save the current newly added VHDX boot item settings.

⑥. Set up according to the above figure, click 7 to save the global settings.

6. UEFI bare metal VHDX startup has been deployed, the basic tutorial is over. Learn about advanced tutorials to continue.

Exit the PE or CD-ROM system. In UEFI mode, boot from the hard disk HD0, install the driver and optimize it as you want.

After the system is started, the driver can be driven by C:\Program Files\DrvCeo\DrvCeo.zip to drive the president’s network card version.

In the advanced tutorial, the differential disk will be implemented, branching and snapshotting, and backup and restore different systems at any time.

Advanced tutorial (Disk Differential, System Branch, Snapshot)

1. Disk Differential

Disk differential, which creates a new disk image of incremental data based on the current parent image. (After you install the driver and configuration for the parent image, you can make a disk difference)

This means that the child image exists in the same directory as the parent image. The new subdisk image only records the incremental content of the changes since the parent image was differential.

《[Original] UEFI Bare-metal VHDX Boot (Snapshot, Branch ,Portable) System - Support Disk (Local Disk SSD/HDD, Portable Storage Device)》

Fill in the content as shown below:

《[Original] UEFI Bare-metal VHDX Boot (Snapshot, Branch ,Portable) System - Support Disk (Local Disk SSD/HDD, Portable Storage Device)》

①. Set the parent VHDX image path.

②. Set the sub-VHDX image path to be created (keep the same path of the parent image, different file names. It is recommended that the file name be kept associative, so that you can manage the tag image yourself).

③. Click to create.

④. Record your sub-VHDX image path. Adding a VHDX boot item is required (if you explicitly path it can also be filled in manually, no need to record).

⑤. Make sure the creation is complete.

2. System Branch

1. Create multiple differential disks and add a boot entry for each child VHDX image.

2. Delete the parent VHDX image boot entry, only allowed to boot from the sub-image (all sub-images are differentiated from the current time point of the parent image, and if the parent image is modified after the difference, the sub-image will be invalidated).

3. Snapshot

Create a system snapshot: Back up the current VHDX image file to another location. (If it is a differential disk, please also back up the parent and child disk image files)

Restore system snapshot: Copy the backed up VHDX image file to the VHDX boot directory (or modify the VHDX file path pointed to by the boot entry).

Multiple Snapshots: Disk differentiation can be performed again from the current point in time based on the superior VHDX differential, multiple startup items are created, and backups are restored. Differences can be nested. (Do not modify the parent image after the difference)

You need to understand

1. The default language is Chinese and English, if you are a different language user. Please install your Windows language pack and you can use it.You need to purchase a Microsoft Genuine license and activate to use the image.

2. Make the server system a desktop workstation. Please read the following article. (Configure WIFI function, desktop daily convenient configuration, etc.)

*Tutorials are waiting to be added (coming soon)

3. After the differential disk, only access the sub VHDX image file, do not operate the parent VHDX image file, otherwise the sub-image will be invalid.

4. the system can be installed on any device, local hard disk, portable devices (U disk, mobile hard disk, etc.).

5. Join the [Technical Blog | Technology Blog] Telegram group to share more VHDX startup related content. (Groups join the link, please pay attention to the TG channel top message)

Congratulations on the completion of the bare metal VHDX boot system deployment

[Technical Blog | 技術博客] Contact: [Telegram Channel:My Share] [Telegram Chat Group:Technical Blog | 技術博客]

This article was posted on the [CXT] Technical Blog | 技術博客, if you need to forward the share, please indicate the source.

[Original] UEFI Bare-metal VHDX Boot (Snapshot, Branch ,Portable) System – Support Disk (Local Disk SSD/HDD, Portable Storage Device)

点赞