OpenStack online mirroring and snapshot creation steps

Openstack online mirroring steps:

  1. Shut down after configuring the specified virtual machine
  2. "Create a snapshot" for this virtual machine, and then jump to the image page, waiting for the snapshot to be created
  3. Enter the background of the control node, glance image-list to find the snapshot ID just created
  4. glance image-download --file /root/XXX.img snapshot ID
glance image-download --file /root/test.img 27aba14a-e764-4b30-bd4f-82f6e02c8cc9 
  1. Save the generated new file to the local machine, and then create a new image through the openstack image page

Openstack manually creates snapshot steps:

  1. Find the instance ID such as: b0778aff-ff7e-42dd-9b76-d753c9d1bea3
  2. Enter the instance directory on the node where the instance is located, such as
    /var/lib/nova/instances/b0778aff-ff7e-42dd-9b76-d753c9d1bea3
  3. There is a disk file inside, which is the corresponding disk file of the instance
  4. stop the instance from running
  5. zip copy the file
 qemu-img convert -c -O qcow2 disk win7_stu.qcow2

Guess you like

Origin blog.csdn.net/jinba225/article/details/116153760