Image import and export
Image import
It is possible to load an individual image of a virtual machine, created earlier locally, into an MCS project using the following tools:
MCS panel
To upload an image in your MCS account, you should:
- Go to the Images page of the Cloud Computing service.
- Select "Create" in the top menu:
- In the window that appears, select a file as a source, specify a file and enter the name of the created image:
- Click "Create Image".
Openstack CLI
To download the image in the OpenStack client, run the command:
$ openstack image create --private --container-format bare --disk-format raw --property store = s3 --file <file.raw> <image_name>
If the instance created from the image must support backup, you must load it with the metadata of the presence of the guest agent:
$ openstack image create --private --container-format bare --disk-format raw --file <file.raw> --property hw_qemu_guest_agent = yes --property store = s3 --property os_require_quiesce = yes < image_name >
Depending on the format of the downloaded file, you need to specify the appropriate value for the --disk-format key:
- raw
- vhd
- vhdx
- vmdk
- vdi
- iso
- qcow2
Export image
Images can be downloaded from MCS to use virtual machine data on-premises.
OpenStack CLI
To upload an image using an OpenStack client:
Get a list of images:
$ openstack image list
Initiate the image boot process by running the command:
$ openstack image save --file <path> <image ID>