From 75bb9b68f7513db7a4696e0e8b5f464828071a7e Mon Sep 17 00:00:00 2001 From: Ahurac Date: Fri, 8 Mar 2024 23:48:58 +0100 Subject: [PATCH] =?UTF-8?q?windows10=20:=20l=C3=A9g=C3=A8re=20r=C3=A9?= =?UTF-8?q?=C3=A9criture?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qemu/launchers/windows10 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/qemu/launchers/windows10 b/qemu/launchers/windows10 index a258f70..a28541d 100755 --- a/qemu/launchers/windows10 +++ b/qemu/launchers/windows10 @@ -1,15 +1,16 @@ #!/bin/sh -x - -# Store VM name in environment variable -export QEMUSH_NAME export QEMUSH_RAM=4G -export QEMUSH_BASE=kvm -[ -z "$QEMUSH_NAME" ] && QEMUSH_NAME=$(basename "$0") +export QEMUSH_BASE=virtiofs,kvm +[ -z "$QEMUSH_NAME" ] && { + export QEMUSH_NAME + QEMUSH_NAME=$(basename "$0") +} # Launch the virtual machine exec spice \ -drive file="$(pathof disk)",if=virtio \ - -net user,hostname="${QEMUSH_NAME}" \ + -net nic -net user,hostname="${QEMUSH_NAME}" \ -usbdevice tablet \ -name "$QEMUSH_NAME" \ + -device intel-hda -device hda-duplex,audiodev=snd0 \ "$@"