13 lines
434 B
Bash
Executable file
13 lines
434 B
Bash
Executable file
#!/bin/bash
|
|
qemu-system-x86_64 -enable-kvm --daemonize \
|
|
-cpu host \
|
|
-smp 4 \
|
|
-drive format=raw,file="/media/platvoeten/VM/ubuntu-1704.img",if=virtio \
|
|
-m 4G \
|
|
-name "kubuntu-1704" \
|
|
-vga qxl \
|
|
-spice port="5930",disable-ticketing \
|
|
-device virtio-serial \
|
|
-chardev spicevmc,id=vdagent,name=vdagent \
|
|
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0 &&
|
|
exec spicy --title "kubuntu-1704" 127.0.0.1 -p "5930"
|