mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-13 22:03:28 +01:00
Container Fails to Open in QNAP 473A #450
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Dems1984 on GitHub (Dec 18, 2022).
DockerOutput.pdf
Sorry that this isn't the best presentation (was unable to get the text direct, hence PDF) and I am very new to containers, Docker. I am using a QNAP 473A NAS running its Container Station app. Unfortunately the OS is proprietary but I think it is a Linux of some sort, possibly Debian. Not sure. Anyway, I have had success with other containers and was able to download this one. I see in the code you are specifying the processor. This NAS is using an AMD Ryzen V1500B as the processor. Do I need to change the processor type in the command line for the qemu and how would I do this? Is the container you made just not compatible with AMD processors, QNAP products (AMD and Intel), and/or QNAP products with AMD chips? Is there something else outside of the processor that would cause the problem? Thank you for your time and help. I hope this is not too much of a bother for you to review and answer. Best.
@Dems1984 commented on GitHub (Jan 5, 2023):
Here is the text from trying to run the container. I ran Docker from the CLI on the QNAP:
ssh-keygen: generating new host keys: RSA ECDSA ED25519
nohup: appending output to 'nohup.out'
++ id -u
++ id -g
++ id -u
++ id -g
++ id -u
++ id -g
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 opendefault':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 opendefault':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 voiceadc'gtk initialization failed
I ran under sudo and normal rights using with and without --privileged
sudo docker run --privileged -it
--device /dev/kvm
-p 50922:10022
-v /tmp/.X11-unix:/tmp/.X11-unix
-e "DISPLAY=${DISPLAY:-:0.0}"
sickcodes/docker-osx:high-sierra
Any ideas why the container will not start? ALSA is complaining there is no sound device but I don't think that's a problem. I also have no /home/aarch directory. Is the container installation suppose to build that? Is it a rights issue? Should the processor be changed in the qemu command from Penryn to something else for the AMD Ryzen V1500B?
Thanks you,
Dems1984
@Dems1984 commented on GitHub (Jan 6, 2023):
Thanks to Dulat at SickCodes Discord chat... Since the NAS has no physical monitor/display attached, it failed to open the container and keep it running. Dulat directed me to the ReadMe.md on the docker-osx and to look at the -vnc option. I removed the display (none) and added the -vnc option to the qemu and was able to get the container to startup, run, and stay runing. Dulat also mentioned xhost+ as the problem/solution. Not sure 100% what that is so can't really comment. xhost has something to do with display in Unix/Linux. Just commenting for those who might know more and understand what to do with that. The 'gtk failed initialization' has to do with a failure of the container not being able to start up/redirect video output to the physical monitor/display. Using the -vnc option allowed the work around and directed display to vnc. I used the following Docker command via SSH and CLI, not Container Station:
docker run -i
--device /dev/kvm
-p 50922:10022
-p 5999:5999
-v /tmp/.X11-unix:/tmp/.X11-unix
-e "DISPLAY=${DISPLAY:-:0.0}"
-e EXTRA="-display none -vnc 0.0.0.0:99"
sickcodes/docker-osx:high-sierra
Be aware the vnc connection in this example is without password protection. See ReadMe.md for details on how to add that to the VNC connection. VNC is through the local NAS IP and port 5999.
@deten commented on GitHub (Mar 10, 2023):
I am working on this on Synology.
Removing the'/tmp/.X11-unix' helped me out here. However I end up getting an error regarding IOUSBHostHIDDevice.
IOUSBHost Interface(0x100000228): matching deferred by IOUSBHostHIDDevice