Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
ed3c912f3f |
2 changed files with 7 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
printf '%b\n' "\n\033[1m"WINDOWS_INIT:"\033[0m"" Executing iso.sh"
|
||||
src/iso.sh
|
||||
#printf '%b\n' "\n\033[1m"WINDOWS_INIT:"\033[0m"" Executing iso.sh"
|
||||
#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
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
# libvirt-daemon for /shrug
|
||||
SPICE_PORT=5930
|
||||
CHARDEV_ID='spicechannel0'
|
||||
DRIVE='/dev/sdb' # change drive if needed
|
||||
ISO='winsp.iso'
|
||||
DRIVE=$argv
|
||||
ISO='Win*.iso'
|
||||
sudo qemu-system-x86_64 \
|
||||
-enable-kvm \
|
||||
-daemonize \
|
||||
|
@ -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}
|
||||
|
||||
|
|
Loading…
Reference in a new issue