When you create vApps, this allows you to bring them together in one place, as well as manage the power of the virtual machines within them by managing the power of the desired vApp.
One of the other advantages of vApps is the ability to export or import a vApp. Which makes it easy to transfer multiple virtual machines from one server to another or broadcast a vApp over the Internet (if you wish).
When you create a vApp, you have the possibility to add information, in particular the name of the product and/or its supplier.
This is optional, but interesting when the goal is to distribute this vApp on the Internet.
To do this, select your vApp and click: Actions -> Edit Settings.
Next, go to the "Details" tab and fill in the desired information (optional):
Thanks to the web interface (vSphere Client), you can export your vApp from a simple modern web browser.
Still prefer Mozilla Firefox or Google Chrome for better compatibility with this web interface.
To get started, select the vApp you want to export.
Then click: Actions -> OVF Template -> Export OVF Template.
In the "Export OVF Template" wizard that appears, provide a name (preferably without spaces).
If you check the "Enable advanced options" box, you will have the possibility to:
Then click OK.
Several files will be offered for download:
The heaviest files to download are obviously the ".vmdk" files, which each correspond to a hard drive of one of the virtual machines in your vApp.
In the recent tasks list, you will see several "Export OVF Template" tasks appear for your vApp.
Once all the proposed files have been downloaded, an additional file with the extension ".mf" will be offered for download.
This is the manifest file used with the OVF format to be able to verify the integrity of the downloaded files when you want to import this vApp in OVF format.
Once this last file is downloaded, the "Export OVF Template" tasks will be completed.
In the end, on your hard drive, you will have:
To deploy a new vApp from its previously exported OVF format, select the VMware ESXi host where you want to deploy this new vApp and click: Actions -> Deploy OVF Template.
In the "Deploy OVF Template" wizard that appears, select the "Local file" option and click on the button: Browse.
Select all previously exported files, as well as the optional manifest (.mf) file so that the integrity of the files can be verified.
Then, click Open.
The wizard tells you how many files have been selected.
Click Next.
Provide a name for this new vApp and select the location (datacenter or folder) where you want to add it.
Select the compute resource (VMware ESXi host) where you want to run this vApp (and its VMs).
Information regarding the OVF template to import will appear.
If you added information via the "Details" tab of your vApp settings (as explained in step 1 of this tutorial), this information will appear here.
We therefore find in our case, the name of our product "RDS Test Infra" and the name of the supplier "InformatiWeb Pro".
Select the datastore where you want to store your new vApp, then select the virtual disk format to use:
Select the virtual networks on your server to use for the virtual networks used by this vApp.
In our case, this is the default virtual network "VM Network".
A summary of the configuration of this OVF deployment appears.
The deployment of the vApp from its OVF format starts and these tasks appear in the list of recent tasks:
However, in certain cases, it happens that the deployment of a vApp via the "vSphere Client" web interface fails for no apparent reason.
Which will show the error "OVF module deployment failed".
In our case, looking in the task history (via the menu -> Tasks), we could see that the error that occurred was "Invalid response code: 500".
Which normally happens when the imported OVF template contains references to some files with HTTP links. Source: VMware vSphere 6.5 Release Notes.
Which was not our case.
If the import also fails in your case and you can't find the answer on the Internet, use the "ovftool" tool to import this OVF model from the command line.
You will have a much better chance of it succeeding the first time.
VMware 6/24/2022
VMware 7/19/2024
VMware 8/14/2024
VMware 10/16/2024
Pinned content
Contact
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.
You must be logged in to post a comment