Ajout : script de lancement d'une machine virtuelle Linux
This commit is contained in:
parent
0cd54f5a45
commit
77b1eceb10
1 changed files with 12 additions and 0 deletions
12
share/qemu/bin/linux
Executable file
12
share/qemu/bin/linux
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh -ex
|
||||
name="$(basename "$0")"
|
||||
cd "$(dirname "$(readlink -f "$0")")/.."
|
||||
exec screen -S "QEMU : ${name}" -d -m qemu-system-x86_64 \
|
||||
-monitor stdio -enable-kvm -vnc :1 \
|
||||
-cpu host -smp "$(nproc)" \
|
||||
-m 4G \
|
||||
-drive "file=images/$(basename "$0").qcow2,if=virtio" \
|
||||
-net nic -net "user,hostname=${name}" \
|
||||
-name "$name" \
|
||||
"$@"
|
||||
|
Loading…
Reference in a new issue