Compare commits

..

No commits in common. "360a75b594d3e325cc20b77012be6d92ef28aff9" and "3efcb4526367ba3301e80039ba54f58e5dc42aab" have entirely different histories.

3 changed files with 10 additions and 9 deletions

View file

@ -46,7 +46,7 @@ public_start() {
local vm_name="$1"
shift
screen -S "$vm_name" "$vm_name" "$@"
screen -d -m -S "$vm_name" "$vm_name" "$@"
}
public_watch() {

View file

@ -2,6 +2,6 @@
[ "$(whoami)" != root ] && exec sudo "$0" "$@"
apt-get clean
apt-get update
apt-file update
apt-get upgrade
apt-get autopurge

View file

@ -1,10 +1,11 @@
#!/bin/sh -ex
name="$(basename "$0")"
qemu-system-x86_64 \
-monitor stdio -enable-kvm \
-cpu host -smp "$(("$(nproc)" / 2))" \
-m 8G \
-hda "images/${name}.qcow2" \
-net nic \
-name "$name" \
"$@"
-monitor stdio -enable-kvm \
-cpu host -smp "$(nproc)" \
-m 4G \
-drive "file=images/$(basename "$0").qcow2,if=virtio" \
-net nic -net "user,hostname=${name}" \
-name "$name" \
"$@"