monakhos/vm_tools/run_vm.sh
2024-05-22 17:35:11 +02:00

24 lines
681 B
Bash
Executable file

#!/usr/bin/sh
# -cdrom /mnt/extramedia3/mbess/os_images/arch/2024-05-01/archlinux-2024.05.01-x86_64.iso \
#
#-hdb secondary.qcow \
#
# -spice unix=on,addr=/tmp/vm_monakhos.spice.socket,disable-ticketing=on \
echo "Launching vm"
qemu-system-x86_64 \
-hda main.qcow \
-boot order=d \
-m 2G \
-accel kvm \
-monitor telnet:127.0.0.1:2069,server,nowait \
-cpu host \
-chardev qemu-vdagent,id=ch1,name=vdagent,clipboard=on \
-device virtio-serial \
-device virtserialport,chardev=ch1,name=com.redhat.spice.0 \
-spice addr=127.0.0.1,port=4354,disable-ticketing=on \
-net user,hostfwd=tcp::2222-:22 \
-net nic \