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.
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 1(rw,sync, no_subtree_ check)" >> /etc/exports
$ sudo apt install nfs-kernel-server
$ mkdir -p /export
$ chown libvirt-qemu:kvm /export
$ echo "/export 127.0.0.
$ systemctl restart nfs-server
Created a disk image:
$ truncate -s 10000000000 /export/ reproducer- centos. img reproducer- centos. img reproducer- centos. img
$ chown libvirt-qemu:kvm /export/
$ chmod 666 /export/
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-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.
qemu-system-x86_64: /build/
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.