If you don’t know which physical server is hosting a particular virtual machine. A simple way to find it out is to remote login into the VM guest and check the following registry key. [HKLM\SOFTWARE\Microsoft\Virtual Machine\Guest\Parameters]"HostName"="PhysicalHostName"="PhysicalHostNameFullyQualified"="VirtualMachineName"=
Category: Virtualization
PowerShell: Hyper-V VM Inventory
Having a clean inventory of all virtual machines is a good practice to avoid virtual machine sprawl. I created a script to send me to the Monthly VM Inventory automatically, this includes the Guest name, status, OS, vCPU, RAM, host and notes. The results look like this: JC-VM-01STATUS: RunningVCPU: 1RAM: 2048 MOS: Windows Server 2008 … Continue reading PowerShell: Hyper-V VM Inventory
PowerShell: Monitor Hyper-V VM Heartbeat
$hostname = “ServerName” $service = gwmi -class "Msvm_VirtualSystemManagementService" -namespace "root\virtualization" -ComputerName $hostname $VM = gwmi -ComputerName $hostname -namespace "root\virtualization" -query "Select * from Msvm_ComputerSystem where Caption='Virtual Machine'" Foreach ($_ in $VM) { Write-Host $_.ElementName $settings = gwmi -ComputerName $hostname -namespace "root\virtualization" -query ("ASSOCIATORS OF {" + $_.__PATH + "} WHERE resultClass = Msvm_VirtualSystemsettingData") $HB = … Continue reading PowerShell: Monitor Hyper-V VM Heartbeat
Hyper-V Best Practices
1) Change the default VM folder from C partition to other drives. 2) Rename the external NIC to avoid confusion. 3) Standardize the virtual networks friendly name other you have to reconfigure the NIC after the VM migration. 4) Backup Authorization Store C:\ProgramData\Microsoft\Windows\Hyper-V\InitialStore.xml 5) Enable RDP, or use VMConnect to connect remotely to non-Windows servers. … Continue reading Hyper-V Best Practices
Backup Exec 2010 R2: Hyper-V Agent
What can it backup and restore? · MS Windows server 2008/2008 R2 Hyper-V hosts including all online/offline/saved state virtual machines · Clustered Hyper-V hosts including the virtual machines on the cluster shared volumes (CSV) · Individual Files and folders or VSS-aware applications (Exchange, AD and SQL) within the virtual machines when Backup Exec’s Granular Recovery … Continue reading Backup Exec 2010 R2: Hyper-V Agent