Performing the verification on Jammy.
First, verifying that we can reproduce the problem.
# apt policy qemu-system-x86 qemu-system-x86: Installed: 1:6.2+dfsg-2ubuntu6.18 Candidate: 1:6.2+dfsg-2ubuntu6.18 Version table: *** 1:6.2+dfsg-2ubuntu6.18 500 500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages 100 /var/lib/dpkg/status 1:6.2+dfsg-2ubuntu6.16 500 500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages 1:6.2+dfsg-2ubuntu6 500 500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
# qemu-system-x86_64 -M pc-q35-jammy,accel=kvm,kernel-irqchip=split -device intel-iommu,intremap=on -smp cpus=300,maxcpus=300 -enable-kvm -net none -m 4096M -nographic -kernel /boot/vmlinuz -initrd /boot/initrd.img -chardev stdio,mux=on,id=char0 -mon chardev=char0,mode=readline -serial chardev:char0 -append "console=ttyS0" qemu-system-x86_64: Invalid SMP CPUs 300. The max CPUs supported by machine 'pc-q35-jammy' is 288
Now, updating the package and verifying that the version from -proposed fixes the issue:
# apt policy qemu-system-x86 qemu-system-x86: Installed: 1:6.2+dfsg-2ubuntu6.19 Candidate: 1:6.2+dfsg-2ubuntu6.19 Version table: *** 1:6.2+dfsg-2ubuntu6.19 500 500 http://archive.ubuntu.com/ubuntu jammy-proposed/main amd64 Packages 100 /var/lib/dpkg/status 1:6.2+dfsg-2ubuntu6.18 500 500 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages 1:6.2+dfsg-2ubuntu6.16 500 500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages 1:6.2+dfsg-2ubuntu6 500 500 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages
# qemu-system-x86_64 -M pc-q35-jammy-maxcpus,accel=kvm,kernel-irqchip=split -device intel-iommu,intremap=on -smp cpus=300,maxcpus=300 -enable-kvm -net none -m 4096M -nographic -kernel /boot/vmlinuz -initrd /boot/initrd.img -chardev stdio,mux=on,id=char0 -mon chardev=char0,mode=readline -serial chardev:char0 -append "console=ttyS0" ... <no QEMU error>
This concludes the verification on Jammy.
Performing the verification on Jammy.
First, verifying that we can reproduce the problem.
# apt policy qemu-system-x86 2ubuntu6. 18 2ubuntu6. 18 2ubuntu6. 18 500 archive. ubuntu. com/ubuntu jammy-updates/main amd64 Packages dpkg/status 6.2+dfsg- 2ubuntu6. 16 500 security. ubuntu. com/ubuntu jammy-security/main amd64 Packages 6.2+dfsg- 2ubuntu6 500 archive. ubuntu. com/ubuntu jammy/main amd64 Packages
qemu-system-x86:
Installed: 1:6.2+dfsg-
Candidate: 1:6.2+dfsg-
Version table:
*** 1:6.2+dfsg-
500 http://
100 /var/lib/
1:
500 http://
1:
500 http://
# qemu-system-x86_64 -M pc-q35- jammy,accel= kvm,kernel- irqchip= split -device intel-iommu, intremap= on -smp cpus=300, maxcpus= 300 -enable-kvm -net none -m 4096M -nographic -kernel /boot/vmlinuz -initrd /boot/initrd.img -chardev stdio,mux= on,id=char0 -mon chardev= char0,mode= readline -serial chardev:char0 -append "console=ttyS0"
qemu-system-x86_64: Invalid SMP CPUs 300. The max CPUs supported by machine 'pc-q35-jammy' is 288
Now, updating the package and verifying that the version from -proposed fixes the issue:
# apt policy qemu-system-x86 2ubuntu6. 19 2ubuntu6. 19 2ubuntu6. 19 500 archive. ubuntu. com/ubuntu jammy-proposed/main amd64 Packages dpkg/status 6.2+dfsg- 2ubuntu6. 18 500 archive. ubuntu. com/ubuntu jammy-updates/main amd64 Packages 6.2+dfsg- 2ubuntu6. 16 500 security. ubuntu. com/ubuntu jammy-security/main amd64 Packages 6.2+dfsg- 2ubuntu6 500 archive. ubuntu. com/ubuntu jammy/main amd64 Packages
qemu-system-x86:
Installed: 1:6.2+dfsg-
Candidate: 1:6.2+dfsg-
Version table:
*** 1:6.2+dfsg-
500 http://
100 /var/lib/
1:
500 http://
1:
500 http://
1:
500 http://
# qemu-system-x86_64 -M pc-q35- jammy-maxcpus, accel=kvm, kernel- irqchip= split -device intel-iommu, intremap= on -smp cpus=300, maxcpus= 300 -enable-kvm -net none -m 4096M -nographic -kernel /boot/vmlinuz -initrd /boot/initrd.img -chardev stdio,mux= on,id=char0 -mon chardev= char0,mode= readline -serial chardev:char0 -append "console=ttyS0"
...
<no QEMU error>
This concludes the verification on Jammy.