(qemu) gtk initialization failed #302

Closed
opened 2025-12-29 00:23:41 +01:00 by adam · 3 comments
Owner

Originally created by @gaetan1903 on GitHub (Jan 12, 2022).

docker run -it \                   
    --device /dev/kvm \
    -p 50922:10022 \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=:0" \
    -e AUDIO_DRIVER=pa,server=unix:/tmp/pulseaudio.socket \
    -v "/run/user/$(id -u)/pulse/native:/tmp/pulseaudio.socket" \
    sickcodes/docker-osx:latest

uname -a
; echo "${DISPLAY}"
; echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs
; grep NAME /etc/os-release
; df -h .
;
; libvirtd --version
; free -mh
; nproc
; egrep -c '(svm|vmx)' /proc/cpuinfo
; ls -lha /dev/kvm
;
; ps aux | grep dockerd
; docker ps | grep osx
; grep "docker|kvm|virt" /etc/group
Linux DevArch 5.15.13-arch1-1 #1 SMP PREEMPT Wed, 05 Jan 2022 16:20:59 +0000 x86_64 GNU/Linux
:0
[sudo] Mot de passe de gaetan1903 :
1
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
/dev/nvme0n1p7 93G 79G 9,3G 90% /home
libvirtd (libvirt) 7.10.0
total utilisé libre partagé tamp/cache disponible
Mem: 15Gi 2,1Gi 9,4Gi 622Mi 4,0Gi 12Gi
Partition d'échange: 3,1Gi 0B 3,1Gi
8
16
crw-rw-rw- 1 root kvm 10, 232 12 janv. 21:55 /dev/kvm
root 1488 0.1 0.5 1903092 82192 ? Ssl 21:52 0:00 /usr/bin/dockerd -H fd://
gaetan1+ 3332 0.0 0.0 6512 2404 pts/1 S+ 21:59 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:992:gaetan1903
libvirt:x:969:gaetan1903
docker:x:966:gaetan1903

log

ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 
nohup: appending output to 'nohup.out'
++ id -u
++ id -g
+ sudo chown 1000:1000 /dev/kvm
++ id -u
++ id -g
+ sudo chown -R 1000:1000 /dev/snd
+ [[ 4 = max ]]
+ [[ 4 = half ]]
++ id -u
++ id -g
+ sudo chown -R 1000:1000 /dev/snd
+ exec qemu-system-x86_64 -m 4000 -cpu Penryn,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+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=on,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 pa,server=unix:/tmp/pulseaudio.socket,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/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 -boot menu=on -vga vmware
Authorization required, but no authorization protocol specified
QEMU 6.2.0 monitor - type 'help' for more information
(qemu) gtk initialization failed
Originally created by @gaetan1903 on GitHub (Jan 12, 2022). ```sh docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=:0" \ -e AUDIO_DRIVER=pa,server=unix:/tmp/pulseaudio.socket \ -v "/run/user/$(id -u)/pulse/native:/tmp/pulseaudio.socket" \ sickcodes/docker-osx:latest ``` uname -a \ ; echo "${DISPLAY}" \ ; echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs \ ; grep NAME /etc/os-release \ ; df -h . \ ; \ ; libvirtd --version \ ; free -mh \ ; nproc \ ; egrep -c '(svm|vmx)' /proc/cpuinfo \ ; ls -lha /dev/kvm \ ; ; ps aux | grep dockerd \ ; docker ps | grep osx \ ; grep "docker\|kvm\|virt" /etc/group Linux DevArch 5.15.13-arch1-1 #1 SMP PREEMPT Wed, 05 Jan 2022 16:20:59 +0000 x86_64 GNU/Linux :0 [sudo] Mot de passe de gaetan1903 : 1 NAME="Arch Linux" PRETTY_NAME="Arch Linux" Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur /dev/nvme0n1p7 93G 79G 9,3G 90% /home libvirtd (libvirt) 7.10.0 total utilisé libre partagé tamp/cache disponible Mem: 15Gi 2,1Gi 9,4Gi 622Mi 4,0Gi 12Gi Partition d'échange: 3,1Gi 0B 3,1Gi 8 16 crw-rw-rw- 1 root kvm 10, 232 12 janv. 21:55 /dev/kvm root 1488 0.1 0.5 1903092 82192 ? Ssl 21:52 0:00 /usr/bin/dockerd -H fd:// gaetan1+ 3332 0.0 0.0 6512 2404 pts/1 S+ 21:59 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:992:gaetan1903 libvirt:x:969:gaetan1903 docker:x:966:gaetan1903 log ``` ssh-keygen: generating new host keys: RSA DSA ECDSA ED25519 nohup: appending output to 'nohup.out' ++ id -u ++ id -g + sudo chown 1000:1000 /dev/kvm ++ id -u ++ id -g + sudo chown -R 1000:1000 /dev/snd + [[ 4 = max ]] + [[ 4 = half ]] ++ id -u ++ id -g + sudo chown -R 1000:1000 /dev/snd + exec qemu-system-x86_64 -m 4000 -cpu Penryn,vendor=GenuineIntel,+invtsc,vmware-cpuid-freq=on,+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=on,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 pa,server=unix:/tmp/pulseaudio.socket,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/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 -boot menu=on -vga vmware Authorization required, but no authorization protocol specified QEMU 6.2.0 monitor - type 'help' for more information (qemu) gtk initialization failed ```
adam closed this issue 2025-12-29 00:23:42 +01:00
Author
Owner

@gaetan1903 commented on GitHub (Jan 12, 2022):

remove t in docker run -it fix the problem

docker run -i \                   
    --device /dev/kvm \
    -p 50922:10022 \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=:0" \
    -e AUDIO_DRIVER=pa,server=unix:/tmp/pulseaudio.socket \
    -v "/run/user/$(id -u)/pulse/native:/tmp/pulseaudio.socket" \
    sickcodes/docker-osx:latest
@gaetan1903 commented on GitHub (Jan 12, 2022): remove t in docker run -it fix the problem ``` docker run -i \ --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=:0" \ -e AUDIO_DRIVER=pa,server=unix:/tmp/pulseaudio.socket \ -v "/run/user/$(id -u)/pulse/native:/tmp/pulseaudio.socket" \ sickcodes/docker-osx:latest ```
Author
Owner

@gaetan1903 commented on GitHub (Jan 12, 2022):

what i do after installing
image

image

@gaetan1903 commented on GitHub (Jan 12, 2022): what i do after installing ![image](https://user-images.githubusercontent.com/43904633/149213248-2d7a46e1-b0cd-445c-85e9-179be0d34381.png) ![image](https://user-images.githubusercontent.com/43904633/149213313-e66256a7-ec44-4487-b2a0-a39d4bdc2170.png)
Author
Owner

@gaetan1903 commented on GitHub (Jan 14, 2022):

I pulled the auto version 👍🏾

@gaetan1903 commented on GitHub (Jan 14, 2022): I pulled the auto version 👍🏾
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#302