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.
![](https://www.itechguides.com/wp-content/uploads/2024/07/Export-a-VMs-OVF-Template-Web-Client-1024x461.webp)
![](https://www.itechguides.com/wp-content/uploads/2024/07/Export-a-VMs-OVF-Template-Web-Client-1024x461.webp)
- 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.
![Then, on the pop-up window, give the template a name (the default is the name of the VM), and click OK.](https://www.itechguides.com/wp-content/uploads/2024/07/Then-on-the-pop-up-window-give-the-template-a-name-the-default-is-the-name-of-the-VM-and-click-OK-1024x467.webp)
![Then, on the pop-up window, give the template a name (the default is the name of the VM), and click OK.](https://www.itechguides.com/wp-content/uploads/2024/07/Then-on-the-pop-up-window-give-the-template-a-name-the-default-is-the-name-of-the-VM-and-click-OK-1024x467.webp)
The method exports 5 information. See my screenshot under for the information.
![The process exports 5 files. See my screenshot below for the files.](https://www.itechguides.com/wp-content/uploads/2024/07/The-process-exports-5-files.-See-my-screenshot-below-for-the-files-1024x405.webp)
![The process exports 5 files. See my screenshot below for the files.](https://www.itechguides.com/wp-content/uploads/2024/07/The-process-exports-5-files.-See-my-screenshot-below-for-the-files-1024x405.webp)
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.
![Export a VM's OVF Template with PowerShell](https://www.itechguides.com/wp-content/uploads/2024/07/Export-a-VMs-OVF-Template-with-PowerShell-1024x261.webp)
![Export a VM's OVF Template with PowerShell](https://www.itechguides.com/wp-content/uploads/2024/07/Export-a-VMs-OVF-Template-with-PowerShell-1024x261.webp)
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.