File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -162,21 +162,23 @@ CONTAINER_CIDR=${CONTAINER_CIDR:-$CONTAINER_IP/24}
162162CONTAINER_NETMASK=${CONTAINER_NETMASK:- 255.255.255.0}
163163CONTAINER_GATEWAY=${CONTAINER_GATEWAY:- 192.168.1.1}
164164CONTAINER_MAC=${CONTAINER_MAC:- " 02:16:3e:07:69:` printf ' %02X' $( echo $CONTAINER_IP | sed " s/.*\.//" ) ` " }
165+ CONTAINER_RAM=${CONTAINER_RAM:- 1524288}
166+ CONTAINER_CORES=${CONTAINER_CORES:- 1}
165167
166168# libvirt.xml configuration
167169LIBVIRT_XML=libvirt.xml
168170cat > $LIBVIRT_XML << EOF
169171<domain type='kvm'>
170172 <name>$CONTAINER_NAME </name>
171- <memory>1524288 </memory>
173+ <memory>$CONTAINER_RAM </memory>
172174 <os>
173175 <type>hvm</type>
174176 <bootmenu enable='yes'/>
175177 </os>
176178 <features>
177179 <acpi/>
178180 </features>
179- <vcpu>1 </vcpu>
181+ <vcpu>$CONTAINER_CORES </vcpu>
180182 <devices>
181183 <disk type='file'>
182184 <driver type='qcow2'/>
You can’t perform that action at this time.
0 commit comments