From 748bdf9c9a598450289b9662888a00fd3ac6e005 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Sun, 25 Jun 2023 21:38:18 +0200 Subject: [PATCH] Ajout : dossier QEMU avec un script de lancement d'une VM Windows 10 --- share/qemu/scripts/windows10 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 share/qemu/scripts/windows10 diff --git a/share/qemu/scripts/windows10 b/share/qemu/scripts/windows10 new file mode 100755 index 0000000..8de6377 --- /dev/null +++ b/share/qemu/scripts/windows10 @@ -0,0 +1,16 @@ +#!/bin/sh -ex +realpath="$(readlink -f "$0")" +realname="$(basename "$realpath")" +cd "$(dirname "$realpath")/.." +exec screen -S "QEMU : ${realname}" -d -m qemu-system-x86_64 \ + -monitor stdio -enable-kvm \ + -bios /usr/share/edk2/x64/OVMF_CODE.fd \ + -cpu host -smp "$(nproc)" \ + -m 4G \ + -drive "file=images/$(basename "$0").qcow2,if=virtio" \ + -net nic -net "user,hostname=${realname}" \ + -audiodev pa,id=snd0 \ + -usbdevice tablet \ + -name "$realname" \ + "$@" +