]> piware.de Git - bin.git/commitdiff
vm: Default to host CPU
authorMartin Pitt <martin@piware.de>
Fri, 29 Nov 2024 06:36:36 +0000 (07:36 +0100)
committerMartin Pitt <martin@piware.de>
Fri, 29 Nov 2024 06:36:36 +0000 (07:36 +0100)
Unbreaks booting RHEL isos.

vm

diff --git a/vm b/vm
index 174aedf385883e769757df714fe576db0c6bdbef..f403cb2860f5f9251da9bf3cc1c302e92fc5092b 100755 (executable)
--- a/vm
+++ b/vm
@@ -9,7 +9,7 @@ until echo '' | nc localhost $ssh_port 2>&1 >/dev/null | grep -q 'Connection ref
     ssh_port=$((ssh_port+1))
 done
 echo "Host ssh port: $ssh_port"
-qemu-system-x86_64 -enable-kvm -display sdl -m 2048 -device virtio-rng-pci \
+qemu-system-x86_64 -enable-kvm -cpu host -display sdl -m 2048 -device virtio-rng-pci \
     -drive file="$image",if=virtio \
     -virtfs local,id=src,path=$HOME,security_model=none,mount_tag=home,readonly=on \
     -net nic,model=virtio -net user,hostfwd=tcp::${ssh_port}-:22 "$@"