Compare commits
No commits in common. "165ff284e2d94cf822e87c0007a5b3ff3cdf05d7" and "e373995e1bfdaedf8bc95adf52f84c57546dd459" have entirely different histories.
165ff284e2
...
e373995e1b
4 changed files with 5 additions and 20 deletions
|
@ -1,7 +1,10 @@
|
||||||
#!/bin/sh -ex
|
#!/bin/sh -ex
|
||||||
|
name="$(basename "$0")"
|
||||||
qemu-system-x86_64 \
|
qemu-system-x86_64 \
|
||||||
-enable-kvm \
|
-monitor stdio -enable-kvm \
|
||||||
-cpu host -smp "$(("$(nproc)" / 2))" \
|
-cpu host -smp "$(("$(nproc)" / 2))" \
|
||||||
-m "$(("$(free | awk '($1 == "Mem:") { print $2 }')" / 2))K" \
|
-m 8G \
|
||||||
|
-hda "images/${name}.qcow2" \
|
||||||
-net nic \
|
-net nic \
|
||||||
|
-name "$name" \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/sh -ex
|
|
||||||
exec linux \
|
|
||||||
-vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing=on \
|
|
||||||
"$@"
|
|
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/sh -ex
|
|
||||||
exec qemu-system-x86_64 \
|
|
||||||
-enable-kvm \
|
|
||||||
-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 nec-usb-xhci,id=xhci \
|
|
||||||
"$@"
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/sh -ex
|
|
||||||
exec redox \
|
|
||||||
-vga qxl -spice port=5900,addr=127.0.0.1,disable-ticketing=on \
|
|
||||||
"$@"
|
|
Loading…
Reference in a new issue