fix: User-mode networking (#219)
This commit is contained in:
parent
5b8d5059e5
commit
226ecd081a
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ set -Eeuo pipefail
|
||||||
: "${VM_NET_DEV:=""}"
|
: "${VM_NET_DEV:=""}"
|
||||||
: "${VM_NET_TAP:="qemu"}"
|
: "${VM_NET_TAP:="qemu"}"
|
||||||
: "${VM_NET_MAC:="$MAC"}"
|
: "${VM_NET_MAC:="$MAC"}"
|
||||||
: "${VM_NET_HOST:="QEMU"}"
|
: "${VM_NET_HOST:="$APP"}"
|
||||||
: "${VM_NET_IP:="20.20.20.21"}"
|
: "${VM_NET_IP:="20.20.20.21"}"
|
||||||
|
|
||||||
: "${DNSMASQ_OPTS:=""}"
|
: "${DNSMASQ_OPTS:=""}"
|
||||||
|
@ -178,7 +178,7 @@ getHostPorts() {
|
||||||
|
|
||||||
configureUser() {
|
configureUser() {
|
||||||
|
|
||||||
NET_OPTS="-netdev user,id=hostnet0,host=${VM_NET_IP%.*}.2,net=${VM_NET_IP%.*}.0/24,dhcpstart=$VM_NET_IP,hostname=$VM_NET_HOST"
|
NET_OPTS="-netdev user,id=hostnet0,host=${VM_NET_IP%.*}.1,net=${VM_NET_IP%.*}.0/24,dhcpstart=$VM_NET_IP,hostname=$VM_NET_HOST"
|
||||||
|
|
||||||
local forward
|
local forward
|
||||||
forward=$(getUserPorts "$USER_PORTS")
|
forward=$(getUserPorts "$USER_PORTS")
|
||||||
|
|
Loading…
Reference in a new issue