search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Posted in Virtual Machine Manager, Windows Powershell | No Comment | 3,126 views | 23/01/2009 13:07

Now we are going to list all virtual machines (vm) in a specific Virtual Host (vmhost) by sorting VHD Path. I think this is really important for Hyper-v and VMM administrators. Because we know, one of the biggest factor on performans is VHD location. If you place so many Virtual Machines in one IDE/SATA hdd, you get low performans from Hyper-v. So if you want to make a script to deploy a vm, first you see disc situations and then you should choose a path. Lets see sorting codes:

1
get-vmhost hyperv09.hyperv.pluvia.org | Get-VM | Get-VirtualHardDisk | sort-object Location | Format-List Name,Location

As you see, hyperv09.hyperv.pluvia.org is our vmhost. If we type Format-List Name, Location, we can easily see VHD locations of Virtual Machines. Good luck.

This post also available in Turkish.