From 7ebeca58ec02cf99f5364828b409bc71e5f77fc8 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 23 Apr 2023 17:40:28 +0200 Subject: [PATCH 1/2] Update readme.md --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 3dfe2b8..8563fb3 100644 --- a/readme.md +++ b/readme.md @@ -87,7 +87,7 @@ docker run -it --rm -p 5000:5000 --device=/dev/kvm --cap-add NET_ADMIN --stop-ti Keep in mind that this doesn't affect any existing disks, and that it may impact performance as the image file will need to grow each time new data is added. - * ### 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: From 7c46176cf0b55e2122ecd69247d49c5d761d98eb Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 23 Apr 2023 17:47:10 +0200 Subject: [PATCH 2/2] Log messages --- run/network.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/run/network.sh b/run/network.sh index ed2c71f..115003e 100644 --- a/run/network.sh +++ b/run/network.sh @@ -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 @@ -43,12 +43,12 @@ configureDHCP() { ip a flush "${VM_NET_DEV}" ip a flush "${VM_NET_TAP}" - DHCP_IP=$( dhclient -v "${VM_NET_TAP}" 2>&1 | grep ^bound | cut -d' ' -f3 ) + 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}"