Download the VMware OVF Tool (if you haven't already) and learn how to use it by referring to our tutorial "VMware vSphere 6.7 - Export and import VMs via VMware OVF Tool" (if necessary).
Next, open a command prompt (cmd.exe) as administrator.
To begin, move to the folder where the "ovftool.exe" program is located:
Batch
cd C:\Users\Administrator\Downloads\VMware-ovftool-4.4.3-18663434-win.x86_64\ovftool
Then you can get information about your vApp using the command below.
Which also allows you to check if the path to your vApp is correct.
Otherwise, ovftool will help you find the correct path.
Explanation of the parameters used:
Batch
ovftool.exe --noSSLVerify "vi://10.0.0.104/DC-Brussels/vm/RDS_vApp"
Provide your username and password to log in to your VMware vCenter Server.
Plain Text
Enter login information for source vi://10.0.0.104/ Username:
Once the correct identifiers have been entered, information concerning your vApp, as well as the virtual machines located there, will appear:
Plain Text
Enter login information for source vi://10.0.0.104/ Username: administrator@vsphere.local Password: *********** OVF version: 1.0 VirtualApp: true Name: RDS_vApp ... Virtual Machines: Name: WS 2016 - RDS Operating System: windows9server64guest Virtual Hardware: Families: vmx-14 Number of CPUs: 2 Cores per socket: 2 Memory: 4.00 GB ... Name: WS 2016 - AD Operating System: windows9server64guest Virtual Hardware: Families: vmx-14 Number of CPUs: 2 Cores per socket: 2 Memory: 4.00 GB ...
To export this vApp in OVF format from your VMware vCenter Server (VCSA) to your computer, use the command below.
Explanation of the parameters of this command:
Batch
ovftool.exe --noSSLVerify "vi://10.0.0.104/DC-Brussels/vm/RDS_vApp" "C:\Users\Administrator\Downloads\RDS_vApp.ovf"
Enter your vCenter Server credentials again and this will appear:
Plain Text
Enter login information for source vi://10.0.0.104/ Username: administrator@vsphere.local Password: *********** Opening VI source: vi://administrator%40vsphere.local@10.0.0.104:443/DC-Bruxelles/vm/RDS_vApp Opening OVF target: C:\Users\Administrator\Downloads\RDS_vApp.ovf Writing OVF package: C:\Users\Administrator\Downloads\RDS_vApp.ovf Disk progress: 1%
If you look on your computer's hard drive, you will see that a ".vmdk.tmp" file is being downloaded.
Which corresponds to the download of one of the virtual hard disks of this vApp (or more precisely that of one of its VMs).
If you look in the recent tasks visible from the "vSphere Client" web interface, you will see that an "Export OVF Template" task is running for the vApp you are exporting from this server VMware vCenter Server using the VMware OVF Tool (ovftool).
Once the export of the vApp in OVF / OVA format is complete, this will be displayed:
Plain Text
Transfer Completed Completed successfully
If you exported your vApp in OVF format, you will have:
If you look from the vSphere Client, you will be able to see that the "Export OVF Template" task has completed.
If you deploy the node corresponding to this vApp, you will be able to see that the virtual machines for it are located there.
To import a vApp in OVF or OVA format to your VMware vCenter Server, use the command below.
Explanation of the parameters of this command:
Batch
ovftool --noSSLVerify -ds=HDD2 -n="RDS_vApp Bis" "C:\Users\Administrator\Downloads\RDS_vApp.ovf" vi://10.0.0.104/DC-Brussels/host/Intel/esxi1.informatiweb.lan
Plain Text
Enter login information for source vi://10.0.0.104/ Username:
As before, provide your vCenter Server credentials and this will be displayed.
Plain Text
Opening OVF source: C:\Users\Administrator\Downloads\RDS_vApp.ovf The manifest validates Enter login information for target vi://10.0.0.104/ Username: administrator@vsphere.local Password: *********** Opening VI target: vi://administrator%40vsphere.local@10.0.0.104:443/DC-Brussels/host/Intel/esxi1.informatiweb.lan Deploying to VI: vi://administrator%40vsphere.local@10.0.0.104:443/DC-Brussels/host/Intel/esxi1.informatiweb.lan Disk progress: 4%
If you look in the vSphere Client recent tasks, you will see that a "Deploy OVF Template" task is running for your new (importing) vApp.
Once the import is complete, this will be displayed:
Plain Text
Transfer Completed Completed successfully
In the "vSphere Client" web interface of your VMware vCenter Server, you will see that the "Deploy an OVF template" task completed correctly on the first try.
If you select your new vApp, you will also see that the information (Product and Vendor) has been exported and imported (if applicable) via the OVF format.
If you deploy the node corresponding to this new vApp, you will see that the virtual machines have been imported into this new vApp without any problem.
If you wish, you can also access this new vApp from the "VMs and Templates" tab of your VMware vCenter Server.
VMware 7/6/2022
VMware 3/22/2024
VMware 7/12/2024
VMware 11/27/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.
No comment