trisquel-automatic-netinstall-qemu: use -cpu host.

This should improve the performances a bit as this mostly pass through
the host CPU, and so the VM can benefit from some of the more advanced
CPU features. Depending on the CPU and host configuration, it can also
enable other features as well like nested KVM.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
This commit is contained in:
Denis 'GNUtoo' Carikli 2024-08-06 18:24:34 +02:00
parent 2d2dd5d426
commit 7c66aaa96f
Signed by: GNUtoo
GPG Key ID: 5F5DFCC14177E263
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ rootfs.img: preseed.img rootfs.img.tmp grub.iso
qemu-system-x86_64 \ qemu-system-x86_64 \
-M q35 \ -M q35 \
-m 790M \ -m 790M \
-cpu host \
-nographic \ -nographic \
-drive file=grub.iso,index=2,media=cdrom,if=ide \ -drive file=grub.iso,index=2,media=cdrom,if=ide \
-drive file=rootfs.img.tmp,index=1,media=disk,if=virtio \ -drive file=rootfs.img.tmp,index=1,media=disk,if=virtio \