VMware: Export a VM to OVA With PowerCLI
OVA KB ID 0001507 Problem : Creating OVA files It’s pretty easy to create an OVA/OVF from the vCenter Web console, but what about from Powershell / PowerCLI? Below I run though converting a Windows server to OVA. Note: Update 25/03/25 – Had a friend try and do this today, the VM was very large (over 12Tb) it proceeded to create the conversion in the servers c:\windows\temp directory. Obviously, this is not good! If you encounter...
PowerCLI: Get Snapshot Information
Get Snapshot Information KB ID 0001829 Problem The question was asked on Experts Exchange today. Are there any scripts or reports that would give me information on VMware VM’s with snapshots? was pretty sure this was a straight forward one, so I jumped on the test network. Solution: Get Snapshot Information Connect to your vCenter and use the following commands. Connect-viserver vCenter-Name THEN AUTHENTICATE Get-VM |...
VMware: PowerCLI Errors
PowerCLI Errors KB ID 0001830 Problem I was doing some work recently and tried to connect to my vCenter server and was greeted with this. PS C:\Users\administrator.PNL> connect-viserver vc-70.pnl.com connect-viserver : Object reference not set to an instance of an object. At line:1 char:1 + connect-viserver vc-70.pnl.com + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Connect-VIServer], NullReferenceException +...
VMware: Find Connected ISO’s
KB ID 0001708 Problem If you want to search your VMware estate to find VMs that have connected CD/DVD ISO files, then here are your best two options; Option 1: Use PowerCLI Whilst connected to your virtual infrastructure (Connect-VIServer) issue the following command; Get-VM | FT Name, @{Label=”ISO file”; Expression = { ($_ | Get-CDDrive).ISOPath }} Option 2: Use PowerCLI If you don’t already have RVTools then get it...
PowerCLI: Get All Snapshot Information
KB ID 0001690 Problem This was asked on EE today, and it was an interesting one so I wrote it up. How to locate all the Snapshots in your VMware virtual infrastructure, and see how much space they are taking. Solution Use the following PowerCLI; Get-Snapshot * | Select-Object -Property VM, Name, SizeGB, Children | Sort-Object -Property sizeGB -Descending | ft -AutoSize Related Articles, References, Credits, or External Links...