You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
436 B
Plaintext

2 years ago
#!/bin/bash
## QEMU (VM) command
2 years ago
2 years ago
cp $IMAGE_PATH $IMAGE_PATH-old
2 years ago
2 years ago
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 \
2 years ago
-rtc clock=host,base=localtime -smp $CPU_CORES_COUNT,sockets=1,cores=$CPU_CORES_COUNT,threads=1 \
2 years ago
-full-screen \
2 years ago
-device virtio-net-pci,netdev=n1 -netdev user,id=n1 \
2 years ago
-hda $IMAGE_PATH
2 years ago
mv $IMAGE_PATH-old $IMAGE_PATH