Loading readme.md +1 −1 Original line number Diff line number Diff line Loading @@ -87,7 +87,7 @@ docker run -it --rm -e "BOOT=http://www.example.com/image.iso" --device=/dev/kvm - /home/user/data:/storage ``` * ### How can I increase the allocated amount of CPU/RAM? * ### How can I increase the amount of CPU/RAM? By default, a single core and 512MB of RAM is allocated to the container. To increase this, add the following environment variables: Loading run/network.sh +4 −4 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ configureDHCP() { ip route add "${NETWORK}" dev "${VM_NET_VLAN}" metric 0 ip route add default via "${GATEWAY}" echo "Info: Retrieving IP via DHCP using MAC ${VM_NET_MAC}..." echo "Info: Acquiring an IP address via DHCP using MAC address ${VM_NET_MAC}..." ip l add link "${VM_NET_DEV}" name "${VM_NET_TAP}" address "${VM_NET_MAC}" type macvtap mode bridge || true ip l set "${VM_NET_TAP}" up Loading @@ -46,9 +46,9 @@ configureDHCP() { DHCP_IP=$(dhclient -v "${VM_NET_TAP}" 2>&1 | grep ^bound | cut -d' ' -f3) if [[ "${DHCP_IP}" == [0-9.]* ]]; then echo "Info: Retrieved IP ${DHCP_IP} via DHCP" echo "Info: Successfully acquired IP ${DHCP_IP} from the DHCP server..." else echo "ERROR: Cannot retrieve IP from DHCP using MAC ${VM_NET_MAC}" && exit 16 echo "ERROR: Cannot acquire an IP address from the DHCP server" && exit 16 fi ip a flush "${VM_NET_TAP}" Loading Loading
readme.md +1 −1 Original line number Diff line number Diff line Loading @@ -87,7 +87,7 @@ docker run -it --rm -e "BOOT=http://www.example.com/image.iso" --device=/dev/kvm - /home/user/data:/storage ``` * ### How can I increase the allocated amount of CPU/RAM? * ### How can I increase the amount of CPU/RAM? By default, a single core and 512MB of RAM is allocated to the container. To increase this, add the following environment variables: Loading
run/network.sh +4 −4 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ configureDHCP() { ip route add "${NETWORK}" dev "${VM_NET_VLAN}" metric 0 ip route add default via "${GATEWAY}" echo "Info: Retrieving IP via DHCP using MAC ${VM_NET_MAC}..." echo "Info: Acquiring an IP address via DHCP using MAC address ${VM_NET_MAC}..." ip l add link "${VM_NET_DEV}" name "${VM_NET_TAP}" address "${VM_NET_MAC}" type macvtap mode bridge || true ip l set "${VM_NET_TAP}" up Loading @@ -46,9 +46,9 @@ configureDHCP() { DHCP_IP=$(dhclient -v "${VM_NET_TAP}" 2>&1 | grep ^bound | cut -d' ' -f3) if [[ "${DHCP_IP}" == [0-9.]* ]]; then echo "Info: Retrieved IP ${DHCP_IP} via DHCP" echo "Info: Successfully acquired IP ${DHCP_IP} from the DHCP server..." else echo "ERROR: Cannot retrieve IP from DHCP using MAC ${VM_NET_MAC}" && exit 16 echo "ERROR: Cannot acquire an IP address from the DHCP server" && exit 16 fi ip a flush "${VM_NET_TAP}" Loading