Performing verification for Focal. I installed qemu 4.2-3ubuntu6.14 from -updates with the usual KVM stack command:
$ sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils $ sudo reboot >From there I installed and configured a NFS server: $ sudo -s $ sudo apt install nfs-kernel-server $ mkdir -p /export $ chown libvirt-qemu:kvm /export $ echo "/export 127.0.0.1(rw,sync,no_subtree_check)" >> /etc/exports $ systemctl restart nfs-server Created a disk image: $ truncate -s 10000000000 /export/reproducer-centos.img $ chown libvirt-qemu:kvm /export/reproducer-centos.img $ chmod 666 /export/reproducer-centos.img and mounted the NFS server: $ mount 127.0.0.1:/export /mnt -o bg,noacl,noatime,nolock,proto=udp,vers=3,noauto I downloaded the CentOS image: $ wget https://vault.centos.org/7.2.1511/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso and started the VM with the following QEMU command line: $ sudo qemu-system-x86_64 -cdrom ./CentOS-7-x86_64-Minimal-1511.iso -m 1024 -blockdev '{"driver":"file","filename":"/mnt/reproducer-centos.img ","node-name":"disk0","cache":{"direct":true}}' -device virtio-blk- pci,drive=disk0 -vnc 0.0.0.0:0 -enable-kvm On my host I opened Reminna, connected to a VNC connection on <ip address>:5900. The CentOS installer eventually showed up, and I followed the steps: Click Continue at the language/keyboard selection screen. Click Installation Destination. Click Done (no changes needed on that screen). Click Begin Installation. A few seconds later QEMU crashed with: qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2] qemu-system-x86_64: /build/qemu-AB62EU/qemu-4.2/block/io.c:1885: bdrv_co_write_req_prepare: Assertion `end_sector <= bs->total_sectors || child->perm & BLK_PERM_RESIZE' failed. Aborted I then enabled -proposed, and installed qemu 4.2-3ubuntu6.15 $ sudo apt install qemu-kvm qemu-system-data qemu-system-gui qemu- system-x86 I then re-started the qemu VM with: $ sudo qemu-system-x86_64 -cdrom ./CentOS-7-x86_64-Minimal-1511.iso -m 1024 -blockdev '{"driver":"file","filename":"/mnt/reproducer-centos.img ","node-name":"disk0","cache":{"direct":true}}' -device virtio-blk- pci,drive=disk0 -vnc 0.0.0.0:0 -enable-kvm This time the VM managed to format the disk, and successfully install CentOS. The packages in -proposed fix the issue, and I am happy to mark the bug as verified. ** Tags removed: verification-needed verification-needed-focal ** Tags added: verification-done-focal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1921665 Title: QEMU hits assertion when virtual disk is stored on NFS server and is not 4 kib byte aligned To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1921665/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
