PXE Boot a VM in Hyper-V

Posted On 2014-02-12 by dwirch
Tags: HyperV System Center Tip Windows Windows Server 2008 Windows Server 2012
Views: 1997

In most technology environments, automation is everything. Part of that automation is the deployment of operating systems to servers and workstations via Windows Deployment Services, with help of PXE boot. Here's how to PXE boot a guest in Hyper-V.


You might have tried this before, and discovered that navigating to Properties -> Hardware -> firmware and changing the startup order so that PXE was first.  And it didn't work, did it?  Why doesn't it work?!  It's first in the boot order, right?!

What is PXE?

PXE is short for Preboot eXecution Environment, and is pronounced PXE.  You can think of it as kind of a Windows version of a Linux LiveCD.  We use PXE in the Windows-based enterprise to load a boot image from a network location, from which we can select a pre-configured OS image from a list stored on our WDS server.

This makes things easy for building a uniform, easy to deploy environment, with easily repeatable results every time.

So Why Won't it Work with my Virtual Machine?

By default, SCVMM (or Hyper-V 3) utilizes a synthetic network adapter as part of the initial VM configuration.  The downer of this is that synthetic card doesn't start until after the guest OS does, which means it's not really there before Windows boots up.  Funky, right?

So to get around this, remove the synthetic card, and add a legacy network card to the virtual machine configuration, thus:

  1. Power down the guest
  2. In SCVMM, right-click the guest, and select Properties.
  3. In the Properties window, click Hardware Configuration
  4. Click the network adapter, usually labelled Network Adapter 1, then click Remove at the top of the window.
  5. Now click Add, and select Legacy network adapter from the list.
  6. Click Ok

Power on your guest, and you should see it PXE booting.  Be sure to press F12 to select an image to boot from!


About the Author

dwirch has posted a total of 172 articles.


Comments On This Post

No comments on this post yet!

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.

Your IP address is:

Before you can post, you need to prove you are human. If you log in, this test goes away.

Recent Forum Posts

Job Spammer: Sathya Narayana
dwirch posted on March 15, 2017 at about 7:18 in Spammers

Job Spammer: Manish Kumar
dwirch posted on March 14, 2017 at about 17:44 in Spammers

Site Migration Complete
dwirch posted on March 12, 2017 at about 11:10 in Site News

Site Migration Complete
dwirch posted on March 11, 2017 at about 0:35 in Site News

Job Spammer: Jason Weinstein
dwirch posted on March 10, 2017 at about 14:00 in Spammers

Job Spammer: Ryan Wilson
dwirch posted on March 8, 2017 at about 17:00 in Spammers