Log messages

Log messages
This commit is contained in:
Kroese 2023-04-23 17:48:28 +02:00 committed by GitHub
commit d2fabaaae5
2 changed files with 5 additions and 5 deletions

View File

@ -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. 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: By default, a single core and 512MB of RAM is allocated to the container. To increase this, add the following environment variables:

View File

@ -35,7 +35,7 @@ configureDHCP() {
ip route add "${NETWORK}" dev "${VM_NET_VLAN}" metric 0 ip route add "${NETWORK}" dev "${VM_NET_VLAN}" metric 0
ip route add default via "${GATEWAY}" 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 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 ip l set "${VM_NET_TAP}" up
@ -43,12 +43,12 @@ configureDHCP() {
ip a flush "${VM_NET_DEV}" ip a flush "${VM_NET_DEV}"
ip a flush "${VM_NET_TAP}" 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 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 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 fi
ip a flush "${VM_NET_TAP}" ip a flush "${VM_NET_TAP}"