diff --git a/qemu/bin/linux b/qemu/bin/linux index 89e5d6a..513afbc 100755 --- a/qemu/bin/linux +++ b/qemu/bin/linux @@ -1,6 +1,7 @@ -#!/bin/sh -ex +#!/bin/sh -x qemu-system-x86_64 \ -enable-kvm \ + -M q35 \ -cpu host -smp "$(("$(nproc)" / 2))" \ -m "$(("$(free | awk '($1 == "Mem:") { print $2 }')" / 2))K" \ -net nic \ diff --git a/qemu/bin/redox b/qemu/bin/redox index ba22d10..8cb3f11 100755 --- a/qemu/bin/redox +++ b/qemu/bin/redox @@ -4,7 +4,7 @@ exec qemu-system-x86_64 \ -M q35 \ -cpu host -smp "$(("$(nproc)" / 2))" \ -m "$(("$(free | grep '^Mem:\s' | awk '{ print $NF }')" / 2))K" \ - -device ich9-intel-hda -device hda-duplex \ - -netdev user,id=net0 -device e1000,netdev=net0 \ + -device e1000,netdev=net0 \ -device nec-usb-xhci,id=xhci \ + -device ich9-intel-hda -device hda-duplex \ "$@" diff --git a/qemu/bin/redox-spice b/qemu/bin/redox-spice index 671802b..2da44b2 100755 --- a/qemu/bin/redox-spice +++ b/qemu/bin/redox-spice @@ -1,4 +1,4 @@ #!/bin/sh -ex exec redox \ - -vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing=on \ + -vga qxl -spice port="$(first-free-port 5900)",addr=127.0.0.1,disable-ticketing=on \ "$@"