Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
aa0e22a164 |
2 changed files with 6 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
#printf '%b\n' "\n\033[1m"WINDOWS_INIT:"\033[0m"" Executing iso.sh"
|
printf '%b\n' "\n\033[1m"WINDOWS_INIT:"\033[0m"" Executing iso.sh"
|
||||||
#src/iso.sh
|
src/iso.sh
|
||||||
|
|
||||||
printf '%b\n' "\n\033[1m"WINDOWS_INIT:"\033[0m"" Executing vm.sh"
|
printf '%b\n' "\n\033[1m"WINDOWS_INIT:"\033[0m"" Executing vm.sh"
|
||||||
sudo src/vm.sh /dev/sdb # change to needed drive
|
sudo src/vm.sh
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
# libvirt-daemon for /shrug
|
# libvirt-daemon for /shrug
|
||||||
SPICE_PORT=5930
|
SPICE_PORT=5930
|
||||||
CHARDEV_ID='spicechannel0'
|
CHARDEV_ID='spicechannel0'
|
||||||
DRIVE=$argv
|
DRIVE='/dev/sdb' # change drive if needed
|
||||||
ISO='Win*.iso'
|
ISO='winsp.iso'
|
||||||
sudo qemu-system-x86_64 \
|
sudo qemu-system-x86_64 \
|
||||||
-enable-kvm \
|
-enable-kvm \
|
||||||
-daemonize \
|
-daemonize \
|
||||||
|
@ -18,13 +18,12 @@ sudo qemu-system-x86_64 \
|
||||||
-m 8G \
|
-m 8G \
|
||||||
-boot d \
|
-boot d \
|
||||||
-cdrom ${ISO} \
|
-cdrom ${ISO} \
|
||||||
-hda ${DRIVE} \
|
-drive file=${DRIVE},format=raw,cache=none,if=virtio \
|
||||||
-vga qxl \
|
-vga qxl \
|
||||||
-device virtio-serial-pci \
|
-device virtio-serial-pci \
|
||||||
-spice port=${SPICE_PORT},disable-ticketing=on \
|
-spice port=${SPICE_PORT},disable-ticketing=on \
|
||||||
-device virtserialport,chardev=${CHARDEV_ID},name=com.redhat.spice.0 \
|
-device virtserialport,chardev=${CHARDEV_ID},name=com.redhat.spice.0 \
|
||||||
-chardev spicevmc,id=${CHARDEV_ID},name=vdagent
|
-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}
|
exec spicy --title Windows 127.0.0.1 -p ${SPICE_PORT}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue