I have upgraded my windows 10 to the latest build 10041 and activated Hyper-V.
In this build I can see that there are now 211 cmdlets in the hyper-v PowerShell module:
And comparing it to the PowerShell module that was released in Windows 8.1/2012 R2 you can see the following new cmdlets, although the Windows 10 is in preview and things can change before it is released!
I will dig into the new preview release and maybe there will be a followup post on my findings!
I have used both Hyper-V Manager and System Center VMM from the early beginning of Hyper-V in 2008. If you wanted to use a tool with several Hyper-V hosts either that was standalone or in cluster you had to use VMM, especially if using the deploy functionality with templates and OS customization.When System Center 2012 was released they decided to sell it as a whole product with different roles which means you have to buy either a System Center Standard (for single managed server hosting up to 2 VM´s) or a System Center Datacenter (Virtualization hosts using 2pCPU with unlimited managed VM´s on that licensed host). There are though some alternative and one of them is the 5nine Manager.
5nine Manager has been evolving for some version since they first saw daylight and now they have added some really cool features making it a real competitor to VMM and if you do not use the other System Center roles this could be a good buy.
part of the new 6.1 version, these new features exist:
Graphical Monitoring Plugin and Alerts
New Optimizer Notifications
Increased Scalability through Multiple Console Instances
Simplified VM Management with Sortable Table Parameters
Enhanced VM Templates
Integrated Sysprep Tool
The gui can be run on a Hyper-V Core server so no excuse here now to not use that for your virtualization hosts! I actually have had some discussions with customers why they do not want to run core because if the host would be disconnected and they would need to do some debug and analysing they thought that it would be to difficult when using core instead of the full gui. With the 5nine Manager you can manage and check your VM´s in a GUI but within the Core session 🙂
To get it working in your environment you need to install it on a Windows box. The nice thing here is that you can run it on a Windows 8.1/8/7 and connect to the different Hyper-V versions.
Once installed you need to add Hyper-V hosts/clusters to manage them.
The GUI in the console is quite easy to use and as you can see, I can right click on a VM and convert it as a template to be able to provision new VM´s. Another really nice feature which you can see in the list is “Set IP address” and this uses the functionality of the integrational services and sets the IP on the vNic inside the VM!!
And as you can see there are some more options in the bar with optimizer,monitor, reporting best practices and Hyper-V logs. I really like the GUI and that it is easy to find the different options and tasks not having to jump around between different views forever. Having a single pane of glass when searching Hyper-V hosts for failing VM´s or hardware issues through logs then this Manager is great.
As described above, If you do not use more than System Center VMM in your virtualization environment and the list price for System Center R2 Datacenter is about 3600 $ and the 5nine Manager would cost from 199 $ per host then there is not so much to argue about! There is also a free version of the 5nine Manager that you can use combined with VMM on your Windows Hyper-V Core hosts.
They have a new version 8.0 that supports not only VMware but also Hyper-V virtualization platforms and also several different OS such as Mac OS and HP-UX, which can run in physical or virtual machines. There are either virtual or physical appliances of the backup solution so it is quite easy to get the backup solution up and running as you can start with the virtual appliance and get into a protected state within just an hour or so. And if you start with a virtual appliance you can later add a physical at another site and use it as a replication target.
Some nice features are:
Unitrends Bridge for Hyper-V, with:
Windows Instant Recovery from any physical or virtual guest to a Hyper-V VM.
Hyper-V Instant Recovery – running a hypervisor level backup instantly from the backup storage.
NDMP support for enterprises.
Support for Mac OS 10.9 and HP-UX 11.
Guest level protection for Shared VHDXs.
Note this is an important feature of 2012 R2 for HA that Unitrends can support and other Host OS backup solutions cannot because you cannot do hypervisor level backups of this config.
Improved SQL performance and deduplication.
I wanted to test and see how easily I could get it up and running on my Hyper-V environment and how can I could use it for moving VM´s/workloads from physical or VMware?
First of all you download either an iso or an vhd packed as an EXE from the web page and then you deploy it to an hyper-v host:
Then when it has been deployed, it has to be configured with IP and other settings and once that is completed you can test and see that you have succeeded with the right settings:
One important thing is when deployed as a virtual appliance, add vhdx´s to store the backups on, as usual it is quite smart to think twice where you put these and not in the same storage as the protected VM´s as the idea is to survive if you have a failure :-). Initially when the appliance is deployed it has a system disk on a vhdx that is dynamic and can expand to 200 GB.
The Console GUI then is accessible through a flash-enabled browser and it is really easy get started. As you can see on the following screen dump you can add several appliances and use them either as a local backup system or a vault:
After initiating and installing the agent on the Hyper-V host I could see it in the console and also see all VM´s running on the host:
First off I tested to backup and restore a simple VM, which of course worked flawlessly:
And then I wanted to test to backup and restore a generation 2 CentOS VM:
Last off I wanted to test the functionality of instant recovery and doing a v2v from vmware to hyper-v. I installed an UEB agent in the OS on the VM in the VMware VM and configured instant recovery in the UEB console to a Hyper-V host.
The Unitrends Enterprise Backup is really easy to get started with and you are instantly up and running with your backups of the virtual and also physical environment from one virtual backup appliance. With the different features you can use it for both backup and also for instant recovery. Only thing I would like to see is that the flash GUI would be exchanged to a full HTML5 GUI instead, and of course a PowerShell module would make it complete 😉
If you create lots of VM´s with large amount of RAM memory assigned to them and start to wonder why you have used some of the storage on the volumes then this is because if you have set up a VM without changing anything you get a bin file in the VM folder that corresponds to the size of the allocated RAM. This file is used to save the VM`s RAM to disk when the VM is going into saved state!
In an environment where you have all VM´s as clustered resources you will not need to be able to use the saved state when shutdown the host as you will live migrate the VM´s when doing stuff with the HW.
The setting is easily found in Hyper-V Manager for an already deployed VM:
It is not so easily found in System Center VMM when checking the VM properties, but when deploying a new VM you find it in the wizard:
If you want to change the setting for your VM´s running in a cluster via VMM you will have to use PowerShell and it is quite easy to do that with a one-liner, first you see the setting with the PowerShell command Get-SCVirtualMachine and then you can configure it with Set-SCVirtualMachine :
I have been playing around with a case where we have been upgrading and creating a new Windows Server 2012 R2 Hyper-V cluster and adding CSV volumes to it, and when first volume became full we started to storage migrate the VM´s to another volume but for some reason the files where left behind so I created my own PowerShell function to handle that as the built-in does not have that parameter and for some reason leaves leftovers?!
As you can see when I have done a live storage migration within a Hyper-V host with the GUI in VMM it leaves both vhdx and xml of the VM, and that can be troublesome when someone tries to import that VM while the other is already running and also you do not gain that space you thought would be reclaimed because you did a live storage migration.
No problem to move but as you can see in the volume that I migrated from:
And the volume that I migrated to:
I have been reproducing the migration with either just folders or both folders and vhdx/xml files still at the source..
When I run my function it cleans the source if i use the parameter -deletesource
Here is the PowerShell function for you to try:
Storage Migration of VMM VM and also remove the leftovers (folders,isos and other)
VMM leaves the VM behind when doing just a storage migration within the Host
Yesterday Microsoft released a new version of Microsoft Assessment and Planning toolkit 9.2 and the new key features are
Azure VM Capacity assessment to include assessment for A8 and A9 Azure VMs
MAP 9.2 updated Windows Azure VM Capacity assessment to include assessment for A8 and A9 Azure VMs. A8 and A9 Azure VMs are processor intensive and thus have a base processor of an Intel Xeon E5-2670 2.6 GHz.
Included Windows Server 2008(x86/x64) under Legacy Server Discovery
Windows Server 2008(x86/x64) included under Legacy Server Discovery in addition to Windows Servers 2000, 2003 and Itanium. For example, before MAP 9.2 the discovery of the Legacy Servers which were added are Windows Server 2000, Windows Server 2003(x86/x64) and Itanium Windows Server. Now MAP 9.2 includes the discovery of Windows Server 2008(x86/x64) as well to the collection of Legacy Server Discovery.
Improved Legacy Server Discovery reporting by including OS Architecture
In this version of MAP we included OS Architecture(32 or 64 bit) as an expansion in the Legacy Server Discovery reporting.
Collection of additional performance counters and included CPU speed
In this version of MAP we added four new performance counters Disk Queue Length, Disk Read Queue Length, Disk Write Queue Length, Disk Bytes/sec and expanded performance collection process to accomodate the new counters and assessment process. Added CPU Speed(GHz) to Performance Metric Summary report.
I have been working with a customer and was going to do an upgrade of one of their Hyper-v clusters to 2012 R2. During my preparations and looking at the particular hosts I found several VM´s that was residing on local storage on the hosts and not on the cluster storage.
The reason for this was two things, first of all that it was allowed to put VM´s on local disks and second that when someone created the VM´s forgot to use the appropriate HW-template that makes them highly available by default. If you create a new VM with a new HW profile make sure that it is configured correctly under the Availability tab.
The Hyper-V hosts have been deployed with Bare-Metal deploy from VMM and that is why they have a D:\
Looking at the properties for a host you can see what storage that is available for placement:
and as you can see the VM is not configured as highly available and have the virtual disk on local storage:
I have made a simple script that configures all hosts within a cluster and set all storage that is not cluster shared to not available for placement.
# Disable all Available for placement on local drives on hosts,
# Save this in a .ps1 file and run with disable-SCLocaldisk.ps1 -Cluster " cluster01"
I got a question from a customer how they could limit a VM´s bandwidth from VMM as it was too noisy and devoured the bandwidth from the host for the other VM´s. There are both a way to set priority and also bandwidth in Hyper-V 2012 and later.
In Hyper-V Manager you can find the setting on the VM´s configuration and the virtual network adapter tab,
And here I can enable bandwidth management and set both a minimum and maximum, and in this case I want just a limit
But how do I accomplish the same in VMM? As you might have noticed there is no possibility to edit this on the VM´s settings on the virtual nic, this is a setting that I configure with a Port profile instead and apply on selected VM/VM´s, and by doing it this way I can easily just configure the same profile for several VM´s instead of configuring each VM. There are some configured by default and I can also add new with the particular setting that I need.
First there is the port classification:
And then the actual port profiles:
These two combined is used in the Logical Switch for the virtual port,
Easiest is to use Powershell to create a new port classification and profile and then update the logical switch to be able to use it for the VM´s that needs it, I have made a function that takes care of all the steps including adding it to the logical switch as a virtual port:
This function is for creating profiles and adding a port in a Logic switch in VMM
Today I was contacted by a customer regarding an issue they had with all their VM´s in their main cluster reporting “Unsupported Cluster Configuration”
The reason was that two of the nodes in their cluster had in VMM 2012 R2 lost their virtual switch and vnics and that resulted in the cluster saying that it did not have a HA-Virtual Switch and thus the VM`s had network connections that was not available on the cluster…
Searching a bit and checking the hosts and VM´s outside of VMM there was no issues on them and the logical switch and vnics was still there, the vm´s was able to reach the network so clearly a VMM issue.
I tried to refresh the cluster and nodes and also restart the VMM agent on the hosts but that did not help. Looking at the properties in VMM on a host showed nothing where it should be both the switch and the management vnics:
Using the failover cluster manager and live-migrating the vm´s and then restart the host did though help,
After reboot I refreshed the cluster and the network appeared again, I have been searching for a reason for the issue but have not found anything yet in the logs on either the VMM server or the hosts..
To refresh the VM´s on the cluster to remove the “Unsupported cluster configuration” after I had got the virtual switch back I used powershell
If you have had this issue or similar I would like to know so please comment the post 🙂
I will search some more and see if I can find the reason for this. It should be said that the customer have two 2012 hyper-v clusters and one 2012 R2 cluster and I have not seen this happen on the R2 cluster yet so maybe it is a 2012 issue… And yes we are working eagerly to move the VM´s to the R2 cluster 😛 , the VMM 2012 R2 server is also updated with the latest UR4