Compare commits

..

3 commits

Author SHA1 Message Date
Hippolyte Chauvin
360a75b594 qemu : script Linux 2023-11-16 10:13:02 +01:00
Hippolyte Chauvin
fd6c5b5261 Mise à jour des DB des fichiers pour apt 2023-11-12 13:49:55 +01:00
Hippolyte Chauvin
2ef533e1cf qemush : ne pas détacher la session screen au démarrage pour pouvoir voir ce qu'il s'y passe 2023-11-11 22:13:29 +01:00
3 changed files with 9 additions and 10 deletions

View file

@ -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() {

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,11 +1,10 @@
#!/bin/sh -ex
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}" \
-name "$name" \
"$@"
-monitor stdio -enable-kvm \
-cpu host -smp "$(("$(nproc)" / 2))" \
-m 8G \
-hda "images/${name}.qcow2" \
-net nic \
-name "$name" \
"$@"