From c636731be19474420c8a4783eec2587b957144e1 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Wed, 16 Mar 2011 18:42:01 +0100 Subject: [PATCH] Add %MEM% and %VCPUS% tags to vm_conf_files (#115) --- vm_conf_files/appvm-template.conf | 4 ++-- vm_conf_files/netvm-template.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vm_conf_files/appvm-template.conf b/vm_conf_files/appvm-template.conf index 89fad0c..efccaa7 100644 --- a/vm_conf_files/appvm-template.conf +++ b/vm_conf_files/appvm-template.conf @@ -7,7 +7,7 @@ ramdisk="%TEMPLATEDIR%/kernels/initramfs" extra="ro nomodeset xencons=hvc rd_NO_PLYMOUTH 3" root="/dev/mapper/dmroot" -memory = 400 +memory = %MEM% name = "%VMNAME%" disk = [ 'snapshot:%TEMPLATEDIR%/root.img:%TEMPLATEDIR%/root-cow.img,xvda,r', @@ -16,7 +16,7 @@ disk = [ 'snapshot:%TEMPLATEDIR%/root.img:%TEMPLATEDIR%/root-cow.img,xvda,r', 'file:%VMDIR%/swap-cow.img,xvdd,w' ] -vcpus = 1 +vcpus = %VCPUS% on_poweroff = 'destroy' on_reboot = 'destroy' diff --git a/vm_conf_files/netvm-template.conf b/vm_conf_files/netvm-template.conf index 9728ae0..266c861 100644 --- a/vm_conf_files/netvm-template.conf +++ b/vm_conf_files/netvm-template.conf @@ -7,7 +7,7 @@ ramdisk="%TEMPLATEDIR%/kernels/initramfs" extra="ro nomodeset xencons=hvc swiotlb=force pci=nomsird_NO_PLYMOUTH 3" root="/dev/mapper/dmroot" -memory = 400 +memory = %MEM% name = "%VMNAME%" pci = [ %PCIDEVS% ] @@ -18,7 +18,7 @@ disk = [ 'snapshot:%TEMPLATEDIR%/root.img:%TEMPLATEDIR%/root-cow.img,xvda,r', 'file:%VMDIR%/swap-cow.img,xvdd,w' ] -vcpus = 1 +vcpus = %VCPUS% on_poweroff = 'destroy' on_reboot = 'destroy'