Memory Configuration Utilizing The Hyper-V WMI v2 Namespace

I have gotten a few questions specifically regarding how to configure dynamic memory utilizing the root\virtualization\v2 namespace.  At face value it’s pretty simple you retrieve the Msvm_MemorySettingsData set the DynamicMemoryEnabled property to true, configure the startup (virtual quantity), minimum (reservation) and maximum (limit) properties and execute the ModifyResourceSettings method.  However if you just do those…

3

Best Practices for Virtualizing & Managing Exchange 2013

The Exchange team has just released a new white paper on virtualizing Exchange 2013, it’s over 90 pages and goes into pretty good detail – if your virtualizing Exchange or plan to going forward I’d spend some time going over it.   Best Practices for Virtualizing & Managing Exchange 2013   -taylorb

0

Removing a VHD From A VM Using The Hyper-V WMI V2 Namespace

What good would Attaching a VHD To A VM Using The Hyper-V WMI V2 Namespace be if you couldn’t remove one two… Here’s how you do it.   Removing a virtual hard disk $vmName = “Test” $vhdPath = “d:\vms\Test.vhdx” #Retrieve the Hyper-V Management Service, ComputerSystem class for the VM and the VM’s SettingData class. $Msvm_VirtualSystemManagementService…

1

Attaching a VHD To A VM Using The Hyper-V WMI V2 Namespace

Relating to all my recent posts on the WMI V2 namespace here’s another one for attaching a VHD to a VM.  It looks like a lot of code but a lot of it is duplicated (so if you where writing an application you can factor it pretty easily).  There are effectively two steps to this…

7

Removing a Network Adapter To A VM Using The Hyper-V WMI V2 Namespace

Relating to my previous posts regarding Adding a Network Adapter To A VM Using The Hyper-V WMI V2 Namespace and Connecting a VM Network Adapter To A Switch Using The Hyper-V WMI V2 Namespace I had some questions come in around removing a NIC.  So here’s a sample – it’s pretty simple…   Removing a…

0

Changing The MAC Address Of NIC Using The Hyper-V WMI V2 Namespace

Relating to my previous posts regarding Adding a Network Adapter To A VM Using The Hyper-V WMI V2 Namespace and Connecting a VM Network Adapter To A Switch Using The Hyper-V WMI V2 Namespace I had some questions come in around configuring static vs dynamic MAC addresses.  So here’s some samples – you will notice…

1

Connecting a VM Network Adapter To A Switch Using The Hyper-V WMI V2 Namespace

Following along with Adding a Network Adapter To A VM Using The Hyper-V WMI V2 Namespace you might want to connect a network adapter to a switch…  Here’s how you would that, one thing to comment on is that the object returned when calling AddResourceSettings from the previous example is the Msvm_SyntheticEthernetPortSettingData class – which…

4

Adding a Network Adapter To A VM Using The Hyper-V WMI V2 Namespace

I have had a number of folks ask how to utilize the root\virtualization\v2 namespace to add a network adapter to a VM…    For some more information take a look at the following MSDN pages: Networking service, Sample: Querying networking objects.     $vmName = "Test" #Retrieve the Hyper-V Management Service, The ComputerSystem class for the…

2

Important Hyper-V Fixes Included in KB 2855336 (Virtualized Active Directory corruption (bug check c00002e2) and vmms process hang)

The July Windows Server 2012/Windows 8 update (KB2855336) contains two fixes for Hyper-V scenarios that are likely to be important to a number of customers.   Both of these updates are included in the rollup KB2855336.   KB2853952 – Loss of consistency with IDE-attached virtual hard disks when a Windows Server 2012-based Hyper-V host server…

1

New White Paper – Best Practices for Virtualizing and Managing SQL Server 2012

I wanted to let everyone know the SQL Server team has just published a shiny new white paper (96 pages long) that discusses all the best practices for managing SQL Server on virtual machines in Windows Server 2012…  It’s a very well done white paper and definitely worth reading. Here’s a link to it:Best Practices…

1