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" local vm_name="$1"
shift shift
screen -d -m -S "$vm_name" "$vm_name" "$@" screen -S "$vm_name" "$vm_name" "$@"
} }
public_watch() { public_watch() {

View file

@ -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

View file

@ -1,11 +1,10 @@
#!/bin/sh -ex #!/bin/sh -ex
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" \
"$@" "$@"