Public bug reported: Executing the command
$ virt-install --import --name abc --disk pool=tmp,path=r.qcow2,size=100,backing_store=releaser.qcow2,backing_format=qcow2,io=io_uring,cache=none,target.bus=scsi --osinfo debian12 Followed by $ virsh dumpxml abc Shows this output: <domain type='kvm' id='3'> <name>abc</name> <uuid>72ceb78b-be3e-4a4a-ab86-65d7dacace34</uuid> ... <devices> <emulator>/usr/bin/qemu-system-x86_64</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2' cache='none' io='io_uring' discard='unmap'/> <source file='/home/erik/dev/ledgersmb-release-tools/vm/tmp/abc-4.qcow2' index='1'/> <backingStore type='file' index='2'> <format type='qcow2'/> <source file='/home/erik/dev/ledgersmb-release-tools/vm/tmp/releaser.qcow2'/> <backingStore/> </backingStore> <target dev='sda' bus='scsi'/> <alias name='scsi0-0-0-0'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> Note the <backingStore> element above. Now for the problem, if you run: $ virsh define <( virt-install --import --print-xml --name abc --disk pool=tmp,path=r.qcow2,size=100,backing_store=releaser.qcow2,backing_format=qcow2,io=io_uring,cache=none,target.bus=scsi --osinfo debian12 ) again followed by `virsh dumpxml abc` <domain type='kvm'> <name>abc</name> <uuid>0795c243-3ecc-447e-b6ec-f0b4b605d244</uuid> ... <devices> <emulator>/usr/bin/qemu-system-x86_64</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2' cache='none' io='io_uring' discard='unmap'/> <source file='/home/erik/dev/ledgersmb-release-tools/vm/tmp/abc-10.qcow2'/> <target dev='sda' bus='scsi'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> The difference between the two is that the latter involves `--print-xml` and misses the `backingStore` element. The point here is that the second should *also* have contained the backingStore. PS: Reporting this bug here, because it's in the bug reporting guidelines of the virt-manager project to report via the package ecosystem of the distribution used to stimulate the bug. ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: virtinst 1:4.1.0-3ubuntu0.1 ProcVersionSignature: Ubuntu 6.8.0-107045.45tux1-tuxedo 6.8.12 Uname: Linux 6.8.0-107045-tuxedo x86_64 ApportVersion: 2.28.1-0ubuntu3.1 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME Date: Sun Oct 13 10:33:10 2024 PackageArchitecture: all SourcePackage: virt-manager UpgradeStatus: Upgraded to noble on 2024-09-21 (22 days ago) modified.conffile..etc.default.apport: # set this to 0 to disable apport, or to 1 to enable it # you can temporarily override this with # sudo service apport start force_start=1 enabled=0 mtime.conffile..etc.default.apport: 2024-07-12T10:35:22.451985 mtime.conffile..etc.init.d.apport: 2024-07-22T16:59:07 ** Affects: virt-manager (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug noble wayland-session -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2084374 Title: virt-install `--print-xml` doesn't list `backingStore` To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/virt-manager/+bug/2084374/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs