mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
Debug mode
Debug mode
This commit is contained in:
commit
03b4ac5433
@ -58,6 +58,12 @@ fi
|
|||||||
|
|
||||||
[ ! -c /dev/net/tun ] && echo "Error: TUN network interface not available..." && exit 85
|
[ ! -c /dev/net/tun ] && echo "Error: TUN network interface not available..." && exit 85
|
||||||
|
|
||||||
|
if [ $DEBUG = "Y" ]; then
|
||||||
|
ifconfig
|
||||||
|
ip link
|
||||||
|
ip route
|
||||||
|
fi
|
||||||
|
|
||||||
update-alternatives --set iptables /usr/sbin/iptables-legacy > /dev/null
|
update-alternatives --set iptables /usr/sbin/iptables-legacy > /dev/null
|
||||||
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy > /dev/null
|
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy > /dev/null
|
||||||
|
|
||||||
@ -86,6 +92,10 @@ else
|
|||||||
[[ -z $(hostname -d) ]] || DNSMASQ_OPTS="$DNSMASQ_OPTS --dhcp-option=option:domain-name,$(hostname -d)"
|
[[ -z $(hostname -d) ]] || DNSMASQ_OPTS="$DNSMASQ_OPTS --dhcp-option=option:domain-name,$(hostname -d)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $DEBUG = "Y" ]; then
|
||||||
|
echo "$DNSMASQ $DNSMASQ_OPTS"
|
||||||
|
fi
|
||||||
|
|
||||||
$DNSMASQ $DNSMASQ_OPTS
|
$DNSMASQ $DNSMASQ_OPTS
|
||||||
|
|
||||||
NET_OPTS="${NET_OPTS} -device virtio-net-pci,romfile=,netdev=hostnet0,mac=${VM_NET_MAC},id=net0"
|
NET_OPTS="${NET_OPTS} -device virtio-net-pci,romfile=,netdev=hostnet0,mac=${VM_NET_MAC},id=net0"
|
||||||
|
@ -4,6 +4,7 @@ set -eu
|
|||||||
# Docker environment variabeles
|
# Docker environment variabeles
|
||||||
|
|
||||||
: ${URL:=''}. # URL of PAT file
|
: ${URL:=''}. # URL of PAT file
|
||||||
|
: ${DEBUG:=''}. # Enable debug mode
|
||||||
: ${ALLOCATE:='Y'} # Preallocate diskspace
|
: ${ALLOCATE:='Y'} # Preallocate diskspace
|
||||||
: ${CPU_CORES:='1'} # vCPU count
|
: ${CPU_CORES:='1'} # vCPU count
|
||||||
: ${DISK_SIZE:='16G'} # Initial disk size
|
: ${DISK_SIZE:='16G'} # Initial disk size
|
||||||
|
Loading…
x
Reference in New Issue
Block a user