Compare commits
3 commits
3efcb45263
...
360a75b594
Author | SHA1 | Date | |
---|---|---|---|
|
360a75b594 | ||
|
fd6c5b5261 | ||
|
2ef533e1cf |
3 changed files with 9 additions and 10 deletions
|
@ -46,7 +46,7 @@ public_start() {
|
||||||
local vm_name="$1"
|
local vm_name="$1"
|
||||||
shift
|
shift
|
||||||
|
|
||||||
screen -d -m -S "$vm_name" "$vm_name" "$@"
|
screen -S "$vm_name" "$vm_name" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
public_watch() {
|
public_watch() {
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
[ "$(whoami)" != root ] && exec sudo "$0" "$@"
|
[ "$(whoami)" != root ] && exec sudo "$0" "$@"
|
||||||
apt-get clean
|
apt-get clean
|
||||||
apt-get update
|
apt-get update
|
||||||
|
apt-file update
|
||||||
apt-get upgrade
|
apt-get upgrade
|
||||||
apt-get autopurge
|
apt-get autopurge
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,9 @@
|
||||||
name="$(basename "$0")"
|
name="$(basename "$0")"
|
||||||
qemu-system-x86_64 \
|
qemu-system-x86_64 \
|
||||||
-monitor stdio -enable-kvm \
|
-monitor stdio -enable-kvm \
|
||||||
-cpu host -smp "$(nproc)" \
|
-cpu host -smp "$(("$(nproc)" / 2))" \
|
||||||
-m 4G \
|
-m 8G \
|
||||||
-drive "file=images/$(basename "$0").qcow2,if=virtio" \
|
-hda "images/${name}.qcow2" \
|
||||||
-net nic -net "user,hostname=${name}" \
|
-net nic \
|
||||||
-name "$name" \
|
-name "$name" \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue