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