fortypoundhead.com

PXE Boot a VM in Hyper-V

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


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.

Problem

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 185 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:54.80.169.119

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




Recent Forum Posts

Advanced search added
dwirch posted on September 23, 2017 at about 13:44 in Site News

Job Spammer: Gaurav Mehta - AgreeYa Solutions
dwirch posted on September 22, 2017 at about 10:35 in Spammers

Job Spammer: Prutha Siri - Javelin Systems
dwirch posted on September 10, 2017 at about 6:15 in Spammers

New security implemented
dwirch posted on September 7, 2017 at about 7:16 in Site News

Malicious IP Checker Companion Tool
dwirch posted on August 12, 2017 at about 20:24 in Site News

Job Spammer: Steve Adams
dwirch posted on August 8, 2017 at about 7:44 in Spammers