Virtualization

Set (or inject) guest network configuration from Hyper-V host (Windows Server 2012)

February 3, 2013

Those of you who work(ed) on VMware ESX and use PowerCLI for ESX management would have – at some point in time – used the Set-VMGuestNetworkInterface cmdlet to set the IP address configuration of guest OS from the vCenter host or where you have PowerCLI installed. This is quite useful when performing automated guest OS [...]

Continue Reading →

Get Hyper-V (Windows Server 2012) guest network configuration using WMI

January 31, 2013

If you have not seen this yet, the updated WMI namespace for Hyper-V role in Windows Server 2012 has some hidden gems. I love playing around with WMI and the changes in Hyper-V namespace had me thinking about new possibilities. Here is the first one in this series of posts on how you can extend [...]

Continue Reading →

PoshUtils: Set (enable or disable) resource metering on clustered Hyper-V virtual machines

January 28, 2013

In Windows Server 2012 with Hyper-V role, we can enable VM resource metering to measure the utilization of four resource types (CPU, memory, network, and disk) of Hyper-V virtual machines. Once the resource metering is enabled, using Enable-VMResourceMetering, we can use Measure-VM cmdlet to retrieve the utilization of a VM. Now, there are Enable-VMResourceMetering and [...]

Continue Reading →

Configuring anti-affinity for Hyper-V virtual machines

January 17, 2013

If you have worked on VMware, you might already be aware of a concept of DRS rules. Using DRS rules, we can create VM anti-affinity rules so that no two virtual machines hosting similar application roles run on the same ESX host. For example, when you have a virtualized SQL mirror or a virtualized SQL failover cluster, it is critical to separate the SQL virtual machines participating in the application group onto different ESX hosts. This is where we can use VMware DRS rules – “Separate Virtual Machines” rule to be specific.

Continue Reading →

Windows 8, PowerShell 3.0, and all the goodness!

March 2, 2012

With Windows 8, I am more interested in managing / automating Microsoft Hyper-V with Windows PowerShell and hence, I will be focusing more on the Hyper-V cmdlets. So, in the coming days, you will see a bunch of blog posts explaining how to use Hyper-V cmdlets in Windows Server 8 to automate the virtual infrastructure.

Continue Reading →

Find all Hyper-V hosts and windows virtual machines in your AD environment

April 15, 2011

Several Microsoft products use Service Connection Points (SCP) to advertise themselves using objects stored in Active Directory. Clients query the directory to locate services. Microsoft Hyper-V, as I mentioned, also registers or publishes its information in AD as a service connection point. Now, we can use ADSI or AD cmdlets or Quest AD cmdlets to [...]

Continue Reading →

Managing VirtualBox using PowerShell – Part 1: Introduction to COM objects

March 8, 2010
Thumbnail image for Managing VirtualBox using PowerShell – Part 1: Introduction to COM objects

The VirtualBox is a nice piece of work by the people at Sun and the community around it. I started using this especially because it lets me run x64 OS for my SharePoint 2010 demo virtual machines. VMWare Workstation can also do this but I found VirtualBox to be an easier one to use. I [...]

Continue Reading →

Auto generating VMConnect shortcuts for all Hyper-V virtual machines

November 18, 2009
Thumbnail image for Auto generating VMConnect shortcuts for all Hyper-V virtual machines

I am sure this is one of the things written and read quite a bit. I just want to post my thoughts and how I try to simplify these things for me. I usually don’t write about anything that is not “my” content. As with all other things on this blog, I prefer automation and through [...]

Continue Reading →