13 lines
513 B
Bash
Executable file
13 lines
513 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/ubuntu-server.img",if=virtio \
|
|
-netdev user,id=vmnic,hostfwd=tcp::5555-:22,hostfwd=tcp::5556-:8000,hostname=ubuntu-server -device virtio-net,netdev=vmnic \
|
|
-m 1G \
|
|
-name "ubuntu-server" \
|
|
-vga qxl \
|
|
-spice port="5927",disable-ticketing \
|
|
-device virtio-serial \
|
|
-chardev spicevmc,id=vdagent,name=vdagent \
|
|
-device virtserialport,chardev=vdagent,name=com.redhat.spice.0
|