Issue running Monterey on Ubuntu 20.04 64 bit #366

Open
opened 2025-12-29 06:19:18 +01:00 by adam · 0 comments
Owner

Originally created by @loloof64 on GitHub (May 23, 2022).

I tried to install MacOS Monterey with the following command :


docker run -it \
    --device /dev/kvm \
    -p 50922:10022 \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    -e GENERATE_UNIQUE=true \
    -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \
    sickcodes/docker-osx:monterey

But the qemu instance keeps on rebooting the image, instead of entering main menu (with Disk Utility/ install Mac).

; echo "${DISPLAY}" \
; echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs \
; grep NAME /etc/os-release \
; df -h . \
; qemu-system-x86_64 --version \
; libvirtd --version \
; free -mh \
; nproc \
; egrep -c '(svm|vmx)' /proc/cpuinfo \
; ls -lha /dev/kvm \
; ls -lha /tmp/.X11-unix/ \
; ps aux | grep dockerd \
; docker ps | grep osx \
; grep "docker\|kvm\|virt" /etc/group
Linux bordeaux80 5.13.0-41-generic #46~20.04.1-Ubuntu SMP Wed Apr 20 13:16:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
:0
1
NAME="Ubuntu"
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
/dev/sda6          352G    213G  121G  64% /
QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.21)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers
libvirtd (libvirt) 6.0.0
              total       utilisé      libre     partagé tamp/cache   disponible
Mem:          6,7Gi       2,3Gi       773Mi        75Mi       3,7Gi       4,1Gi
Partition d'échange:       8,0Gi       1,4Gi       6,6Gi
4
4
crw-rw----+ 1 root kvm 10, 232 mai   23 17:03 /dev/kvm
total 20K
drwxrwxrwt  2 root    root    4,0K mai   23 14:06 .
drwxrwxrwt 24 root    root     16K mai   23 16:59 ..
srwxrwxrwx  1 laurent laurent    0 mai   23 14:06 X0
srwxrwxr-x  1 gdm     gdm        0 mai   23 14:05 X1024
srwxrwxr-x  1 gdm     gdm        0 mai   23 14:05 X1025
root        1649  3.5  0.5 1678676 39540 ?       Ssl  14:05   6:23 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
laurent    26207  0.0  0.0  11612  2548 pts/0    S+   17:07   0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox dockerd
kvm:x:108:laurent
docker:x:998:laurent
libvirt:x:135:laurent
libvirt-qemu:x:64055:libvirt-qemu
libvirt-dnsmasq:x:136:

Also followed the tutorial video, and tried to use naked image (with a copy of local image *.img), but the docker instance this time did not boot.

Originally created by @loloof64 on GitHub (May 23, 2022). I tried to install MacOS Monterey with the following command : ``` docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ -e GENERATE_UNIQUE=true \ -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \ sickcodes/docker-osx:monterey ``` But the qemu instance keeps on rebooting the image, instead of entering main menu (with Disk Utility/ install Mac). ```$ uname -a \ ; echo "${DISPLAY}" \ ; echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs \ ; grep NAME /etc/os-release \ ; df -h . \ ; qemu-system-x86_64 --version \ ; libvirtd --version \ ; free -mh \ ; nproc \ ; egrep -c '(svm|vmx)' /proc/cpuinfo \ ; ls -lha /dev/kvm \ ; ls -lha /tmp/.X11-unix/ \ ; ps aux | grep dockerd \ ; docker ps | grep osx \ ; grep "docker\|kvm\|virt" /etc/group Linux bordeaux80 5.13.0-41-generic #46~20.04.1-Ubuntu SMP Wed Apr 20 13:16:21 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux :0 1 NAME="Ubuntu" PRETTY_NAME="Ubuntu 20.04.4 LTS" VERSION_CODENAME=focal UBUNTU_CODENAME=focal Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur /dev/sda6 352G 213G 121G 64% / QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.21) Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers libvirtd (libvirt) 6.0.0 total utilisé libre partagé tamp/cache disponible Mem: 6,7Gi 2,3Gi 773Mi 75Mi 3,7Gi 4,1Gi Partition d'échange: 8,0Gi 1,4Gi 6,6Gi 4 4 crw-rw----+ 1 root kvm 10, 232 mai 23 17:03 /dev/kvm total 20K drwxrwxrwt 2 root root 4,0K mai 23 14:06 . drwxrwxrwt 24 root root 16K mai 23 16:59 .. srwxrwxrwx 1 laurent laurent 0 mai 23 14:06 X0 srwxrwxr-x 1 gdm gdm 0 mai 23 14:05 X1024 srwxrwxr-x 1 gdm gdm 0 mai 23 14:05 X1025 root 1649 3.5 0.5 1678676 39540 ? Ssl 14:05 6:23 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock laurent 26207 0.0 0.0 11612 2548 pts/0 S+ 17:07 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox dockerd kvm:x:108:laurent docker:x:998:laurent libvirt:x:135:laurent libvirt-qemu:x:64055:libvirt-qemu libvirt-dnsmasq:x:136: ``` Also followed the tutorial video, and tried to use naked image (with a copy of local image *.img), but the docker instance this time did not boot.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX-sickcodes#366