Comment 7 for bug 2015355

Revision history for this message
Nick Rosbrook (enr0n) wrote :

I have verified the fix using util-linux 2.34-0.1ubuntu9.4 from focal-proposed:

$ qemu-img create -f qcow2 test.img 20G
Formatting 'test.img', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=21474836480 lazy_refcounts=off refcount_bits=16
$ qemu-system-x86_64 -enable-kvm -m 4096 -name test -drive file=test.img,format=qcow2 -net nic,model=virtio -net user,hostfwd=tcp::7022-:22 -vga virtio -cdrom ~/downloads/ubuntu-20.04.6-desktop-amd64.iso
qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm [bit 2]

Inside the VM:

ubuntu@ubuntu:~$ sudo parted -s /dev/sda -- mklabel msdos
ubuntu@ubuntu:~$ sudo parted -s /dev/sda -- mkpart primary 0% 10% mkpart primary 10% 30%
ubuntu@ubuntu:~$ sudo wipefs /dev/sda
DEVICE OFFSET TYPE UUID LABEL
sda 0x1fe dos
sda 0x1d2 atari
ubuntu@ubuntu:~$ sudo vi /etc/apt/sources.list
ubuntu@ubuntu:~$ sudo apt update
Ign:1 cdrom://Ubuntu 20.04.6 LTS _Focal Fossa_ - Release amd64 (20230316) focal InRelease
Hit:2 cdrom://Ubuntu 20.04.6 LTS _Focal Fossa_ - Release amd64 (20230316) focal Release
Hit:4 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Get:6 http://security.ubuntu.com/ubuntu focal-proposed InRelease [267 kB]
Hit:7 http://security.ubuntu.com/ubuntu focal-security InRelease
Get:8 http://security.ubuntu.com/ubuntu focal-proposed/main amd64 Packages [259 kB]
Get:9 http://security.ubuntu.com/ubuntu focal-proposed/main Translation-en [56.7 kB]
Get:10 http://security.ubuntu.com/ubuntu focal-proposed/main amd64 DEP-11 Metadata [9,384 B]
Get:11 http://security.ubuntu.com/ubuntu focal-proposed/main DEP-11 48x48 Icons [10.3 kB]
Get:12 http://security.ubuntu.com/ubuntu focal-proposed/main DEP-11 64x64 Icons [15.7 kB]
Get:13 http://security.ubuntu.com/ubuntu focal-proposed/main DEP-11 64x64@2 Icons [29 B]
Get:14 http://security.ubuntu.com/ubuntu focal-proposed/main amd64 c-n-f Metadata [2,684 B]
Get:15 http://security.ubuntu.com/ubuntu focal-proposed/restricted amd64 Packages [298 kB]
Get:16 http://security.ubuntu.com/ubuntu focal-proposed/restricted Translation-en [43.5 kB]
Get:17 http://security.ubuntu.com/ubuntu focal-proposed/restricted amd64 c-n-f Metadata [316 B]
Fetched 963 kB in 2s (576 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
267 packages can be upgraded. Run 'apt list --upgradable' to see them.
ubuntu@ubuntu:~$ sudo apt install libblkid1
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  libblkid1
1 upgraded, 0 newly installed, 0 to remove and 266 not upgraded.
Need to get 137 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://security.ubuntu.com/ubuntu focal-proposed/main amd64 libblkid1 amd64 2.34-0.1ubuntu9.4 [137 kB]
Fetched 137 kB in 1s (179 kB/s)
(Reading database ... 188675 files and directories currently installed.)
Preparing to unpack .../libblkid1_2.34-0.1ubuntu9.4_amd64.deb ...
Unpacking libblkid1:amd64 (2.34-0.1ubuntu9.4) over (2.34-0.1ubuntu9.3) ...
Setting up libblkid1:amd64 (2.34-0.1ubuntu9.4) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
ubuntu@ubuntu:~$ apt-cache policy libblkid1
libblkid1:
  Installed: 2.34-0.1ubuntu9.4
  Candidate: 2.34-0.1ubuntu9.4
  Version table:
 *** 2.34-0.1ubuntu9.4 500
        500 http://security.ubuntu.com/ubuntu focal-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     2.34-0.1ubuntu9.3 500
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
        500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
     2.34-0.1ubuntu9 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
ubuntu@ubuntu:~$ sudo wipefs /dev/sda
DEVICE OFFSET TYPE UUID LABEL
sda 0x1fe dos