KB ID 0001507
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 2008 x32 Windows server to OVA.
I’ll leave the web console in the background so you can see whats happening. From PowerCLI the first task is to connect to the vCenter.
Supply a username and password.
Now remove any snapshots from the VM;
The VM needs to be off before we can export it, the following command will shut it down gracefully;
If your VM has an ISO connected to it, it can have an annoying habit of adding that to the OVA file! So remove any presented .iso files with the following command;
Finally we export our VM;
Related Articles, References, Credits, or External Links