fixed missing drives problem in windows install

This commit is contained in:
cvoges12 2021-10-15 23:46:56 +00:00
parent 3b4d47c5f5
commit ed3c912f3f
2 changed files with 4 additions and 3 deletions

View File

@ -4,4 +4,4 @@
#src/iso.sh
printf '%b\n' "\n\033[1m"WINDOWS_INIT:"\033[0m"" Executing vm.sh"
sudo src/vm.sh
sudo src/vm.sh /dev/sdb # change to needed drive

View File

@ -6,7 +6,7 @@
# libvirt-daemon for /shrug
SPICE_PORT=5930
CHARDEV_ID='spicechannel0'
DRIVE='/dev/sdb' # change drive if needed
DRIVE=$argv
ISO='Win*.iso'
sudo qemu-system-x86_64 \
-enable-kvm \
@ -18,12 +18,13 @@ sudo qemu-system-x86_64 \
-m 8G \
-boot d \
-cdrom ${ISO} \
-drive file=${DRIVE},format=raw,cache=none,if=virtio \
-hda ${DRIVE} \
-vga qxl \
-device virtio-serial-pci \
-spice port=${SPICE_PORT},disable-ticketing=on \
-device virtserialport,chardev=${CHARDEV_ID},name=com.redhat.spice.0 \
-chardev spicevmc,id=${CHARDEV_ID},name=vdagent
#-drive file=${DRIVE},format=raw,cache=none,if=virtio \
exec spicy --title Windows 127.0.0.1 -p ${SPICE_PORT}