From 75dfe1b678d791c3b23957ed058372f1eaca344a Mon Sep 17 00:00:00 2001 From: sickcodes Date: Sat, 18 Sep 2021 10:34:38 +0000 Subject: Add NETDEV. Soft rename NETWORKING to NETWORKING_DEVICE --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index d37a22f..6ecbab5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -206,8 +206,8 @@ RUN touch Launch.sh \ && tee -a Launch.sh <<< '-drive id=InstallMedia,if=none,file=/home/arch/OSX-KVM/BaseSystem.img,format=qcow2 \' \ && tee -a Launch.sh <<< '-drive id=MacHDD,if=none,file=${IMAGE_PATH:-/home/arch/OSX-KVM/mac_hdd_ng.img},format=${IMAGE_FORMAT:-qcow2} \' \ && tee -a Launch.sh <<< '-device ide-hd,bus=sata.4,drive=MacHDD \' \ - && tee -a Launch.sh <<< '-netdev user,id=net0,hostfwd=tcp::${INTERNAL_SSH_PORT:-10022}-:22,hostfwd=tcp::${SCREEN_SHARE_PORT:-5900}-:5900,${ADDITIONAL_PORTS} \' \ - && tee -a Launch.sh <<< '-device ${NETWORKING:-vmxnet3},netdev=net0,id=net0,mac=${MAC_ADDRESS:-52:54:00:09:49:17} \' \ + && tee -a Launch.sh <<< '-netdev ${NETDEV:-user,id=net0,hostfwd=tcp::${INTERNAL_SSH_PORT:-10022}-:22,hostfwd=tcp::${SCREEN_SHARE_PORT:-5900}-:5900,${ADDITIONAL_PORTS}} \' \ + && tee -a Launch.sh <<< '-device ${NETWORKING_DEVICE:-vmxnet3},netdev=net0,id=net0,mac=${MAC_ADDRESS:-52:54:00:09:49:17} \' \ && tee -a Launch.sh <<< '-monitor stdio \' \ && tee -a Launch.sh <<< '-boot menu=on \' \ && tee -a Launch.sh <<< '-vga vmware \' \ @@ -271,8 +271,14 @@ ENV KVM='accel=kvm:tcg' ENV MASTER_PLIST_URL="https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-nopicker-custom.plist" +# Add NETDEV for bridged networking option, see https://github.com/sickcodes/Docker-OSX/issues/72 +# ENV NETDEV='tap,id=net0,ifname=tap0,script=no,downscript=no' +# ENV NETDEV='user,id=net0,hostfwd=tcp::${INTERNAL_SSH_PORT:-10022}-:22,hostfwd=tcp::${SCREEN_SHARE_PORT:-5900}-:5900,${ADDITIONAL_PORTS}' + # ENV NETWORKING=e1000-82545em +# renamed to NETWORKING_DEVICE, but not deprecated ENV NETWORKING=vmxnet3 +ENV NETWORKING_DEVICE="${NETWORKING}" # boolean for skipping the disk selection menu at in the boot process ENV NOPICKER=false -- cgit v1.2.3