qemu - Transforming qcows2 snapshot plus backing file into standalone image file -
i have qemu qcow2 disk snapshot dev.img
based off backing file dev.bak
. how can merge both standalone devplus.img
, while leaving dev.bak
is?
i got qemu mailing list: first copy original base file standalone image file:
cp dev.bak devplus.img
then "rebase" image file backed off original file uses new file:
qemu-img rebase -b devplus.img dev.img
then can commit changes in dev file new base:
qemu-img commit dev.img
now can use devplus.img standalone image file , rid of dev.img if wish, leaving original dev.bak intact , not corrupting other images based off it.
Comments
Post a Comment