Guide: How to get PXE boot to work in Hyper-V
Today, I wanted to virtualize a client that I’ve previously had as a seperate machine. So, I thought that I would just do a clean installation of the system via PXE-boot.
I didn’t quite get this to work at first, but after a little bit of reading I found out how to do it, and it’s not as straight forward as you might think it would be.
Note: This guide assumes that you have a working PXE boot environment set up.
Here’s how to do it:
1. First you need to create a virtual switch. This is needed for the Virtual Machine to be able to communicate with the network. If you already have created a virtual machine for your network, you can skip this step. Start by right-clicking the Hyper-V host in Hyper-V Manager and selecting “Virtual Switch Manager”.
2. Create a new Virtual Switch. Select “External”, which is similar to “Bridged” if you’re used to other virtualization software.
3. Give the new Virtual Switch a name. I named mine “Bridged”.
4. By default, there is only a “Standard Network Adapter” installed on the Virtual Machine, but for PXE functionality you will need to add a “Legacy Network Adapter”.
5. Go to the “Legacy Network Adapter” that you just added and specify that it should use the Virtual Switch that you just created.
6. Last but not least, you should change the BIOS boot priority to make sure that the Virtual Machine always tries to boot first using the “Legacy Network Adapter”. Just select the “Legacy Network Adapter” and move it to the top using the buttons.
7. Start your Virtual Machine and now PXE boot should work 🙂
About the author
Daniel Classon works as a Senior Consultant at Mansoft, focusing on Microsoft Configuration Manager, Windows 10 and Powershell
- How to install .NET Framework 3.5 on Windows Server 2012 and Windows Server 2012 R2 963,643 views
- Issue with mounting new ISO files from TechNet in Windows 8 and Windows 8.1 Preview 63,714 views
- Solution to OSD issue 80072ee7 31,196 views
- Powershell: Script to set Outlook 2010/2013 signature using information populated from Active Directory 31,887 views
- Guide: How to get PXE boot to work in Hyper-V 107,010 views
- Guide: How to force specific sites to always run in Compatibility View using Group Policy 142,467 views
- How to change between a Full Installation (GUI) and Server Core in Windows Server 2012 63,924 views
- Guide: Solving WDS issue with DHCP port conflict 11,915 views
- Hyper-V: Issue when starting virtual machine from downloaded ISO file 7,408 views
- How to check status of Bitlocker encryption on a client 118,124 views