diff options
| author | sickcodes <[email protected]> | 2021-02-08 22:05:18 +0000 |
|---|---|---|
| committer | sickcodes <[email protected]> | 2021-02-08 22:05:18 +0000 |
| commit | 54afd6ad58b32533355f353e17e8ddf393715239 (patch) | |
| tree | b8b62d794fdc2a78f101b82084722df966599af9 | |
| parent | Reduced image by 5GB, thanks to @weskerfoot! (diff) | |
| download | docker-osx-54afd6ad58b32533355f353e17e8ddf393715239.tar.xz docker-osx-54afd6ad58b32533355f353e17e8ddf393715239.zip | |
Add -e NETWORKING=e1000-82545em || -e ENV NETWORKING=vmxnet3 as runtime arguments.
| -rw-r--r-- | Dockerfile | 6 | ||||
| -rw-r--r-- | README.md | 1 |
2 files changed, 6 insertions, 1 deletions
@@ -178,7 +178,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=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, -device e1000-82545em,netdev=net0,id=net0,mac=${MAC_ADDRESS:-52:54:00:09:49:17} \' \ + && tee -a Launch.sh <<< '-netdev user,id=net0,hostfwd=tcp::${INTERNAL_SSH_PORT:-10022}-:22,hostfwd=tcp::${SCREEN_SHARE_PORT:-5900}-:5900, \' \ + && tee -a Launch.sh <<< '-device ${NETWORKING},netdev=net0,id=net0,mac=${MAC_ADDRESS:-52:54:00:09:49:17} \' \ && tee -a Launch.sh <<< '-monitor stdio \' \ && tee -a Launch.sh <<< '-vga vmware \' \ && tee -a Launch.sh <<< '${EXTRA:-}' @@ -196,6 +197,9 @@ ENV DISPLAY=:0.0 ENV IMAGE_PATH=/home/arch/OSX-KVM/mac_hdd_ng.img +ENV NETWORKING=e1000-82545em +# ENV NETWORKING=vmxnet3 + VOLUME ["/tmp/.X11-unix"] CMD case "$(file --brief /image)" in \ @@ -622,6 +622,7 @@ docker run \ -e IMAGE_PATH=/image \ -e SCREEN_SHARE_PORT=5900 \ -e DISPLAY=:0 \ + -e NETWORKING=vmxnet3 \ --device /dev/kvm \ --device /dev/snd \ -v /tmp/.X11-unix:/tmp/.X11-unix \ |