Openstack online mirroring steps:
- Shut down after configuring the specified virtual machine
- "Create a snapshot" for this virtual machine, and then jump to the image page, waiting for the snapshot to be created
- Enter the background of the control node, glance image-list to find the snapshot ID just created
- glance image-download --file /root/XXX.img snapshot ID
glance image-download --file /root/test.img 27aba14a-e764-4b30-bd4f-82f6e02c8cc9
- 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:
- Find the instance ID such as: b0778aff-ff7e-42dd-9b76-d753c9d1bea3
- Enter the instance directory on the node where the instance is located, such as
/var/lib/nova/instances/b0778aff-ff7e-42dd-9b76-d753c9d1bea3
- There is a disk file inside, which is the corresponding disk file of the instance
- stop the instance from running
- zip copy the file
qemu-img convert -c -O qcow2 disk win7_stu.qcow2