2023-12-01 22:52:55 +01:00
|
|
|
#!/bin/sh -x
|
2023-11-28 13:57:08 +01:00
|
|
|
exec qemu-system-x86_64 \
|
|
|
|
-enable-kvm \
|
|
|
|
-M q35 \
|
|
|
|
-cpu host -smp "$(("$(nproc)" / 2))" \
|
|
|
|
-m "$(("$(free | grep '^Mem:\s' | awk '{ print $NF }')" / 2))K" \
|
2023-12-01 22:22:00 +01:00
|
|
|
-device e1000,netdev=net0 \
|
2023-11-28 13:57:08 +01:00
|
|
|
-device nec-usb-xhci,id=xhci \
|
2023-12-01 22:22:00 +01:00
|
|
|
-device ich9-intel-hda -device hda-duplex \
|
2023-11-28 13:57:08 +01:00
|
|
|
"$@"
|