More RAM for basedisk build
Our default (512 MB RAM) is no longer sufficient to build the basedisk. We have seen multiple out-of-memory errors. Building the cluster takes a lot more RAM anyway, so we might as well double the RAM allocation for the basedisk build. This changeset is a minimal problem fix which also shows that the code is inconsistent. A refactoring patch will follow later. Change-Id: I55f52c50e4cde8583b8fea7a0942bfd9e8939f72
This commit is contained in:
@@ -2,3 +2,6 @@
|
||||
|
||||
# Port forwarding
|
||||
VM_SSH_PORT=2229
|
||||
|
||||
# Our default RAM size (512 MB) is not sufficient for installation
|
||||
VM_MEM=1024
|
||||
|
||||
@@ -58,7 +58,7 @@ function vm_install_base {
|
||||
--cdrom "$INSTALL_ISO" \
|
||||
--name $vm_name \
|
||||
--os-type linux \
|
||||
--ram "${VM_BASE_MEM:=512}" \
|
||||
--ram "${VM_BASE_MEM:=1024}" \
|
||||
--vcpus 1 \
|
||||
--virt-type kvm \
|
||||
$console_type \
|
||||
|
||||
@@ -14,7 +14,7 @@ function vm_install_base {
|
||||
${WBATCH:-:} wbatch_delete_disk "$base_build_disk"
|
||||
|
||||
vm_create "$vm_name"
|
||||
vm_mem "$vm_name" "${VM_BASE_MEM:=512}"
|
||||
vm_mem "$vm_name" "${VM_BASE_MEM:=1024}"
|
||||
|
||||
if [ -z "${INSTALL_ISO-}" ]; then
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ def vm_install_base():
|
||||
libvirt_connect_uri = "qemu:///system"
|
||||
virt_install_call = ["sudo", "virt-install",
|
||||
"--connect={}".format(libvirt_connect_uri)]
|
||||
vm_base_mem = 512
|
||||
vm_base_mem = 1024
|
||||
|
||||
call_args = virt_install_call
|
||||
call_args.extend(["--name", vm_name])
|
||||
|
||||
Reference in New Issue
Block a user