Add documentation for import/export VM snapshot

Change-Id: I016c34bfd96e66444eab64b6bfdcc92149e7cb9e
This commit is contained in:
Jan Provaznik 2015-06-16 13:32:03 +02:00 committed by Zane Bitter
parent 5af88a4fe4
commit db8d6aad1b
2 changed files with 27 additions and 0 deletions

View File

@ -8,3 +8,4 @@ In this chapter you will find advanced management of various RDO-Manager areas.
Scaling Out Overcloud Roles <scale_out>
Quiescing a Compute node <quiesce_compute>
Import/Export of VM Snapshots <vm_snapshot>

View File

@ -0,0 +1,26 @@
Import/Export of VM Snapshots
=============================
Create a snapshot of a running server
-------------------------------------
Create a new image by taking a snapshot of a running server and download the
image.
::
nova image-create instance_name image_name
glance image-download image_name --file exported_vm.qcow2
Import an image into Overcloud and launch an instance
-----------------------------------------------------
Upload the exported image into glance in Overcloud and launch a new instance.
::
glance image-create --name imported_image --file exported_vm.qcow2 --disk-format qcow2 --container-format bare
nova boot --poll --key-name default --flavor m1.demo --image imported_image --nic net-id=net_id imported
.. note::
**Warning**: disadvantage of using glance image for export/import VMs is
that each VM disk has to be copied in and out into glance in source and
target clouds. Also by making snapshot qcow layering system is lost.