From 6960eff97914beccb6941437e0c1f6c1853ae4a4 Mon Sep 17 00:00:00 2001 From: Jesse Andrews Date: Thu, 20 Oct 2011 14:57:18 -0700 Subject: [PATCH] parameterize ram/cores in build_kvm --- tools/build_kvm.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/build_kvm.sh b/tools/build_kvm.sh index 4cca5f9..207f86b 100755 --- a/tools/build_kvm.sh +++ b/tools/build_kvm.sh @@ -162,13 +162,15 @@ CONTAINER_CIDR=${CONTAINER_CIDR:-$CONTAINER_IP/24} CONTAINER_NETMASK=${CONTAINER_NETMASK:-255.255.255.0} CONTAINER_GATEWAY=${CONTAINER_GATEWAY:-192.168.1.1} CONTAINER_MAC=${CONTAINER_MAC:-"02:16:3e:07:69:`printf '%02X' $(echo $CONTAINER_IP | sed "s/.*\.//")`"} +CONTAINER_RAM=${CONTAINER_RAM:-1524288} +CONTAINER_CORES=${CONTAINER_CORES:-1} # libvirt.xml configuration LIBVIRT_XML=libvirt.xml cat > $LIBVIRT_XML < $CONTAINER_NAME - 1524288 + $CONTAINER_RAM hvm @@ -176,7 +178,7 @@ cat > $LIBVIRT_XML < - 1 + $CONTAINER_CORES