monakhos/vm_tools/run_vm.sh

25 lines
681 B
Bash
Raw Normal View History

2024-05-22 15:35:11 +00:00
#!/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 \