Added ISO and DRIVE variables to qemu
This commit is contained in:
parent
03c9b5b15d
commit
7f941344d2
1 changed files with 4 additions and 3 deletions
|
@ -6,7 +6,8 @@
|
|||
# libvirt-daemon for /shrug
|
||||
SPICE_PORT=5930
|
||||
CHARDEV_ID='spicechannel0'
|
||||
# change drive if needed (default: /dev/sdb)
|
||||
DRIVE='/dev/sdb' # change drive if needed
|
||||
ISO='win.iso'
|
||||
qemu-system-x86_64 \
|
||||
-enable-kvm \
|
||||
-daemonize \
|
||||
|
@ -16,8 +17,8 @@ qemu-system-x86_64 \
|
|||
-net user,hostname=windowsvm \
|
||||
-m 4G \
|
||||
-boot d \
|
||||
-cdrom win.iso \
|
||||
-drive file=/dev/sdb,cache=none,if=virtio \
|
||||
-cdrom ${ISO} \
|
||||
-drive file=${DRIVE},format=raw,cache=none,if=virtio \
|
||||
-vga qxl \
|
||||
-device virtio-serial-pci \
|
||||
-spice port=${SPICE_PORT},disable-ticketing=on \
|
||||
|
|
Loading…
Reference in a new issue