client-application/vm_run_script.template

13 lines
436 B
Plaintext
Raw Normal View History

2022-12-11 22:24:53 +00:00
#!/bin/bash
## QEMU (VM) command
2022-12-28 17:11:54 +00:00
2022-12-28 17:59:54 +00:00
cp $IMAGE_PATH $IMAGE_PATH-old
2022-12-28 17:11:54 +00:00
2022-12-11 22:24:53 +00:00
qemu-system-x86_64 -enable-kvm -m $MEMORY_ALLOCATION_SIZE \
-cpu host,kvm=off,hv_relaxed,hv_spinlocks=0x1fff,hv_time,hv_vapic,hv_vendor_id=0xDEADBEEFFF \
2022-12-12 15:31:42 +00:00
-rtc clock=host,base=localtime -smp $CPU_CORES_COUNT,sockets=1,cores=$CPU_CORES_COUNT,threads=1 \
2022-12-28 11:20:51 +00:00
-full-screen \
2022-12-11 22:24:53 +00:00
-device virtio-net-pci,netdev=n1 -netdev user,id=n1 \
2022-12-28 17:11:54 +00:00
-hda $IMAGE_PATH
2022-12-28 17:59:54 +00:00
mv $IMAGE_PATH-old $IMAGE_PATH