Skip to main content

Import a VM

Import a virtual machine (VM) when its data has been restored to the cluster from a backup and is stored in the import area. After the import, the VM appears in its VDC (virtual data center) again.

Before you begin​

  • You need the Cluster master role.

  • The import area is enabled on the cluster — the feature.import_area cluster parameter. Without it, the menu has no Import area item. The parameter is disabled by default, the Center installation does not enable it, and you cannot change it in the web interface or through the API — vStack support enables it.

  • The VM is in the import area: it gets there after a restore from a backup — over NDMP (Network Data Management Protocol) or from another cluster.

  • The transfer of the VM data is complete. Until then, there is no Import button.

  • The VDC and the pool where the VM was before exist on the cluster: the VM is imported only into them.

1. Select the VM in the import area​

  1. In the left menu, select Provider Data Center → Import area. A list of VMs with the Dataset Id, VM name and Progress columns opens.
  2. Click the row of the VM. The Import data and VM data blocks open under the list.
  3. In the Import data block, verify the Original pool exists and Original vdc exists marks: both must have a check mark. A check mark means that the former pool or VDC of the VM exists on the cluster.

2. Import the VM​

  1. In the VM data block, check the VDC, VM name, CPU (Cores) and RAM fields. You cannot change the VDC, VM name and VM description fields.
  2. Click Import in the VM data block.

Check the result​

The web interface shows the notification VM <dataset> has been successfully imported. The VM disappears from the import area and appears in the Virtual Data Centers → its VDC → Virtual Machines list with the Offline status. Start the VM — Start, stop and restart a VM.

If the import fails, the web interface shows a notification with the error text. The Specified VM id exists already error means that a VM with this ID already exists: turn on Generate new ID and repeat the import.

More​

  • Generate new ID (the VM data block) — enabled by default: the VM gets a new ID. Turn it off to keep the former ID of the VM.
  • If Original vm exists is marked in the Import data block, there is no Generate new ID switch: Center always gives the VM a new ID, and the web interface shows New identifier will be generated automatically.

Next​

API methods: vm-import-area-list, vm-import-area-process — in the API reference.