Showing posts with label GEN2. Show all posts
Showing posts with label GEN2. Show all posts

Thursday, January 1, 2015

Azure Site Recovery - Survey

Happy New Year!

Now, let us get back to work.

I have made a very short survey just to get a better understanding of the potential DR scenarios with Microsoft Azure Site Recovery.

As you already know, Azure can be your DR site today, where you can have ongoing replication from your private cloud(s) to Azure, which eliminates the need for a secondary site that you have to manage and operate yourself.

However, there are some limitations when using Azure, such as lack of support for Generation 2 VMs and the advance usage of VHDX.

Please take 30 seconds to complete this short survey - and I will be very grateful.

https://no.surveymonkey.com/s/KWSCD6W

-kn

Monday, May 12, 2014

Configuring FirstBootDevice for Gen2 VM Templates

Since Microsoft announced “Generation 2” VMs in Hyper-V with Windows Server 2012 R2, many people have made this the default generation for all their new VM deployments.
And of course, when using VMM, you are creating VM templates based on Gen 2 base OS.

For more information about Gen2 VM and the support in Virtual Machine Manager, go ahead and read a blog post I wrote earlier, on what this really is, what it means and how to create them with VMM: http://kristiannese.blogspot.no/2013/11/how-to-create-gen2-vm-with-scvmm-2012-r2.html

During the past few months, we’ve seen several threads in the VMM forums at TechNet that several users have troubles with deployment of Gen2 VMs.
It was hard to detect the root cause, as many people had created their VMs outside of VMM, with either FCM, Hyper-V Manager or Hyper-V Manager cmdlets, or other deployment tools.
However, there was a trend and Microsoft published a kb recently.

When you use System Center 2012 R2 Virtual Machine Manager for template creation, you may discover that Generation 2 virtual machines (VMs) based on this template cannot start after creation. Virtual Machine Manager returns the following error:

Error (23352) VMM cannot find the device or this device is not valid for a boot device.


To resolve this issue, you must change the VM template, and this can easily be done through PowerShell:

Get-SCVMTemplate –name “yourGen2TemplateName” | Set-SCVMTemplate –FirstBootDevice “SCSI,0,0”

This will ensure that the VMs you deploy based on this template, will successfully start.

Many of my customers runs big datacenters and have a lot of templates that they use together with tenant portals, like Azure Pack or something they developed by themselves.
The list of templates can be huge, so we should carefully look at our templates so that we don’t configure this for our Gen1 templates, as this change would result in a bad experience for those (Gen1 requires IDE controller to start).

First, we use the VMM module to search for all of our Gen 2 templates that have anything but SCSI as their FirstBootDevice:

Get-SCVMTemplate | where-object {$_.FirstBootDevice -cnotcontains "SCSI,0,0" -and $_.Generation -eq "2"

If this results any VM templates, then you should follow up with piping that into: Set-SCVMTemplate –FirstBootDevice “SCSI,0,0”

Get-SCVMTemplate | where-object {$_.FirstBootDevice -cnotcontains "SCSI,0,0" -and $_.Generation -eq "2"} | Set-SCVMTemplate -FirstBootDevice "SCSI,0,0" 


Now, make sure your Gen2 VMs are configured correctly.

Monday, November 11, 2013

How to create a GEN2 VM with SCVMM 2012 R2

Hopefully, you are a completely aware of the support of GEN2 VMs in Hyper-V in Windows Server 2012 R2.
The virtual machine generation determines the virtual hardware and functionality that is presented to the virtual machine.

Generation 1 VMs is the legacy VMs that we have been using over the last years, that provides the same virtual hardware to the virtual machine as in previous versions of Hyper-V.

Generation 2 VMs  provides a lot of new functionality on a virtual machine, like:

-          Boot from a SCSI virtual hard disk
A well-known topic about the architecture of Hyper-V is that the boot partition always had to be associated with an IDE controller in the virtual hardware profile. This was because it would bypass the integration service requirements, so that you could boot ‘any’ guest OS on Hyper-V. The performance was identical as to SCSI controller associated disk when integration services was present, but it was simply a bypass. This gave us some challenges regarding new features we got in 2008 R2, like hot-add/remove of virtual hard disk that could only be performed on VHD’s associated with the SCSI controller. In other words, only data-partitions could be added/removed on the fly. Since a GEN2 VM now can boot from a SCSI-controller, we can also add/remove and resize these disks associated, even if it’s the boot partition. Please note that VHDX is a requirement in order to use GEN2 VMs.

-          Secure Boot (this one is enabled by default)
Secure boot is enabled by default for GEN2 VMs and is a feature that helps prevent unauthorized firmware, operating systems, or UEFI drivers from running at boot time

-          Boot from a SCSI virtual DVD
Instead of using an IDE virtual DVD, we can now use SCSI Virtual DVD

-          PXE boot by using a standard network adapter (this is for real!)
If you wanted to boot a VM and to perform a remote installation of the guest operating system using PXE boot, you had to use a legacy virtual network adapter in the virtual hardware profile – in order to bypass the integration services (since they were not present at boot time). GEN2 VMs support PXE boot by using a standard virtual network adapter (aka synthetic device) so there is no need to install a legacy network adapter, which has been removed from GEN2 VMs.

-          UEFI firmware support
The Generation 2 VM has a much more simplified virtual hardware model and supports Unified Extensible Firmware interface (UEFI) firmware instead of BIOS-based firmware. This means that most of the legacy devices are removed from GEN2 VMs.

These are the guest operating systems that are supported as GEN 2 VMs:

-          Windows Server 2012
-          Windows Server 2012 R2
-          64-bit versions of Windows 8
-          64-bit versions of Windows 8.1

By reading this, I can assume that you can see the benefits of using GEN2 VMs.

In addition, SCVMM 2012 R2 support GEN2 VMs and we can create, deploy (newly VMs or/and based on templates) through powershell and the GUI.

Please note: Services in VMM in System Center 2012 R2 do not support generation 2 virtual machines. When you create a service template in VMM, if you have created virtual machine templates (VM templates) that specify generation 2 virtual machines, you cannot add those templates to the service template. You can only add virtual machine templates that specify generation 1 virtual machines. Also, within a service template, in the virtual machine (tier) properties sheet, properties for a generation 1 virtual machine appear, but properties that are unique to generation 2 virtual machines do not appear.

Since SCVMM is fully aware of your datacenter infrastructure, it will leverage intelligent placement during VM deployment. This means that SCVMM will identify which hosts that support GEN2 VMs prior to deployment (give you a star rating) and help you to avoid faulty placement of GEN2 VMs.


How to create a GEN2 VM with SCVMM 2012 R2

1.       Logon to your SCVMM server and navigate to ‘VMs and Services’
2.       Click ‘Create Virtual Machine -- > Create Virtual Machine’ from the ribbon menu

3.       Select ‘Create a new Virtual Machine with a blank hard disk’ and click next. This is important, as you can’t use any template with GEN1 as your source

4.       On the ‘Specify virtual machine identity’ page, assign the VM a name and also specify the generation of the virtual machine. Click on the drop down list and select Generation 2

5.       On the ‘Configure hardware for the virtual machine…’ page, add an ISO image to the DVD drive, and eventually adjust any of the other hw settings to meet your requirements. Please note the absence of the legacy hardware that we had in generation 1 VMs

6.       On the ‘select destination’ page, please specify the cloud or the host group where the VM should be deployed

7.       Intelligent placement will work out its magic and detect the best suited host to run the virtual machine. Click next 3 times and finish to start the deployment

You should now have successfully deployed a GEN2 VM with SCVMM 2012 R2

The next logical steps would be as follows:

1.       Install and customize the guest operating system within the VM
2.       Shut down the VM
3.       Remove the ISO attached to the VM

4.       Create a VM template with SCVMM 2012 R2 and place it in your library