To boot a VM from the PXE, you will need to configure your device to use a DHCP server and set up a boot image. We have explained various ways via which It can be done below.

Contents
What is PXE boot Hyper-V Gen 2?
Preboot Execution Environment (PXE) boot is a process that boots a computer without using a local hard drive or optical disk.
The PXE boot process uses a server on the network to load the operating system files into the computer’s memory, which enables the computer to run without a local hard drive or optical disk.
PXE boot is often used for installing operating systems on computers that do not have a local hard drive or optical disks, such as blade servers and thin clients.
PXE boot can also refurbish computers imaged with a new operating system
Can you PXE boot with UEFI?
PXE booting with UEFI is possible, but it requires some configuration changes. To PXE boot with UEFI, you must ensure that your computer is configured to use UEFI mode and not Legacy mode.
Once you have verified that your computer is in UEFI mode, you will need to change the boot order so that the network card is listed first.
It can be done in the BIOS settings on your computer. Once the boot config order is changed, you should be able to PXE boot with UEFI.
How do I enable PXE on Windows 11?

PXE (Preboot Execution Environment) is a collection of files used to perform a network boot. The most common use for PXE is to boot a computer without a local operating system or a laptop with a damaged local operating system.
To enable PXE on Windows 11, you must install the PXE Server role on your server. It can be done using the Server Manager console or the PowerShell cmdlet Install-Windows Feature.
Once the PXE Server role has been installed, you will need to configure your DHCP server to point clients to the PXE Server for boot information.
How do I start PXE over IPv4?
If you are using a DHCP server running Windows Server 2012 or later, you can configure the DHCP server to listen for and respond to PXE requests on a specific port.
It enables the DHCP server to coexist with other servers on the same computer that might be configured to listen on the standard ports.
Configure the DHCP server to listen for and respond to PXE requests on a specific port.
How do I disable the PXE boot virtual machine?
PXE boot virtual machine is straightforward to disable. Ensure that you have the proper settings in your BIOS and that the PXE boot virtual machine is disabled in your operating system.
To disable PXE boot on a virtual machine, use the following steps:
- Stop the virtual machine that you want to configure.
- Select the virtual machine from the index and click the Edit Settings link.
- Click the Options tab, and select General from the left panel.
- Expand Boot Options, and uncheck Enable network booting from the Virtual Machine properties page.
- Save your changes and restart the virtual machine.
Conclusion:
PXE boot can be done for a virtual machine but requires basic system networking understanding. After following the above post, we hope you can boot a device using PXE. Do let us know your thoughts in the comment section below.