Add %MEM% and %VCPUS% tags to vm_conf_files (#115)
This commit is contained in:
parent
ad0e2aaf7e
commit
8db9eeb102
@ -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'
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user