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"
|
||||
shift
|
||||
|
||||
screen -d -m -S "$vm_name" "$vm_name" "$@"
|
||||
screen -S "$vm_name" "$vm_name" "$@"
|
||||
}
|
||||
|
||||
public_watch() {
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
[ "$(whoami)" != root ] && exec sudo "$0" "$@"
|
||||
apt-get clean
|
||||
apt-get update
|
||||
apt-file update
|
||||
apt-get upgrade
|
||||
apt-get autopurge
|
||||
|
||||
|
|
|
@ -2,10 +2,9 @@
|
|||
name="$(basename "$0")"
|
||||
qemu-system-x86_64 \
|
||||
-monitor stdio -enable-kvm \
|
||||
-cpu host -smp "$(nproc)" \
|
||||
-m 4G \
|
||||
-drive "file=images/$(basename "$0").qcow2,if=virtio" \
|
||||
-net nic -net "user,hostname=${name}" \
|
||||
-cpu host -smp "$(("$(nproc)" / 2))" \
|
||||
-m 8G \
|
||||
-hda "images/${name}.qcow2" \
|
||||
-net nic \
|
||||
-name "$name" \
|
||||
"$@"
|
||||
|
||||
|
|
Loading…
Reference in a new issue