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