<div dir="ltr">Hi,<div><br></div><div>I was trying out virt-builder and noticed that in some directories I receive an error when the image is resized.</div><div><br></div><div>For example, if I run the following command from my home directory it works fine:<br></div><div><br></div><div>virt-builder rhel-7.4 --size 10G --output test.img</div><div><br></div><div>If I run the same command from /tmp or /vms (my default libvirt pool), I see the following in my verbose output:</div><div><br></div><div><div>virt-resize '--verbose' '--format' 'raw' '--output-format' 'raw' '--expand' '/dev/sda3' '--unknown-filesystems' 'error' 'test.img' 'test.img'</div><div>command line: virt-resize --verbose --format raw --output-format raw --expand /dev/sda3 --unknown-filesystems error test.img test.img</div><div>virt-resize: error: you cannot use the same disk image for input and output</div><div><br></div><div>Am I doing something wrong or is this possibly a bug? The host I am running virt-builder on is Fedora 27.</div><div><br></div><div>Thanks,</div><div>David</div>
</div></div>