From 8d4516ca3d7e43f19a0d1a17a6849a600c1eb957 Mon Sep 17 00:00:00 2001 From: lguohan Date: Sat, 23 Nov 2019 12:30:22 -0800 Subject: [PATCH] [kvm]: increase mem to 3G to avoid OOM during onie installation (#3811) Signed-off-by: Guohan Lu --- build_image.sh | 2 +- build_kvm_image.sh => scripts/build_kvm_image.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename build_kvm_image.sh => scripts/build_kvm_image.sh (99%) diff --git a/build_image.sh b/build_image.sh index 3084a4a2bd..9635201ae0 100755 --- a/build_image.sh +++ b/build_image.sh @@ -96,7 +96,7 @@ elif [ "$IMAGE_TYPE" = "kvm" ]; then generate_onie_installer_image - SONIC_USERNAME=$USERNAME PASSWD=$PASSWORD sudo -E ./build_kvm_image.sh $KVM_IMAGE_DISK $onie_recovery_image $OUTPUT_ONIE_IMAGE $KVM_IMAGE_DISK_SIZE + SONIC_USERNAME=$USERNAME PASSWD=$PASSWORD sudo -E ./scripts/build_kvm_image.sh $KVM_IMAGE_DISK $onie_recovery_image $OUTPUT_ONIE_IMAGE $KVM_IMAGE_DISK_SIZE if [ $? -ne 0 ]; then echo "Error : build kvm image failed" diff --git a/build_kvm_image.sh b/scripts/build_kvm_image.sh similarity index 99% rename from build_kvm_image.sh rename to scripts/build_kvm_image.sh index bc0f54e12d..a8ae21c977 100755 --- a/build_kvm_image.sh +++ b/scripts/build_kvm_image.sh @@ -4,7 +4,7 @@ # # SPDX-License-Identifier: GPL-2.0 -MEM=2048 +MEM=3072 DISK=$1 ONIE_RECOVERY_ISO=$2 INSTALLER=$3