From 07b9c8b80def9e6dc82ee821c466cbe1df20481e Mon Sep 17 00:00:00 2001 From: Alexander Clouter Date: Sun, 20 Sep 2020 11:05:02 +0100 Subject: [PATCH 1/9] empty pkg cache --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b8111b2..0827c9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -72,6 +72,7 @@ RUN tee -a /etc/pacman.conf <<< '[community-testing]' \ RUN pacman -Syu --noconfirm \ && pacman -S sudo git make automake gcc python go autoconf cmake pkgconf alsa-utils fakeroot --noconfirm \ + && yes | pacman -Scc \ && useradd arch -p arch \ && tee -a /etc/sudoers <<< 'arch ALL=(ALL) NOPASSWD: ALL' \ && mkdir /home/arch \ @@ -106,7 +107,7 @@ RUN perl -p -i -e 's/print("Succeeded:")/exit()/' ./gibMacOS.command # this command takes a while! RUN python gibMacOS.command -v "${VERSION}" -d || echo Done -RUN sudo pacman -Syu qemu libvirt dnsmasq virt-manager bridge-utils flex bison ebtables edk2-ovmf netctl libvirt-dbus libguestfs --noconfirm +RUN sudo pacman -Syu qemu libvirt dnsmasq virt-manager bridge-utils flex bison ebtables edk2-ovmf netctl libvirt-dbus libguestfs --noconfirm && yes | pacman -Scc # RUN sudo systemctl enable libvirtd.service # RUN sudo systemctl enable virtlogd.service From 02564cba09c0b531ad83dc6d455ff48989e58e99 Mon Sep 17 00:00:00 2001 From: Alexander Clouter Date: Sun, 20 Sep 2020 10:04:19 +0100 Subject: [PATCH 2/9] use shell expansions for defaults --- Dockerfile | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0827c9a..836aded 100644 --- a/Dockerfile +++ b/Dockerfile @@ -143,10 +143,10 @@ RUN touch enable-ssh.sh \ RUN touch Launch.sh \ && chmod +x ./Launch.sh \ - && tee -a Launch.sh <<< 'qemu-system-x86_64 -enable-kvm -m ${RAM}000 \' \ + && tee -a Launch.sh <<< 'qemu-system-x86_64 -enable-kvm -m ${RAM:-8}000 \' \ && tee -a Launch.sh <<< '-cpu Penryn,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check \' \ && tee -a Launch.sh <<< '-machine q35 \' \ - && tee -a Launch.sh <<< '-smp ${SMP},cores=${CORES} \' \ + && tee -a Launch.sh <<< '-smp ${SMP:-4},cores=${CORES:-4} \' \ && tee -a Launch.sh <<< '-usb -device usb-kbd -device usb-tablet \' \ && tee -a Launch.sh <<< '-device isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal\(c\)AppleComputerInc \' \ && tee -a Launch.sh <<< '-drive if=pflash,format=raw,readonly,file=/home/arch/OSX-KVM/OVMF_CODE.fd \' \ @@ -160,28 +160,13 @@ RUN touch Launch.sh \ && tee -a Launch.sh <<< '-drive id=InstallMedia,if=none,file=BaseSystem.img,format=raw \' \ && tee -a Launch.sh <<< '-drive id=MacHDD,if=none,file=/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}-:22,hostfwd=tcp::${SCREEN_SHARE_PORT}-:5900, -device e1000-82545em,netdev=net0,id=net0,mac=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, -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:09:49:17 \' \ && tee -a Launch.sh <<< '-monitor stdio \' \ && tee -a Launch.sh <<< '-vga vmware \' \ - && tee -a Launch.sh <<< '${EXTRA}' + && tee -a Launch.sh <<< '${EXTRA:-}' ENV USER arch -ENV RAM=8 -ENV SMP=4 -ENV CORES=4 -ENV EXTRA= -ENV INTERNAL_SSH_PORT=10022 -ENV SCREEN_SHARE_PORT=5900 - -# if you're in the shell, export these variables to use then in envsubst -# export RAM=5 -# export SMP=4 -# export CORES=4 -# export EXTRA= -# export INTERNAL_SSH_PORT=10022 -# export SCREEN_SHARE_PORT=5900 - USER arch VOLUME ["/tmp/.X11-unix"] From a07da08cfd134fcce841985ecf06b3786ab4d6ff Mon Sep 17 00:00:00 2001 From: Alexander Clouter Date: Sun, 20 Sep 2020 10:04:35 +0100 Subject: [PATCH 3/9] use shell exec/set-eu --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 836aded..2cbaa3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -143,7 +143,9 @@ RUN touch enable-ssh.sh \ RUN touch Launch.sh \ && chmod +x ./Launch.sh \ - && tee -a Launch.sh <<< 'qemu-system-x86_64 -enable-kvm -m ${RAM:-8}000 \' \ + && tee -a Launch.sh <<< '#!/bin/sh' \ + && tee -a Launch.sh <<< 'set -eu' \ + && tee -a Launch.sh <<< 'exec qemu-system-x86_64 -enable-kvm -m ${RAM:-8}000 \' \ && tee -a Launch.sh <<< '-cpu Penryn,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check \' \ && tee -a Launch.sh <<< '-machine q35 \' \ && tee -a Launch.sh <<< '-smp ${SMP:-4},cores=${CORES:-4} \' \ From de9b31923c4d829361df36598cd7a1d97226d608 Mon Sep 17 00:00:00 2001 From: Alexander Clouter Date: Sun, 20 Sep 2020 10:05:40 +0100 Subject: [PATCH 4/9] support fallback to tcg from kvm --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2cbaa3f..cf84c76 100644 --- a/Dockerfile +++ b/Dockerfile @@ -145,9 +145,9 @@ RUN touch Launch.sh \ && chmod +x ./Launch.sh \ && tee -a Launch.sh <<< '#!/bin/sh' \ && tee -a Launch.sh <<< 'set -eu' \ - && tee -a Launch.sh <<< 'exec qemu-system-x86_64 -enable-kvm -m ${RAM:-8}000 \' \ - && tee -a Launch.sh <<< '-cpu Penryn,kvm=on,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check \' \ - && tee -a Launch.sh <<< '-machine q35 \' \ + && tee -a Launch.sh <<< 'exec qemu-system-x86_64 -m ${RAM:-8}000 \' \ + && tee -a Launch.sh <<< '-cpu Penryn,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check \' \ + && tee -a Launch.sh <<< '-machine q35,accel=kvm:tcg \' \ && tee -a Launch.sh <<< '-smp ${SMP:-4},cores=${CORES:-4} \' \ && tee -a Launch.sh <<< '-usb -device usb-kbd -device usb-tablet \' \ && tee -a Launch.sh <<< '-device isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal\(c\)AppleComputerInc \' \ From 96302c6f6d64795a27541e3a295131bedf8bae84 Mon Sep 17 00:00:00 2001 From: Alexander Clouter Date: Sun, 20 Sep 2020 10:18:40 +0100 Subject: [PATCH 5/9] remove need for DISPLAY --- Dockerfile | 2 ++ README.md | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index cf84c76..c819311 100644 --- a/Dockerfile +++ b/Dockerfile @@ -169,6 +169,8 @@ RUN touch Launch.sh \ ENV USER arch +ENV DISPLAY=:0.0 + USER arch VOLUME ["/tmp/.X11-unix"] diff --git a/README.md b/README.md index f3bfe76..9999675 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Pull requests, suggestions very welcome! docker pull sickcodes/docker-osx -docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx +docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx # press ctrl G if your mouse gets stuck @@ -40,7 +40,7 @@ docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X1 # need more RAM and SSH on 0.0.0.0:50922? -docker run -e RAM=4 -p 50922:10022 --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx:latest +docker run -e RAM=4 -p 50922:10022 --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx:latest ssh fullname@localhost -p 50922 @@ -109,7 +109,7 @@ docker ps --all #make note of your container id docker commit containerID newImageName # To run this image do the following -docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix newImageName +docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix newImageName ``` # Troubleshooting @@ -130,7 +130,7 @@ sudo yum install xorg-x11-server-utils # then run xhost + -docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh +docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh ``` Alternative run, thanks @roryrjb From 41dee4b3212f761819b2781a43347cda48649f79 Mon Sep 17 00:00:00 2001 From: Alexander Clouter Date: Sun, 20 Sep 2020 10:31:44 +0100 Subject: [PATCH 6/9] remove need for privileged --- Dockerfile | 2 ++ README.md | 16 +++++----------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index c819311..f236ad5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -145,6 +145,8 @@ RUN touch Launch.sh \ && chmod +x ./Launch.sh \ && tee -a Launch.sh <<< '#!/bin/sh' \ && tee -a Launch.sh <<< 'set -eu' \ + && tee -a Launch.sh <<< 'sudo chown $(id -u):$(id -g) /dev/kvm 2>/dev/null || true' \ + && tee -a Launch.sh <<< 'sudo chown -R $(id -u):$(id -g) /dev/snd 2>/dev/null || true' \ && tee -a Launch.sh <<< 'exec qemu-system-x86_64 -m ${RAM:-8}000 \' \ && tee -a Launch.sh <<< '-cpu Penryn,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check \' \ && tee -a Launch.sh <<< '-machine q35,accel=kvm:tcg \' \ diff --git a/README.md b/README.md index 9999675..76be75d 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Pull requests, suggestions very welcome! docker pull sickcodes/docker-osx -docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx +docker run --device /dev/kvm --device /dev/snd -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx # press ctrl G if your mouse gets stuck @@ -40,7 +40,7 @@ docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx # need more RAM and SSH on 0.0.0.0:50922? -docker run -e RAM=4 -p 50922:10022 --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx:latest +docker run --device /dev/kvm --device /dev/snd -e RAM=4 -p 50922:10022 sickcodes/docker-osx:latest ssh fullname@localhost -p 50922 @@ -109,7 +109,7 @@ docker ps --all #make note of your container id docker commit containerID newImageName # To run this image do the following -docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix newImageName +docker run --device /dev/kvm --device /dev/snd -v /tmp/.X11-unix:/tmp/.X11-unix newImageName ``` # Troubleshooting @@ -130,7 +130,7 @@ sudo yum install xorg-x11-server-utils # then run xhost + -docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh +docker run --device /dev/kvm --device /dev/snd -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh ``` Alternative run, thanks @roryrjb @@ -159,12 +159,6 @@ sudo dockerd sudo nohup dockerd & ``` -Check /dev/kvm permissions - -```bash -sudo chmod 666 /dev/kvm -``` - If you don't have Docker already ```bash @@ -261,7 +255,7 @@ docker run \ -e CORES=4 \ -e EXTRA='-usb -device usb-host,hostbus=1,hostaddr=8' \ -e INTERNAL_SSH_PORT=23 \ ---privileged -v /tmp/.X11-unix:/tmp/.X11-unix docker-osx:latest +--device /dev/kvm --device /dev/snd -v /tmp/.X11-unix:/tmp/.X11-unix docker-osx:latest ``` From bb7de1bfea259e37b08d92014a4e948cb260dfad Mon Sep 17 00:00:00 2001 From: Alexander Clouter Date: Sun, 20 Sep 2020 10:14:24 +0100 Subject: [PATCH 7/9] make audio driver configurable but defaults to alsa --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f236ad5..82666fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -156,7 +156,7 @@ RUN touch Launch.sh \ && tee -a Launch.sh <<< '-drive if=pflash,format=raw,readonly,file=/home/arch/OSX-KVM/OVMF_CODE.fd \' \ && tee -a Launch.sh <<< '-drive if=pflash,format=raw,file=./OVMF_VARS-1024x768.fd \' \ && tee -a Launch.sh <<< '-smbios type=2 \' \ - && tee -a Launch.sh <<< '-device ich9-intel-hda -device hda-duplex \' \ + && tee -a Launch.sh <<< '-audiodev ${AUDIO_DRIVER:-alsa},id=hda -device ich9-intel-hda -device hda-duplex,audiodev=hda \' \ && tee -a Launch.sh <<< '-device ich9-ahci,id=sata \' \ && tee -a Launch.sh <<< '-drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2 \' \ && tee -a Launch.sh <<< '-device ide-hd,bus=sata.2,drive=OpenCoreBoot \' \ From 812c4a2e0971b48953e54b9086c0b0f70c2dd7d5 Mon Sep 17 00:00:00 2001 From: Alexander Clouter Date: Sun, 20 Sep 2020 10:47:23 +0100 Subject: [PATCH 8/9] pulseaudio example AppleALC does not support the codec out of the box and I have been unable to work through https://osy.gitbook.io/hac-mini-guide/details/hda-fix to figure out how to make it appear. The controller does work, but without the codec driver support there no soundcard is present to macOS --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 76be75d..f0ab46b 100644 --- a/README.md +++ b/README.md @@ -133,6 +133,15 @@ xhost + docker run --device /dev/kvm --device /dev/snd -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx ./OpenCore-Boot.sh ``` +PulseAudio for sound (note neither [AppleALC](https://github.com/acidanthera/AppleALC) and varying [`alcid`](https://dortania.github.io/OpenCore-Post-Install/universal/audio.html) or [VoodooHDA-OC](https://github.com/chris1111/VoodooHDA-OC) have [codec support](https://osy.gitbook.io/hac-mini-guide/details/hda-fix#hda-codec) though [IORegistryExplorer](https://github.com/vulgo/IORegistryExplorer) does show the controller component working): +```bash +docker run --device /dev/kvm -e AUDIO_DRIVER=pa,server=unix:/tmp/pulseaudio.socket -v /run/user/$(id -u)/pulse/native:/tmp/pulseaudio.socket -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx +``` +PulseAudio debugging: +```bash +docker run --device /dev/kvm -e AUDIO_DRIVER=pa,server=unix:/tmp/pulseaudio.socket -v /run/user/$(id -u)/pulse/native:/tmp/pulseaudio.socket -v /tmp/.X11-unix:/tmp/.X11-unix -e PULSE_SERVER=unix:/tmp/pulseaudio.socket sickcodes/docker-osx pactl list +``` + Alternative run, thanks @roryrjb ```bash From 34757eb7543f3dc846b50d9220d4279c8a86ce0e Mon Sep 17 00:00:00 2001 From: Alexander Clouter Date: Sun, 20 Sep 2020 11:36:45 +0100 Subject: [PATCH 9/9] improve handling of BaseSystem.dmg to reduce image by 2.5GB (from 6GB) --- Dockerfile | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/Dockerfile b/Dockerfile index 82666fa..a62609c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -99,27 +99,11 @@ RUN tee -a sshd_config <<< 'AllowTcpForwarding yes' \ && tee -a sshd_config <<< 'HostKey /etc/ssh/ssh_host_ed25519_key' USER arch -WORKDIR /home/arch -RUN git clone https://github.com/corpnewt/gibMacOS.git -WORKDIR /home/arch/gibMacOS -RUN perl -p -i -e 's/print("Succeeded:")/exit()/' ./gibMacOS.command - -# this command takes a while! -RUN python gibMacOS.command -v "${VERSION}" -d || echo Done - -RUN sudo pacman -Syu qemu libvirt dnsmasq virt-manager bridge-utils flex bison ebtables edk2-ovmf netctl libvirt-dbus libguestfs --noconfirm && yes | pacman -Scc -# RUN sudo systemctl enable libvirtd.service -# RUN sudo systemctl enable virtlogd.service # download OSX-KVM WORKDIR /home/arch RUN git clone https://github.com/kholia/OSX-KVM.git -# create disk -WORKDIR /home/arch/OSX-KVM -RUN qemu-img convert ${HOME}/gibMacOS/macOS\ Downloads/publicrelease/*/BaseSystem.dmg -O raw ${HOME}/OSX-KVM/BaseSystem.img \ - && qemu-img create -f qcow2 mac_hdd_ng.img "${SIZE}" - # enable ssh # docker exec .... ./enable-ssh.sh USER arch @@ -138,9 +122,25 @@ RUN touch enable-ssh.sh \ # default env vars, RUNTIME ONLY, not for editing in build time. +RUN sudo pacman -Syu qemu libvirt dnsmasq virt-manager bridge-utils flex bison ebtables edk2-ovmf netctl libvirt-dbus libguestfs --noconfirm && yes | sudo pacman -Scc +# RUN sudo systemctl enable libvirtd.service +# RUN sudo systemctl enable virtlogd.service + +WORKDIR /home/arch +RUN git clone https://github.com/corpnewt/gibMacOS.git +WORKDIR /home/arch/gibMacOS + +# this command takes a while! +RUN perl -p -i -e 's/print("Succeeded:")/exit()/' ./gibMacOS.command \ + && { python gibMacOS.command -v "${VERSION}" -d || echo Done; } \ + && qemu-img convert ${HOME}/gibMacOS/macOS\ Downloads/publicrelease/*/BaseSystem.dmg -O qcow2 -p -c ${HOME}/OSX-KVM/BaseSystem.img \ + && qemu-img create -f qcow2 ${HOME}/OSX-KVM/mac_hdd_ng.img "${SIZE}" \ + && rm ${HOME}/gibMacOS/macOS\ Downloads/publicrelease/*/BaseSystem.dmg + # > Launch.sh # > Docker-OSX.xml +WORKDIR /home/arch RUN touch Launch.sh \ && chmod +x ./Launch.sh \ && tee -a Launch.sh <<< '#!/bin/sh' \ @@ -154,14 +154,14 @@ RUN touch Launch.sh \ && tee -a Launch.sh <<< '-usb -device usb-kbd -device usb-tablet \' \ && tee -a Launch.sh <<< '-device isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal\(c\)AppleComputerInc \' \ && tee -a Launch.sh <<< '-drive if=pflash,format=raw,readonly,file=/home/arch/OSX-KVM/OVMF_CODE.fd \' \ - && tee -a Launch.sh <<< '-drive if=pflash,format=raw,file=./OVMF_VARS-1024x768.fd \' \ + && tee -a Launch.sh <<< '-drive if=pflash,format=raw,file=/home/arch/OSX-KVM/OVMF_VARS-1024x768.fd \' \ && tee -a Launch.sh <<< '-smbios type=2 \' \ && tee -a Launch.sh <<< '-audiodev ${AUDIO_DRIVER:-alsa},id=hda -device ich9-intel-hda -device hda-duplex,audiodev=hda \' \ && tee -a Launch.sh <<< '-device ich9-ahci,id=sata \' \ && tee -a Launch.sh <<< '-drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2 \' \ && tee -a Launch.sh <<< '-device ide-hd,bus=sata.2,drive=OpenCoreBoot \' \ && tee -a Launch.sh <<< '-device ide-hd,bus=sata.3,drive=InstallMedia \' \ - && tee -a Launch.sh <<< '-drive id=InstallMedia,if=none,file=BaseSystem.img,format=raw \' \ + && 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=/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=52:54:00:09:49:17 \' \