Displaying 4 results from an estimated 4 matches for "your_cool_cp".
2015 May 19
2
Pivot without copy
Hi,
Is it possible to "pivot" to a new image without doing blockcopy or
blockpull? I know how to use snapshots and blockpull to create a new image
and pivot to using it live, but what I would like to do is to have a VM
switch from using imageA.qcow2 to image2.qcow2 while running. I don't see
why this wouldn't be possible since some of the existing libvirt tools can
do this when
2015 May 19
0
Re: Pivot without copy
...s you pivot to any destination format (does not have to be
qcow2). Roughly:
$ # create a qcow2 wrapper
$ virsh snapshot-create-as $dom --no-metadata --disk-only \
--diskspec vda,file=wrapA
$ # copy the backing file to the pivot location, ideally \
taking advantage of faster-than-cp methods
$ $your_cool_cp imageA imageB
$ # create a destination qcow2 file
$ qemu-img create -f qcow2 -obacking_file=imageB,backing_fmt=$fmt wrapB
$ # block copy - note below that you may need to make $dom transient
$ virsh blockcopy $dom vda wrapB --shallow --reuse-external --pivot \
--verbose
$ # commit the wrapper bac...
2015 May 19
3
Re: Pivot without copy
...does not have to be
> qcow2). Roughly:
>
> $ # create a qcow2 wrapper
> $ virsh snapshot-create-as $dom --no-metadata --disk-only \
> --diskspec vda,file=wrapA
> $ # copy the backing file to the pivot location, ideally \
> taking advantage of faster-than-cp methods
> $ $your_cool_cp imageA imageB
> $ # create a destination qcow2 file
> $ qemu-img create -f qcow2 -obacking_file=imageB,backing_fmt=$fmt wrapB
> $ # block copy - note below that you may need to make $dom transient
> $ virsh blockcopy $dom vda wrapB --shallow --reuse-external --pivot \
> --verbose
&...
2015 May 19
0
Re: Pivot without copy
...w2). Roughly:
>>
>> $ # create a qcow2 wrapper
>> $ virsh snapshot-create-as $dom --no-metadata --disk-only \
>> --diskspec vda,file=wrapA
>> $ # copy the backing file to the pivot location, ideally \
>> taking advantage of faster-than-cp methods
>> $ $your_cool_cp imageA imageB
>> $ # create a destination qcow2 file
>> $ qemu-img create -f qcow2 -obacking_file=imageB,backing_fmt=$fmt wrapB
>> $ # block copy - note below that you may need to make $dom transient
>> $ virsh blockcopy $dom vda wrapB --shallow --reuse-external --pivot \
&g...