Add %MEM% and %VCPUS% tags to vm_conf_files (#115)

This commit is contained in:
Marek Marczykowski 2011-03-16 18:42:01 +01:00 committed by Joanna Rutkowska
parent c9fca2e3c5
commit c636731be1
2 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ ramdisk="%TEMPLATEDIR%/kernels/initramfs"
extra="ro nomodeset xencons=hvc rd_NO_PLYMOUTH 3" extra="ro nomodeset xencons=hvc rd_NO_PLYMOUTH 3"
root="/dev/mapper/dmroot" root="/dev/mapper/dmroot"
memory = 400 memory = %MEM%
name = "%VMNAME%" name = "%VMNAME%"
disk = [ 'snapshot:%TEMPLATEDIR%/root.img:%TEMPLATEDIR%/root-cow.img,xvda,r', 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' 'file:%VMDIR%/swap-cow.img,xvdd,w'
] ]
vcpus = 1 vcpus = %VCPUS%
on_poweroff = 'destroy' on_poweroff = 'destroy'
on_reboot = 'destroy' on_reboot = 'destroy'

View File

@ -7,7 +7,7 @@ ramdisk="%TEMPLATEDIR%/kernels/initramfs"
extra="ro nomodeset xencons=hvc swiotlb=force pci=nomsird_NO_PLYMOUTH 3" extra="ro nomodeset xencons=hvc swiotlb=force pci=nomsird_NO_PLYMOUTH 3"
root="/dev/mapper/dmroot" root="/dev/mapper/dmroot"
memory = 400 memory = %MEM%
name = "%VMNAME%" name = "%VMNAME%"
pci = [ %PCIDEVS% ] pci = [ %PCIDEVS% ]
@ -18,7 +18,7 @@ disk = [ 'snapshot:%TEMPLATEDIR%/root.img:%TEMPLATEDIR%/root-cow.img,xvda,r',
'file:%VMDIR%/swap-cow.img,xvdd,w' 'file:%VMDIR%/swap-cow.img,xvdd,w'
] ]
vcpus = 1 vcpus = %VCPUS%
on_poweroff = 'destroy' on_poweroff = 'destroy'
on_reboot = 'destroy' on_reboot = 'destroy'