From 88345836c87f30733f7be840167d2a70d7fbb781 Mon Sep 17 00:00:00 2001 From: cvoges12 Date: Mon, 27 Sep 2021 01:15:34 +0000 Subject: [PATCH] Modified spice to gentoo recommendations --- src/init.sh | 4 +++- src/vm.sh | 13 +++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/init.sh b/src/init.sh index be84fe3..2ffa5d3 100755 --- a/src/init.sh +++ b/src/init.sh @@ -5,8 +5,10 @@ src/iso.sh # add answerfile cp data/autounattend.xml win/ +# install mkisofs # recreate iso -dd if=win of=win.iso +#dd if=win of=win.iso +mkisofs --allowed-limited-size -o win.iso win # clean up iso extract rm -rf win diff --git a/src/vm.sh b/src/vm.sh index dc4b534..7768297 100755 --- a/src/vm.sh +++ b/src/vm.sh @@ -4,7 +4,8 @@ # install spice-client-gtk for spicy # install spice-vdagent for spice and vdagent # libvirt-daemon for /shrug -SPICE_PORT=5924 +SPICE_PORT=5930 +CHARDEV_ID='spicechannel0' # change drive if needed (default: /dev/sdb) qemu-system-x86_64 \ -enable-kvm \ @@ -13,14 +14,14 @@ qemu-system-x86_64 \ -smp 4 \ -net nic \ -net user,hostname=windowsvm \ - -m 8G \ - -vga qxl \ + -m 4G \ -boot d \ -cdrom win.iso \ -drive file=/dev/sdb,cache=none,if=virtio \ + -vga qxl \ + -device virtio-serial-pci \ -spice port=${SPICE_PORT},disable-ticketing=on \ - -device virtio-serial \ - -chardev spicevmc,id=vdagent,name=vdagent \ - -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 + -device virtserialport,chardev=${CHARDEV_ID},name=com.redhat.spice.0 \ + -chardev spicevmc,id=${CHARDEV_ID},name=vdagent exec spicy --title Windows 127.0.0.1 -p ${SPICE_PORT}