Offline mode; launching docs; immediate crash #436

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

Originally created by @bphd on GitHub (Dec 8, 2022).

OS related issued, please help us identify the issue by posting the output of this

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

I have three problems:

* Line 7/13-15:

Each launch of a new container needs downloading something -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \ Cloning into 'OpenCorePkg'... Receiving objects: 100% (1668/1668), 14.62 MiB | 3.28 MiB/s, done. and I'm very limited in bandwidth. I would like to be able to create full offline a container. Is there a modification of the command line to perform that? Please integrate it to Docker-OSX ReadMe for people to use it offline if needed

* Line 10:

This command # docker build -t docker-osx --build-arg SHORTNAME=ventura . is not explained in the ReadMe, I would like it to be explained in the ReadMe

* Line 17-116:

Bunch of errors encountered in many other issues over here, always needing a different solution, so I'm here to get mine. But I would love in the future that as many errors as possible to be explained It needs to be in the whitelist of the graphic server..., corrected To whitelist it, you need to perform that command... and integrated (a PR instead of just a reply in some issues) into the troubleshooting ReadMe for people to be able to debug rapidly themselves without needing to wait for someone to reply on an issue (I salutate the already extensive troobleshooting part who help even in the early stages of containerization, thats why I would like it to continue in that way)


$ sudo -u \#1000 podman 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:ventura

# docker build -t docker-osx --build-arg SHORTNAME=ventura .


Cloning into 'OpenCorePkg'...

Receiving objects: 100% (1668/1668), 14.62 MiB | 3.28 MiB/s, done.

supermin: warning: /usr/bin/augenrules: Permission denied (ignored)
Some distro files are not public readable, so supermin cannot copy them
into the appliance.  This is a problem with your Linux distro.  Please ask
your distro to stop doing pointless security by obscurity.
You can ignore these warnings.  You *do not* need to use sudo.
supermin: warning: /usr/lib/dbus-1.0/dbus-daemon-launch-helper: Permission denied (ignored)
supermin: warning: /usr/lib/ssh/ssh-keysign: Permission denied (ignored)
supermin: warning: /usr/share/factory/etc/crypttab: Permission denied (ignored)
supermin: warning: /usr/share/factory/etc/gshadow: Permission denied (ignored)
supermin: warning: /usr/share/factory/etc/shadow: Permission denied (ignored)

\x1bc\x1b[?7l\x1b[2J[    0.601498] usbserial: usb_serial_init - registering generic driver failed
[    0.603496] usbserial: usb_serial_init - returning with error -19

\x1b[0;1;31m/usr/lib/tmpfiles.d/dbus.conf:13: Failed to resolve user 'dbus': No such process\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:12: Failed to resolve group 'audio'.\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:13: Failed to resolve group 'audio'.\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:14: Failed to resolve group 'disk'.\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:17: Failed to resolve group 'kvm'.\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:18: Failed to resolve group 'kvm'.\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:19: Failed to resolve group 'kvm'.\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/systemd-network.conf:10: Failed to resolve user 'systemd-network': No such process\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/systemd-network.conf:11: Failed to resolve user 'systemd-network': No such process\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/systemd-network.conf:12: Failed to resolve user 'systemd-network': No such process\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/systemd-network.conf:13: Failed to resolve user 'systemd-network': No such process\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:11: Failed to resolve group 'utmp'.\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:22: Failed to resolve group 'systemd-journal'.\x1b[0m
\x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:23: Failed to resolve group 'systemd-journal'.\x1b[0m
\x1b[0;1;38;5;185mFailed to parse ACL "d:group::r-x,d:group:adm:r-x,d:group:wheel:r-x,group::r-x,group:adm:r-x,group:wheel:r-x": Invalid argument. Ignoring\x1b[0m
\x1b[0;1;38;5;185mFailed to parse ACL "d:group:adm:r-x,d:group:wheel:r-x,group:adm:r-x,group:wheel:r-x": Invalid argument. Ignoring\x1b[0m
\x1b[0;1;38;5;185mFailed to parse ACL "group:adm:r--,group:wheel:r--": Invalid argument. Ignoring\x1b[0m
\x1b[0;1;38;5;185mFailed to parse ACL "d:group::r-x,d:group:adm:r-x,d:group:wheel:r-x,group::r-x,group:adm:r-x,group:wheel:r-x": Invalid argument. Ignoring\x1b[0m
\x1b[0;1;38;5;185mFailed to parse ACL "d:group:adm:r-x,d:group:wheel:r-x,group:adm:r-x,group:wheel:r-x": Invalid argument. Ignoring\x1b[0m
\x1b[0;1;38;5;185mFailed to parse ACL "group:adm:r--,group:wheel:r--": Invalid argument. Ignoring\x1b[0m

/init: line 111: echo: write error: Invalid argument

/init: line 111: echo: write error: Invalid argument

mdadm: No arrays found in config file or automatically

/init: line 150: lvmetad: command not found

mdadm: No arrays found in config file or automatically

Failed to determine unit we run in, ignoring: No data available

No filesystem is currently mounted on /sys/fs/cgroup.
Failed to determine unit we run in, ignoring: No data available

mkfs.fat: Warning: lowercase labels might not work properly on some systems

QEMU 7.1.0 monitor - type 'help' for more information
(qemu) ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize DAC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
audio: Failed to create voice `dac'
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default
alsa: Could not initialize ADC
alsa: Failed to open `default':
alsa: Reason: No such file or directory
audio: Failed to create voice `adc'
gtk initialization failed
Originally created by @bphd on GitHub (Dec 8, 2022). > # OS related issued, please help us identify the issue by posting the output of this > 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 I have three problems: # * Line *7/13-15*: Each launch of a new container needs downloading something ` -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \` `Cloning into 'OpenCorePkg'...` `Receiving objects: 100% (1668/1668), 14.62 MiB | 3.28 MiB/s, done.` and I'm very limited in bandwidth. I would like to be able to create full offline a container. Is there a modification of the command line to perform that? Please *integrate it to Docker-OSX ReadMe* for people to use it offline if needed # * Line *10*: This command `# docker build -t docker-osx --build-arg SHORTNAME=ventura .` is not explained in the ReadMe, I would like it to be explained *in the ReadMe* # * Line *17-116*: Bunch of errors encountered in many other issues over here, always needing a different solution, so I'm here to get mine. But I would love in the future that as *many errors as possible to be explained `It needs to be in the whitelist of the graphic server...`, corrected `To whitelist it, you need to perform that command...` and integrated (a PR instead of just a reply in some issues) into the troubleshooting ReadMe* for people to be able to debug rapidly themselves without needing to wait for someone to reply on an issue (I salutate the already extensive troobleshooting part who help even in the early stages of containerization, thats why I would like it to continue in that way) --- ```cpp $ sudo -u \#1000 podman 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:ventura # docker build -t docker-osx --build-arg SHORTNAME=ventura . Cloning into 'OpenCorePkg'... Receiving objects: 100% (1668/1668), 14.62 MiB | 3.28 MiB/s, done. supermin: warning: /usr/bin/augenrules: Permission denied (ignored) Some distro files are not public readable, so supermin cannot copy them into the appliance. This is a problem with your Linux distro. Please ask your distro to stop doing pointless security by obscurity. You can ignore these warnings. You *do not* need to use sudo. supermin: warning: /usr/lib/dbus-1.0/dbus-daemon-launch-helper: Permission denied (ignored) supermin: warning: /usr/lib/ssh/ssh-keysign: Permission denied (ignored) supermin: warning: /usr/share/factory/etc/crypttab: Permission denied (ignored) supermin: warning: /usr/share/factory/etc/gshadow: Permission denied (ignored) supermin: warning: /usr/share/factory/etc/shadow: Permission denied (ignored) \x1bc\x1b[?7l\x1b[2J[ 0.601498] usbserial: usb_serial_init - registering generic driver failed [ 0.603496] usbserial: usb_serial_init - returning with error -19 \x1b[0;1;31m/usr/lib/tmpfiles.d/dbus.conf:13: Failed to resolve user 'dbus': No such process\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:12: Failed to resolve group 'audio'.\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:13: Failed to resolve group 'audio'.\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:14: Failed to resolve group 'disk'.\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:17: Failed to resolve group 'kvm'.\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:18: Failed to resolve group 'kvm'.\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/static-nodes-permissions.conf:19: Failed to resolve group 'kvm'.\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/systemd-network.conf:10: Failed to resolve user 'systemd-network': No such process\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/systemd-network.conf:11: Failed to resolve user 'systemd-network': No such process\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/systemd-network.conf:12: Failed to resolve user 'systemd-network': No such process\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/systemd-network.conf:13: Failed to resolve user 'systemd-network': No such process\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:11: Failed to resolve group 'utmp'.\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:22: Failed to resolve group 'systemd-journal'.\x1b[0m \x1b[0;1;31m/usr/lib/tmpfiles.d/systemd.conf:23: Failed to resolve group 'systemd-journal'.\x1b[0m \x1b[0;1;38;5;185mFailed to parse ACL "d:group::r-x,d:group:adm:r-x,d:group:wheel:r-x,group::r-x,group:adm:r-x,group:wheel:r-x": Invalid argument. Ignoring\x1b[0m \x1b[0;1;38;5;185mFailed to parse ACL "d:group:adm:r-x,d:group:wheel:r-x,group:adm:r-x,group:wheel:r-x": Invalid argument. Ignoring\x1b[0m \x1b[0;1;38;5;185mFailed to parse ACL "group:adm:r--,group:wheel:r--": Invalid argument. Ignoring\x1b[0m \x1b[0;1;38;5;185mFailed to parse ACL "d:group::r-x,d:group:adm:r-x,d:group:wheel:r-x,group::r-x,group:adm:r-x,group:wheel:r-x": Invalid argument. Ignoring\x1b[0m \x1b[0;1;38;5;185mFailed to parse ACL "d:group:adm:r-x,d:group:wheel:r-x,group:adm:r-x,group:wheel:r-x": Invalid argument. Ignoring\x1b[0m \x1b[0;1;38;5;185mFailed to parse ACL "group:adm:r--,group:wheel:r--": Invalid argument. Ignoring\x1b[0m /init: line 111: echo: write error: Invalid argument /init: line 111: echo: write error: Invalid argument mdadm: No arrays found in config file or automatically /init: line 150: lvmetad: command not found mdadm: No arrays found in config file or automatically Failed to determine unit we run in, ignoring: No data available No filesystem is currently mounted on /sys/fs/cgroup. Failed to determine unit we run in, ignoring: No data available mkfs.fat: Warning: lowercase labels might not work properly on some systems QEMU 7.1.0 monitor - type 'help' for more information (qemu) ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default alsa: Could not initialize DAC alsa: Failed to open `default': alsa: Reason: No such file or directory ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default alsa: Could not initialize DAC alsa: Failed to open `default': alsa: Reason: No such file or directory audio: Failed to create voice `dac' ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default alsa: Could not initialize ADC alsa: Failed to open `default': alsa: Reason: No such file or directory ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2666:(snd_pcm_open_noupdate) Unknown PCM default alsa: Could not initialize ADC alsa: Failed to open `default': alsa: Reason: No such file or directory audio: Failed to create voice `adc' gtk initialization failed ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#436