forked from ahurac/dotfiles
13 lines
357 B
Text
13 lines
357 B
Text
|
#!/bin/sh -ex
|
||
|
name="$(basename "$0")"
|
||
|
cd "$(dirname "$(readlink -f "$0")")/.."
|
||
|
exec screen -S "QEMU : ${name}" -d -m qemu-system-x86_64 \
|
||
|
-monitor stdio -enable-kvm -vnc :1 \
|
||
|
-cpu host -smp "$(nproc)" \
|
||
|
-m 4G \
|
||
|
-drive "file=images/$(basename "$0").qcow2,if=virtio" \
|
||
|
-net nic -net "user,hostname=${name}" \
|
||
|
-name "$name" \
|
||
|
"$@"
|
||
|
|