Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
ed3c912f3f |
2 changed files with 4 additions and 3 deletions
|
@ -4,4 +4,4 @@
|
||||||
#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
|
sudo src/vm.sh /dev/sdb # change to needed drive
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
# libvirt-daemon for /shrug
|
# libvirt-daemon for /shrug
|
||||||
SPICE_PORT=5930
|
SPICE_PORT=5930
|
||||||
CHARDEV_ID='spicechannel0'
|
CHARDEV_ID='spicechannel0'
|
||||||
DRIVE='/dev/sdb' # change drive if needed
|
DRIVE=$argv
|
||||||
ISO='Win*.iso'
|
ISO='Win*.iso'
|
||||||
sudo qemu-system-x86_64 \
|
sudo qemu-system-x86_64 \
|
||||||
-enable-kvm \
|
-enable-kvm \
|
||||||
|
@ -18,12 +18,13 @@ sudo qemu-system-x86_64 \
|
||||||
-m 8G \
|
-m 8G \
|
||||||
-boot d \
|
-boot d \
|
||||||
-cdrom ${ISO} \
|
-cdrom ${ISO} \
|
||||||
-drive file=${DRIVE},format=raw,cache=none,if=virtio \
|
-hda ${DRIVE} \
|
||||||
-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