Import virtual machine
Through the VMware Cloud Director® dashboard, you can download operating system images (ISOs) and virtual machine templates (.ova
, .ovf
) into content libraries. OS images and VM templates are stored in catalogs. You can share catalog data with other users or organizations within Cloud Director, or publish for external organizations to access.
You can upload files to an existing directory or create a new one.
In virtual data centers in cluster SILVER-1 has restrictions on importing your own ISO images of VMs. If there are problems with importing file a ticket and provide a link to the ISO image.
- Optional: create a directory.
- Load the virtual machine template into the directory.
- Download the OS image.
optional: create a directory
- From control panel open the Cloud Director panel: VMware-based cloud → Cloud Director.
- Open the virtual data center page.
- Open the tab Libraries.
- Go to the section Content Libraries → Catalogs.
- Click New.
- Enter the name and description of the catalog.
- Optional: to select the storage policy, activate the toggle switch Pre-provision on specific storage policy and select a policy.
- Click OK. The new catalog will appear in the list of available catalogs.
Download the virtual machine template
- From control panel open the Cloud Director panel: VMware-based cloud → Cloud Director.
- Open the virtual data center page.
- Open the tab Libraries.
- Go to the section Content Libraries → vApp Templates.
- Click NEW.
- In the section Select Source enter the URL of the file
.ovf
/.ova
or download the file from your computer. - Click Next.
- Enter a name and description for the template.
- Select the catalog to download.
- Click Next.
- On the menu. Catalog select the directory where you want to load the template.
- Click Finish. The download time depends on the size of the template being downloaded and the speed of your internet connection. The new template will appear in the Content Libraries → vApp Templates.
Download the OS image
- From control panel open the Cloud Director panel: VMware-based cloud → Cloud Director.
- Open the virtual data center page.
- Open the tab Libraries.
- Go to the section Content Libraries → Media & Other.
- Click Add.
- On the menu. Catalog select the directory where you want to download the image.
- Select the ISO file to download.
- Field Name will be filled in automatically (it can be changed if necessary).
- Click OK. The download time depends on the size of the template being downloaded and the speed of your Internet connection. The new template will appear in the list of available templates in the following list Content Libraries → Media & Other.
- After installing the OS from the ISO, it is recommended to install the VMware Tools (Windows)/open-vm-tools (*nix) integration package.
Error when importing a template
If when importing a VM template in the following format .ova
task ends in an error, you can fix it in Cloud Director or with the VMware utility vcd-cli
.
Cloud Director
vcd-cli
- Unzip the file with an OVA archiver (e.g. tar, 7zip). The extracted folder will contain VM template files in the following formats
.ovf
,.mf
and.vmdk
. - Download the template. When performing step 6 in section Select Source download all files extracted when unpacking the archive
.ova
.
VM template import via vcd-cli is possible only in format .ova
. Files in other formats will not be recognized and will be placed in the section Media & Other, read more in vcd-cli documentation.
-
Install Python version 3.6 or higher and the utility vmware.github.io/vcd-cli. For Windows virtual machines, you may need to install Microsoft C++ Build Tools, available for download at Microsoft website.
-
Connect to the organization:
vcd login <vcd> <s-xxxx> <username>
Specify:
-
<vcd>
— address of the virtual data center:- St. Petersburg —
vcd.selectel.ru
- Moscow —
vcd-msk.selectel.ru
- St. Petersburg —
-
<s-xxxx>
— organization name, can be viewed in the Cloud Director address bar or in the control panel under VMware-based cloud on the list of organizations; -
<username>
— username, can be viewed in control panel under Users.
-
-
Enter your password.
-
Download the image
.ova
to the right directory:vcd catalog upload <catalog_name> <path>
Specify:
<catalog_name>
— directory name;<path>
— the way to the image.
-
Review the list of directories in the organization:
vcd catalog list