Lab Ops Redux setting up Hyper-V in a hurry

by Guest Post on April 18, 2014

in SQL Server

I am at Manchester United as I write this and one of the delegates wanted to quickly try out Hyper-V in Windows Server 2012R2.  I thought I had an all up post on that but it turns out I don’t, so Nicholas Agbaji this is just for you!

You’ll need a latptop/desktop running Windows 7/Windows 2008R2 or later to work on that’s capable of running Hyper-V, and that the BIOS is setup for virtualization

  • You’ll need to download a copy of Windows Server 2012R2 and a special PowerShell script Convert-WindowsImage.ps1 from the TechNet Gallery.
  • Run the PowerShell script as follows. 

.\Convert-WindowsImage.ps1 –SourcePath <Path to your iso> -Size 50GB -VHDFormat VHD –VHD “C:\WS2012R2.VHD” -Edition "ServerStandardEval"

Note: If you are running on Windows 8 or Windows Server you can use the newer VHDX format for virtual hard disks

  • We now have a VHD with a sysprepped clean copy of Windows Server 2012R2 and Windows 7/2008R2 & later allows us to boot from a VHD just like the one we just made.
  • To boot from VHD we need to mount the VHD. In Windows 8/2012 you can simply click on a VHD to mount it, however in Windows 7/2008R2 then we’ll need to open an elevated command prompt and do this manually:
    • diskpart
    • select vdisk file =”<path to your VHD>”
    • attach vdisk
  • We’ll now get an additional drive say drive H: and now we’ll need to edit the boot database from an elevated command prompt and add and edit a new entry to register the VHD:
    • bcdboot g:
  • We also need to edit the BCD to get Hyper-V to be enable in our VHD with
    • bcdedit /set “{default}” hypervisorlaunchtype auto
  • Optionally you could describe your new boot entry with
    • bcdedit /set “{default}” description “Windows Server 2012R2 Lab Ops”
  • Reboot you server/laptop and you’ll have an extra boot option to boot to windows server.
  • The final step is to add in  the Hyper-V role either from Server Manager or with Powershell..
    • add-WindowsFeature hyper-v –IncludeManagementTools 

Once you have this VHD setup you can boot into your OS and backup the VHD you made and possibly reuse it on another machine.  So good luck Nicholas and thanks for spending the day with us!


Insufficient data from Andrew Fryer

{ Comments on this entry are closed }

Updated: Exchange Server Deployment Assistant

April 18, 2014

We’re happy to announce updates to the Exchange Server Deployment Assistant! These updates offer you more deployment options and outline new features that make deployments more flexible and easier to configure. We’ve updated the Deployment Assistant to include the following: Support for the Exchange 2013 Edge Transport server role in all on-premises and hybrid deployment […]

Read the full article →

Plaaaaay ball! Now casting live with MLB.TV

April 17, 2014

The 2014 Major League Baseball season is off to a big start, and now you can make all those hits, homers, steals and K’s even bigger with Chromecast. Thanks to our friends at MLBAM, as of today, you can cast live games straight to the TV with a tap of the cast button. MLB.TV is […]

Read the full article →

An Update about the Windows 8.1 Update

April 17, 2014

Hi everyone, David here.  Today over at the Springboard series blog we announced some important news that applies to anyone who has been trying to roll out the Windows 8.1 update in an enterprise environment.  We don’t usually do announcements about things being covered by other Microsoft blogs, but this one addresses something we’ve gotten […]

Read the full article →

In 2001, Nokia developed its M510 internet tablet

April 16, 2014

As it turns out, Nokia developed an internet tablet all the way back in 2001. It was called the Nokia M510, several thousand units were made, and it was functional. Sadly, market research showed that consumers were not yet ready for a device like this, and so the project was cancelled. It had a 800×600 […]

Read the full article →

Supermicro’s New Cluster-in-a-Box Solutions Running Windows Storage Server 2012 R2

April 16, 2014

Hi Folks – Most of us know the name Supermicro (a.k.a. Super Micro Computer), which designs, develops, manufactures, and sells a broad range of server systems, storage servers, high-end workstations, chassis, motherboards, and other server components. The company boasts more than $ 1 billion in sales per year, meeting the needs of both businesses and […]

Read the full article →

The data platform for a new era

April 16, 2014

Earlier today, Microsoft hosted a customer event in San Francisco where I joined CEO Satya Nadella and COO Kevin Turner to share our perspective on the role of data in business. Satya outlined his vision of a platform built for an era of ambient intelligence. He also stressed the importance of a “data culture” that encourages […]

Read the full article →

How to publish Anonymous Calendar Sharing URL in Exchange Online or Exchange 2013

April 16, 2014

Do your users want to share their calendar with anonymous users? Here's a tip related to sharing your calendar via a web link for anonymous users (users outside of your organization). Users can publish their calendar for anonymous viewers using OWA. Organization administrators can also publish a user's calendar. Here we will share both of […]

Read the full article →

Online Invitations Startup Paperless Post Raises $25M From August Capital

April 16, 2014

 Online (and offline) invitations startup Paperless Post has become a modern-day greeting card company, enabling users to create custom cards to their events and send them to friends. Our sources tell us that it’s raised another big round of funding to get more of its invitations out to more users. Read More TechCrunch

Read the full article →

The photos from your phone, now one click away

April 15, 2014

Posted by Thijs van As, Product Manager Unless you’re a budding Ansel Adams, odds are you take most of your photos using your phone. And whether it’s photos of your hiking trip or a night out, sending photos to friends and family just got easier. Starting today, you can save time and insert your Auto […]

Read the full article →