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
Tag: Hyper-V
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: Couple Issues
I have experienced couple backup issues caused by Backup Exec recently. It is really annoying. But anyway, I have found a work around to fix them temporarily. 1) Mutli-home issue For example, I use BE to backup the files that are on a Windows file server. Here is info: File Server: ip1-192.168.1.1/255.255.255.0, ip2-192.168.2.1/255.255.255.0, gateway-192.168.2.254 Media … Continue reading Backup Exec 2010 R2: Couple Issues
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