Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
# Title: Docker-OSX (Mac on Docker)
# Author: Sick.Codes https://twitter.com/sickcodes
# Version: 6.0
# Version: 7.0
# License: GPLv3+
# Repository: https://github.com/sickcodes/Docker-OSX
# Website: https://sick.codes
Expand Down Expand Up @@ -202,8 +202,7 @@ RUN touch Launch.sh \
&& tee -a Launch.sh <<< '-cpu ${CPU:-Penryn},${CPUID_FLAGS:-vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check,}${BOOT_ARGS} \' \
&& tee -a Launch.sh <<< '-machine q35,${KVM-"accel=kvm:tcg"} \' \
&& tee -a Launch.sh <<< '-smp ${CPU_STRING:-${SMP:-4},cores=${CORES:-4}} \' \
&& tee -a Launch.sh <<< '-device qemu-xhci,id=xhci \' \
&& tee -a Launch.sh <<< '-device usb-kbd,bus=xhci.0 -device usb-tablet,bus=xhci.0 \' \
&& tee -a Launch.sh <<< '${XHCI_STRING:--usb -device usb-kbd -device usb-tablet} \' \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only worked for me this way

Suggested change
&& tee -a Launch.sh <<< '${XHCI_STRING:--usb -device usb-kbd -device usb-tablet} \' \
&& tee -a Launch.sh <<< '-usb -device usb-kbd -device usb-tablet \' \
Machine information
Linux pop-os 6.12.10-76061203-generic #202412060638~1743109366~22.04~1fce33b SMP PREEMPT_DYNAMIC Thu M x86_64 x86_64 x86_64 GNU/Linux
:1
1
NAME="Pop!_OS"
PRETTY_NAME="Pop!_OS 22.04 LTS"
VERSION_CODENAME=jammy
UBUNTU_CODENAME=jammy
Sist. Arq.      Tam. Usado Disp. Uso% Montado em
/dev/nvme0n1p1  219G   58G  151G  28% /
QEMU emulator version 6.2.0 (Debian 1:6.2+dfsg-2ubuntu6.26)
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
libvirtd (libvirt) 8.0.0
               total       usada       livre    compart.  buff/cache  disponível
Mem.:          7,6Gi       3,3Gi       2,0Gi       356Mi       2,3Gi       3,4Gi
Swap:          7,7Gi       2,6Gi       5,1Gi
4
8
crw-rw----+ 1 root kvm 10, 232 mai 14 10:17 /dev/kvm
total 912K
drwxrwxrwt  2 root       root       4,0K mai 14 08:03 .
drwxrwxrwt 28 root       root       904K mai 14 10:13 ..
srwxrwxrwx  1 jlucfarias jlucfarias    0 mai 14 08:03 X1
root        1422  1.8  0.6 3588068 54256 ?       SNsl 08:01   2:38 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
jlucfar+   31798  0.0  0.0  19036  2396 pts/2    S+   10:20   0:00 grep --color=auto dockerd
Run command
docker run -it --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" -e SHORTNAME=high-sierra  -e RAM=6 docker-osx

&& tee -a Launch.sh <<< '-device isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal\(c\)AppleComputerInc \' \
&& tee -a Launch.sh <<< '-drive if=pflash,format=raw,readonly=on,file=/home/arch/OSX-KVM/OVMF_CODE.fd \' \
&& tee -a Launch.sh <<< '-drive if=pflash,format=raw,file=/home/arch/OSX-KVM/OVMF_VARS-1024x768.fd \' \
Expand Down