New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GTK Initializing failed - can't start #43
Comments
I am quite sure I definitely can get iPhone full pass through to Xcode. Let me try today using virt manager. |
You need to docker pull the latest version
|
And then create the image? |
Message me on Twitter if you want I’ll show you over teamviewer 😂 |
I’m not sure if you get it entirely but docker works on intermediate containers When you It’s stored “in state”. Docker lets you run the second command in the comment above 10 times in a row each one in its own container. The other option is to build it yourself. |
Yes that's what Im trying to do, a custom build with more RAM and USB support for iPhone. |
I mean using those commands it boots and installs Catalina...but progress bar gets stuck halfway on loading into the actual OS once it’s installed...! |
Check disk space usage, any screenshots? |
docker run -e RAM=8 -e EXTRA='-usb -device usb-host,hostbus=1,hostaddr=2' -p 50922:10022 --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx:latest That is the command I ran. I don't think on my end Im doing anything wrong this time. Everything loads and installs fine except when it actually comes time to boot into Catalina. Also each time I plug my phone in, it changes the ID number. It'll still be on Bus 001, but the device ID number always changes. So is there a way to set it permanently to match my docker run command above for the ONE container that I can start with docker start xxxxxxxxx? |
See here, because I created the original container using the argument "-e EXTRA='-usb -device usb-host,hostbus=1,hostaddr=2'", now qemu gives an error: "qemu-system-x86_64: -device usb-host,hostbus=1,hostaddr=2: failed to find host usb device 1:2" when using docker start xxxxxxxx, because the USB device was unplugged and re-plugged and thus changed device ID's. SO there is 2 issues. Number 1: Need to somehow create a rule for a persistent device ID for iPhone/iOS devices and Number 2: using the "-e EXTRA='-usb -device usb-host,hostbus=1,hostaddr=2'" just makes QEMU hang upon boot into macOS (once installed). I've tested this 6 times now, so no one else has to. WITHOUT that command, it boots just fine..but obviously USB/phone still isn't recognized. |
Yeah for one time use you can passthrough a device, it has to be in the same spot later. I think you’ll have better luck using the Virt-manager version outside of docker, you can add and remove usb devices willy nilly. |
Ok and as I'm new and learning, how do I use the virt manager method? --EDIT--: |
Nvm. The VM is installed in virt manager. Haven’t installed Catalina yet but how similar or how well it runs compared to the QEMU method though is another question... |
It should be unnoticeably faster 😂 |
Still same issue. Can't mount iPhone into "VM" |
You cannot use VNC and $DISPLAY at the same time because they are different monitors. You can use the VNC version already here vnc-version/Dockerfile |
The command you mentioned is for X11 display connection 2 different containers. Here are the VNC rules:
|
Why is this issue closed? Its still a problem when using a custom build. |
?? |
Hi Peter. You can simply clone the repo and do the lines at the top of the commented section of the file
Note that whatever label you choose, you need to run that image |
Yes that is what I did: docker build -t docker-osx:latest —build arg SIZE=64G Then: docker run --privileged -CORES=4 -e RAM=8 -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx:latest It says port in use and doesn’t run |
docker build -t docker-osx:latest These are two different Docker images. sickcodes/docker-osx:latest is from hub.docker.com/r/sickcodes/docker-osx. Since you built it, use that in the docker run command instead of the other one. |
this is how i solved GTK initilizing failed on Manjaro, just run below command before starting docker: |
I am trying to run the docker container from a Centos 8 VM created on top of Virtualbox. getting a warning too for CPU flags for EAX not availble. Using the latest osx image from docker repo. |
which distribution is this tested on . I can test on it. I have choice of OS if that resolves the problem. |
Does this show 0 or 1? |
I did check the cpu flags i did not find svm but. vmx. was present in the cpu flags. |
VMX. is present in cpu flags. |
Hi, I pulled the System Info ~ via 🐍 v3.6.9
➜ neofetch
eeeeeeeeeeeeeeeee jovial@xpsl502x
eeeeeeeeeeeeeeeeeeeeeee ---------------
eeeee eeeeeeeeeeee eeeee OS: elementary OS 5.1.7 Hera x86_64
eeee eeeee eee eeee Host: Dell System XPS L502X
eeee eeee eee eeee Kernel: 5.4.0-70-generic
eee eee eee eee Uptime: 2 hours, 41 mins
eee eee eee eee Packages: 2080
ee eee eeee eeee Shell: bash 4.4.20
ee eee eeeee eeeeee Resolution: 1366x768
ee eee eeeee eeeee ee DE: Pantheon
eee eeee eeeeee eeeee eee WM: Mutter(Gala)
eee eeeeeeeeee eeeeee eee Terminal: io.elementary.t
eeeeeeeeeeeeeeeeeeeeeeee eeeee CPU: Intel i5-2410M (4) @ 2.900GHz
eeeeeeee eeeeeeeeeeee eeee GPU: NVIDIA GeForce GT 525M
eeeee eeeee GPU: Intel 2nd Generation Core Processor Family
eeeeeee eeeeeee Memory: 2358MiB / 11874MiB
eeeeeeeeeeeeeeeee
Misc ~ via 🐍 v3.6.9
➜ docker -v
Docker version 19.03.13, build cd8016b6bc
~ via 🐍 v3.6.9
➜ groups jovial
jovial : jovial adm cdrom sudo dip plugdev lpadmin sambashare docker kvm libvirt
~ via 🐍 v3.6.9
➜ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
~ via 🐍 v3.6.9
➜ kvm --version
QEMU emulator version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.36)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
~ via 🐍 v3.6.9
➜ egrep -c '(svm|vmx)' /proc/cpuinfo
4
~ via 🐍 v3.6.9
➜ xhost
access control enabled, only authorized clients can connect
SI:localuser:jovial
~ via 🐍 v3.6.9
➜ echo $DISPLAY
:0
~ via 🐍 v3.6.9
➜ cat /sys/module/kvm/parameters/ignore_msrs
Y
~ via 🐍 v3.6.9
➜ tail /sys/module/kvm_intel/parameters/nested
Y I think my system is capable of running MacOS docker images. But when I run the command, I'm 🤕. ~ via 🐍 v3.6.9
➜ docker run -it --name bigsur --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" sickcodes/docker-osx
touch: cannot touch '': No such file or directory
chown: cannot access '': No such file or directory
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
++ id -u
++ id -g
+ sudo chown 1000:1000 /dev/kvm
nohup: appending output to 'nohup.out'
++ id -u
++ id -g
+ sudo chown -R 1000:1000 /dev/snd
+ [[ 3 = max ]]
+ [[ 3 = half ]]
++ id -u
++ id -g
+ sudo chown -R 1000:1000 /dev/snd
+ exec qemu-system-x86_64 -m 3000 -cpu Penryn,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check -machine q35,accel=kvm:tcg -smp 4,cores=4 -usb -device usb-kbd -device usb-tablet -device 'isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc' -drive if=pflash,format=raw,readonly,file=/home/arch/OSX-KVM/OVMF_CODE.fd -drive if=pflash,format=raw,file=/home/arch/OSX-KVM/OVMF_VARS-1024x768.fd -smbios type=2 -audiodev alsa,id=hda -device ich9-intel-hda -device hda-duplex,audiodev=hda -device ich9-ahci,id=sata -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2 -device ide-hd,bus=sata.2,drive=OpenCoreBoot -device ide-hd,bus=sata.3,drive=InstallMedia -drive id=InstallMedia,if=none,file=/home/arch/OSX-KVM/BaseSystem.img,format=qcow2 -drive id=MacHDD,if=none,file=/home/arch/OSX-KVM/mac_hdd_ng.img,format=qcow2 -device ide-hd,bus=sata.4,drive=MacHDD -netdev user,id=net0,hostfwd=tcp::10022-:22,hostfwd=tcp::5900-:5900, -device vmxnet3,netdev=net0,id=net0,mac=52:54:00:09:49:17 -monitor stdio -vga vmware
Unable to init server: Could not connect: Connection refused
QEMU 5.2.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 Ignoring ALSA errors, the other two that stand out are: |
Having the same issue.
As GTK initialization failed.
…On Sun, Apr 11, 2021 at 6:24 AM Jovial Joe Jayarson < ***@***.***> wrote:
Hi, I pulled the big sur docker image: docker pull
sickcodes/docker-osx:big-sur. Then according the initial setup
<https://github.com/sickcodes/Docker-OSX#initial-setup> I install the
dependencies. Rebooted.
*System Info*
~ via 🐍 v3.6.9
➜ neofetch
eeeeeeeeeeeeeeeee ***@***.***
eeeeeeeeeeeeeeeeeeeeeee ---------------
eeeee eeeeeeeeeeee eeeee OS: elementary OS 5.1.7 Hera x86_64
eeee eeeee eee eeee Host: Dell System XPS L502X
eeee eeee eee eeee Kernel: 5.4.0-70-generic
eee eee eee eee Uptime: 2 hours, 41 mins
eee eee eee eee Packages: 2080
ee eee eeee eeee Shell: bash 4.4.20
ee eee eeeee eeeeee Resolution: 1366x768
ee eee eeeee eeeee ee DE: Pantheon
eee eeee eeeeee eeeee eee WM: Mutter(Gala)
eee eeeeeeeeee eeeeee eee Terminal: io.elementary.t
eeeeeeeeeeeeeeeeeeeeeeee eeeee CPU: Intel i5-2410M (4) @ 2.900GHz
eeeeeeee eeeeeeeeeeee eeee GPU: NVIDIA GeForce GT 525M
eeeee eeeee GPU: Intel 2nd Generation Core Processor Family
eeeeeee eeeeeee Memory: 2358MiB / 11874MiB
eeeeeeeeeeeeeeeee
*Misc*
~ via 🐍 v3.6.9
➜ docker -v
Docker version 19.03.13, build cd8016b6bc
~ via 🐍 v3.6.9
➜ groups jovial
jovial : jovial adm cdrom sudo dip plugdev lpadmin sambashare docker kvm libvirt
~ via 🐍 v3.6.9
➜ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
~ via 🐍 v3.6.9
➜ kvm --version
QEMU emulator version 2.11.1(Debian 1:2.11+dfsg-1ubuntu7.36)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
~ via 🐍 v3.6.9
➜ egrep -c '(svm|vmx)' /proc/cpuinfo
4
~ via 🐍 v3.6.9
➜ xhost
access control enabled, only authorized clients can connect
SI:localuser:jovial
~ via 🐍 v3.6.9
➜ echo $DISPLAY
:0
~ via 🐍 v3.6.9
➜ cat /sys/module/kvm/parameters/ignore_msrs
Y
~ via 🐍 v3.6.9
➜ tail /sys/module/kvm_intel/parameters/nested
Y
I think my system is capable of running MacOS docker images. But when I
run the command, I'm 🤕.
~ via 🐍 v3.6.9
➜ docker run -it --name bigsur --device /dev/kvm -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" sickcodes/docker-osx
touch: cannot touch '': No such file or directory
chown: cannot access '': No such file or directory
ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519
++ id -u
++ id -g
+ sudo chown 1000:1000 /dev/kvm
nohup: appending output to 'nohup.out'
++ id -u
++ id -g
+ sudo chown -R 1000:1000 /dev/snd
+ [[ 3 = max ]]
+ [[ 3 = half ]]
++ id -u
++ id -g
+ sudo chown -R 1000:1000 /dev/snd
+ exec qemu-system-x86_64 -m 3000 -cpu Penryn,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+pcid,+ssse3,+sse4.2,+popcnt,+avx,+aes,+xsave,+xsaveopt,check -machine q35,accel=kvm:tcg -smp 4,cores=4 -usb -device usb-kbd -device usb-tablet -device 'isa-applesmc,osk=ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc' -drive if=pflash,format=raw,readonly,file=/home/arch/OSX-KVM/OVMF_CODE.fd -drive if=pflash,format=raw,file=/home/arch/OSX-KVM/OVMF_VARS-1024x768.fd -smbios type=2 -audiodev alsa,id=hda -device ich9-intel-hda -device hda-duplex,audiodev=hda -device ich9-ahci,id=sata -drive id=OpenCoreBoot,if=none,snapshot=on,format=qcow2,file=/home/arch/OSX-KVM/OpenCore-Catalina/OpenCore.qcow2 -device ide-hd,bus=sata.2,drive=OpenCoreBoot -device ide-hd,bus=sata.3,drive=InstallMedia -drive id=InstallMedia,if=none,file=/home/arch/OSX-KVM/BaseSystem.img,format=qcow2 -drive id=MacHDD,if=none,file=/home/arch/OSX-KVM/mac_hdd_ng.img,format=qcow2 -device ide-hd,bus=sata.4,drive=MacHDD -netdev user,id=net0,hostfwd=tcp::10022-:22,hostfwd=tcp::5900-:5900, -device vmxnet3,netdev=net0,id=net0,mac=52:54:00:09:49:17 -monitor stdio -vga vmware
Unable to init server: Could not connect: Connection refused
QEMU 5.2.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
Ignoring ALSA errors, the other two that stand out are: Unable to init
server: Could not connect: Connection refused and gtk initialization
failed. There are a lot of issues raised
<https://github.com/sickcodes/Docker-OSX/issues?q=is%3Aissue+is%3Aclosed+gtk>
around these, but they didn't solve mine. I might me missing some small
detail here can anybody help me, please?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADSUUC7VZWG3LY6RB5CZ763TIGBFFANCNFSM4N55BVKQ>
.
|
chmod 666 /dev/kvm Or xhost + Or sudo systemctl stop docker
sudo dockerd
docker run.... |
~ via 🐍 v3.6.9 ⏱️ 5s
➜ sudo chmod 666 /dev/kvm
[sudo] password for jovial:
~ via 🐍 v3.6.9
➜ ls -l /dev/kvm
crw-rw-rw- 1 root kvm 10, 232 Apr 12 14:14 /dev/kvm Nope that didn't work. Same error log. ~ via 🐍 v3.6.9
➜ xhost
access control disabled, clients can connect from any host
SI:localuser:jovial As this #213 (comment) says Oh forgive me, I should have mention this earlier. Docker is snapped on my system. ~ via 🐍 v3.6.9
➜ snap list
Name Version Rev Tracking Publisher Notes
...
docker 19.03.13 796 latest/stable canonical* -
... Which is why I guess I do not have ~ via 🐍 v3.6.9
➜ sudo systemctl stop docker
Failed to stop docker.service: Unit docker.service not loaded.
~ via 🐍 v3.6.9
➜ sudo systemctl enable docker.service
Failed to enable unit: Unit file docker.service does not exist.
~ via 🐍 v3.6.9
➜ dockerd --help
Command 'dockerd' not found, but can be installed with:
sudo apt install docker.io I really do not want to use |
I guess we have the same problem. But I have installed docker. |
@sickcodes I had the same exact error as @joe733, but I noticed that
So did I when I had the error. So, I uninstalled the snap docker and installed with the PPA one, and now it works fine. Might be worth mentioning in the documentation that using docker snap doesn't work. |
Good idea. I'll add the incompatibility about Snap. Or at least the non-out-of-boxness |
So I created a docker image using the guide.
I run the command: docker run --privileged -v /tmp/.X11-unix:/tmp/.X11-unix docker-osx:latest
It recognises docker-osx:latest. It does its usual start up command sequence, then gets to the end and says: gtk initialization failed.
IF I start docker-osx normally without that tag, using the: docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx command, it runs. But I want usb support so yeah.
The text was updated successfully, but these errors were encountered: