Closed rcg12387 closed 3 years ago
Try changing display to :12.0
-e "DISPLAY=12.0"
Remove sudo from docker run and add yourself to the Docker group
sudo chmod 666 /dev/kvm
Remove opencoreboot from the end
Remove --device /dev/snd
I'm having the exact same issue. Their was an issue posted yesterday that was having the same output too. I've tried everything posted so far and haven't had any luck either.
Try changing display to :12.0
-e "DISPLAY=12.0"
Remove sudo from docker run and add yourself to the Docker group
sudo chmod 666 /dev/kvm
Remove opencoreboot from the end
Remove
--device /dev/snd
@sickcodes Thank you for your reply. I have tried your recommendations but also failed.
$ sudo usermod -aG docker "DL-001"
$ sudo chmod 666 /dev/kvm
$ docker run --device /dev/kvm -e RAM=16 -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=12.0" sickcodes/docker-osx:latest
docker: unknown server OS: .
See 'docker run --help'.
And tried this according to this.
$ sudo chmod 666 /var/run/docker.sock
$ docker run hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
$ docker run --device /dev/kvm -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=12.0" sickcodes/docker-osx:latest
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
Unable to init server: Could not connect: Connection refused
QEMU 5.1.0 monitor - type 'help' for more information
(qemu) ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2660:(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:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2660:(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:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2660:(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:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2660:(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
I just tested using the code from the readme:
docker run \
--device /dev/kvm \
--device /dev/snd \
-e RAM=4 \
-p 50922:10022 \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e "DISPLAY=${DISPLAY:-:0.0}" \
sickcodes/docker-osx:latest
Thank you for your reply. It still fails. I have tried "How to Install macOS VM on Linux" and it seems working. Awesome.
Thank you for your reply. It still fails. I have tried "How to Install macOS VM on Linux" and it seems working. Awesome.
Haha great :P That was the original version!
@sickcodes I have a problem with mouse moving. Two cursors are appeared in the screen (one is of QEMU, another one is of MacOS, I think), and these two are not synchronized. Do you have any suggestion? This issue is not appropriate to this git repo, anyway please help me.
One mouse should be for the host the other mouse should be the macs mouse cursor.
Dont zoom in or out as it will change the cursor calibration
I think in the qemu menu there's options to change the way the mouse works. If the mouse dies, change usb-mouse to usb-tablet in the launcher script, was necessary for me.
If the mouse dies, change usb-mouse to usb-tablet in the launcher script, was necessary for me.
I have used OpenCore-Boot.sh, it is written as -usb -device usb-kbd -device usb-tablet. You mean this don't you?
Hi. I cannot run this docker image though run with allowing SSH into OSX. os: Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-52-generic x86_64) RAM: 64GB cpu model name: Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz count of cpus: 20 remote: using MobaXterm Professional Edition v10.7
Tried this but also failed:
Please help me.