From 49398f257b8bea6dba3b2b40710fd1c167a31efe Mon Sep 17 00:00:00 2001 From: Wojciech Janota Date: Wed, 28 Dec 2022 18:11:54 +0100 Subject: [PATCH] WIP --- vm_run_script.template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vm_run_script.template b/vm_run_script.template index f0473ef..24b62ce 100644 --- a/vm_run_script.template +++ b/vm_run_script.template @@ -1,8 +1,13 @@ #!/bin/bash ## QEMU (VM) command + +cp image.qcow2 image-old.qcow2 + 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 \ -rtc clock=host,base=localtime -smp $CPU_CORES_COUNT,sockets=1,cores=$CPU_CORES_COUNT,threads=1 \ -full-screen \ -device virtio-net-pci,netdev=n1 -netdev user,id=n1 \ --hda $IMAGE_PATH & \ No newline at end of file +-hda $IMAGE_PATH + +mv image-old.qcow2 image.qcow2 \ No newline at end of file