From 9d0cbc6eb78de3fcdbeacdae6be428a2b98627dd Mon Sep 17 00:00:00 2001 From: Wojciech Janota Date: Wed, 28 Dec 2022 18:59:54 +0100 Subject: [PATCH] WIP --- vm_run_script.template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm_run_script.template b/vm_run_script.template index 24b62ce..4648d92 100644 --- a/vm_run_script.template +++ b/vm_run_script.template @@ -1,7 +1,7 @@ #!/bin/bash ## QEMU (VM) command -cp image.qcow2 image-old.qcow2 +cp $IMAGE_PATH $IMAGE_PATH-old 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 \ @@ -10,4 +10,4 @@ qemu-system-x86_64 -enable-kvm -m $MEMORY_ALLOCATION_SIZE \ -device virtio-net-pci,netdev=n1 -netdev user,id=n1 \ -hda $IMAGE_PATH -mv image-old.qcow2 image.qcow2 \ No newline at end of file +mv $IMAGE_PATH-old $IMAGE_PATH \ No newline at end of file