openstack快照分析

openstack快照分析

# Abort any failed/finished block operations:

$ virsh blockjob vm vda --abort

# Undefine a running domain. (Note: Undefining a running domain does not _kill_ the domain, it just converts it from persistent to transient.)

$ virsh undefine vm

# create a destination image with the original backing file and matching size of the instance root disk.

$ qemu-img create -f qcow2 vm_copy --backing_file=backing_file --size=root_disk_size

#Invoke 'virsh blockcopy' (This will take time, depending on the size of disk image vm1):

$ virsh blockcopy --domain vm vda vm_copy --wait --verbose

#Abort any failed/finished block operations:

$ virsh blockjob vm vda --abort

#Define the guest again (to make it persistent):

$ virsh define vm

#From the obtained new copy, convert the QCOW2 with a backing file to a qcow2 image with no backing file, then upload to glance:

$ qemu-img convert -f qcow2 -O raw vm_copy vm_convert

💫 相关推荐

网吧怎么科学上网
365双试投注是什么

网吧怎么科学上网

📅 08-14 👀 9846
屈原的骚体诗,开创了文学创作的新时代〔146〕
365双试投注是什么

屈原的骚体诗,开创了文学创作的新时代〔146〕

📅 09-12 👀 2434
《幸福在哪里》大结局:向远和麦秋复婚了吗?米朵最后怎么样了?
特别烦躁,特别想发疯怎么办
365bet官网是什么

特别烦躁,特别想发疯怎么办

📅 09-21 👀 2195
iphone4s下载不了软件(为什么有时候苹果手机下载不成东西)
剁椒的吃法合集
约彩365app下载

剁椒的吃法合集

📅 09-07 👀 8032
人类可以居住的23个行星
约彩365app下载

人类可以居住的23个行星

📅 07-18 👀 8511
9的因数有,9的因数有哪几个
365双试投注是什么

9的因数有,9的因数有哪几个

📅 08-08 👀 8305
电信协议保存多久
约彩365app下载

电信协议保存多久

📅 09-06 👀 2973