monakhos/vm_tools/run_vm.sh

21 lines
496 B
Bash
Raw Permalink Normal View History

2024-05-22 15:35:11 +00:00
#!/usr/bin/sh
echo "Launching vm"
qemu-system-x86_64 \
2024-05-26 20:17:13 +00:00
-hda $1 \
2024-05-22 15:35:11 +00:00
-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 \
2024-05-26 20:17:13 +00:00
-D ./log.txt \
$RUN_VM_EXTRA_ARGS
2024-05-22 15:35:11 +00:00