Currently, we don't specify the -cpu option when running under the TCG
accelerator. This leads QEMU to choose a very conservative default that
doesn't emulate all the instructions that modern distros are compiled with.
To avoid such issues, let's default to having QEMU emulate as many CPU
instructions as possible to avoid illegal opcode errors when running
virtual machines.
"virtio-rng-pci,rng=rng0,id=rng-device0",
]
- if args.qemu_kvm:
- cmdline += ["-cpu", "host"]
+ cmdline += ["-cpu", "max"]
if args.qemu_headless:
# -nodefaults removes the default CDROM device which avoids an error message during boot