RUN tee -a enable-ssh.sh <<<'[[ -f /etc/ssh/ssh_host_rsa_key ]] || \'
RUN tee -a enable-ssh.sh <<<'[[ -f /etc/ssh/ssh_host_ed25519_key ]] || \'
RUN tee -a enable-ssh.sh <<<'[[ -f /etc/ssh/ssh_host_ed25519_key ]] || \'
RUN tee -a enable-ssh.sh <<<'sudo /usr/bin/ssh-keygen -A'
RUN tee -a enable-ssh.sh <<<'nohup sudo /usr/bin/sshd -D &'
RUN touch enable-ssh.sh\
&& chmod +x ./enable-ssh.sh \
&& tee -a enable-ssh.sh <<<'[[ -f /etc/ssh/ssh_host_rsa_key ]] || \'\
&& tee -a enable-ssh.sh <<<'[[ -f /etc/ssh/ssh_host_ed25519_key ]] || \'\
&& tee -a enable-ssh.sh <<<'[[ -f /etc/ssh/ssh_host_ed25519_key ]] || \'\
&& tee -a enable-ssh.sh <<<'sudo /usr/bin/ssh-keygen -A'\
&& tee -a enable-ssh.sh <<<'nohup sudo /usr/bin/sshd -D &'\
# QEMU CONFIGURATOR
# set optional ram at runtime -e RAM=16
@ -140,29 +140,29 @@ RUN tee -a enable-ssh.sh <<< 'nohup sudo /usr/bin/sshd -D &'
# > Launch.sh
# > Docker-OSX.xml
RUN touch Launch.sh
RUN chmod +x ./Launch.sh
RUN tee -a Launch.sh <<<'qemu-system-x86_64 -enable-kvm -m ${RAM}000 \'
RUN 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 \'
RUN tee -a Launch.sh <<<'-machine q35 \'
RUN tee -a Launch.sh <<<'-smp ${SMP},cores=${CORES} \'
RUN tee -a Launch.sh <<<'-usb -device usb-kbd -device usb-tablet \'
RUN tee -a Launch.sh <<<'-device isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal\(c\)AppleComputerInc \'
RUN tee -a Launch.sh <<<'-drive if=pflash,format=raw,readonly,file=/home/arch/OSX-KVM/OVMF_CODE.fd \'
RUN tee -a Launch.sh <<<'-drive if=pflash,format=raw,file=./OVMF_VARS-1024x768.fd \'
RUN tee -a Launch.sh <<<'-smbios type=2 \'
RUN tee -a Launch.sh <<<'-device ich9-intel-hda -device hda-duplex \'
RUN tee -a Launch.sh <<<'-device ich9-ahci,id=sata \'
RUN tee -a Launch.sh <<<'-drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2 \'
RUN tee -a Launch.sh <<<'-device ide-hd,bus=sata.2,drive=OpenCoreBoot \'
RUN tee -a Launch.sh <<<'-device ide-hd,bus=sata.3,drive=InstallMedia \'
RUN tee -a Launch.sh <<<'-drive id=InstallMedia,if=none,file=BaseSystem.img,format=raw \'
RUN tee -a Launch.sh <<<'-drive id=MacHDD,if=none,file=/home/arch/OSX-KVM/mac_hdd_ng.img,format=qcow2 \'
RUN tee -a Launch.sh <<<'-device ide-hd,bus=sata.4,drive=MacHDD \'
RUN tee -a Launch.sh <<<'-netdev user,id=net0,hostfwd=tcp::${INTERNAL_SSH_PORT}-:22, -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:09:49:17 \'
RUN tee -a Launch.sh <<<'-monitor stdio \'
RUN tee -a Launch.sh <<<'-vga vmware \'
RUN tee -a Launch.sh <<<'${EXTRA}'
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 <<<'-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 <<<'-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 <<<'-smbios type=2 \'\
&& tee -a Launch.sh <<<'-device ich9-intel-hda -device hda-duplex \'\
&& 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=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, -device e1000-82545em,netdev=net0,id=net0,mac=52:54:00:09:49:17 \'\