Displaying 1 result from an estimated 1 matches for "rhel8x86_64".
2020 Jun 11
1
Re: Live migration to another volume at the same host
...Yes, you don't need to use live migration for this even.
The "blockcopy" command can be used to copy contents of a VMs current
disk into a new file. If you use the "--pivot" arg, then QEMU will
switch to using the new file too.
eg something like this:
$ virsh blockcopy rhel8x86_64 --transient-job --pivot \
--path /var/lib/libvirt/images/orig.img \
--dest /var/lib/libvirt/images/new.img
If the file doesn't already exist, libvirt will create it. Having
said that I'm not sure if it preserves format. So might need to
pre-create files if you're using qcow2....