Learn this information to learn to export a VM’s OVF template file in vCenter internet shopper or with the VMWare PowerCLI PowerShell instructions.
Earlier than exporting a VM’s OVF template, you need to energy it off.
Choice 1: Export a VM’s OVF Template by way of vCenter Internet Shopper
- From the vCenter internet shopper, find the VM, right-click it, level to Templates and choose Export OVF Template.
- Then, on the pop-up window, give the template a reputation (the default is the identify of the VM), and click on OK.
The template information will begin downloading to your browsers obtain folder.
The method exports 5 information. See my screenshot under for the information.
Choice 2: Export a VM’s OVF Template with PowerShell
Earlier than continuing with the steps under, you need to Set up VMWare PowerCLI Module PowerShell Module.
- Open PowerShell as administrator and hook up with your vCenter server with this command. Change ipmvcsa.corp.itechguides.com to your vCenter server and corpadministrator to an account with permission to export OVF information.
Join-VIServer -Server ipmvcsa.corp.itechguides.com -Credential (Get-Credential corpadministrator)
While you execute the command, PowerShell will open a pop-up window requesting the password to the account. Enter the password and click on OK.
- When you’ve efficiently signed in to vCenter server, run this command to export a VM’s OVF template.
Change the VM’s identify, y2k22template-1 to the identify of your VM. Additionally, modify the trail, “D:OVF Templatesy2k22template-1” to a path on the PC you’re working the command.
Get-VM y2k22template-1 | Export-VM -Vacation spot "D:OVF Templates" -Format Ovf
The command will take some time to run and will take a while, relying on the scale of the VM you’re exporting.
When the command completes, the folder ought to have 5 information, just like the information downloaded with the vCenter internet shopper.
Conclusion
Exporting a VM as an OVF template affords a option to migrate a VM between two environments that aren’t linked. I’ve used this technique to maneuver VMs to a special website.
I defined tips on how to carry out this job by way of the vCenter internet shopper and with PowerShell. Nevertheless, I favor the PowerShell technique as a result of it provides me extra management.
I hope you loved studying the information! Let me know your ideas concerning this information by responding to the “Was this web page useful?” suggestions request under.