Headless X300 with AMD APU Ryzen 5 4650g - Ubuntu 20.04 LTS - gtk initialization failed #335

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

Originally created by @krylm on GitHub (Mar 15, 2022).

I've tried every way to solve this issue:

  • docker installed without snap
  • I can run docker without sudo
  • I've fixed permissions for /dev/kvm
  • tried xhost +
  • I've tried to run xterm via X11 forwarding with no problems (even tried to run that docker from that xterm)
  • I've tried latest, monterey, big-sur and catalina images

Any idea what else to try?

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
; egrep "docker|kvm|virt" /etc/group

Linux myserver 5.4.0-104-generic #118-Ubuntu SMP Wed Mar 2 19:02:41 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

localhost:10.0

1

NAME="Ubuntu"
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Filesystem      Size  Used Avail Use% Mounted on
/dev/md2p1      449G   76G  350G  18% /

QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.21)
Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers

libvirtd (libvirt) 6.0.0

              total        used        free      shared  buff/cache   available
Mem:           62Gi       703Mi        61Gi       1.0Mi       885Mi        61Gi
Swap:          15Gi          0B        15Gi

12

12

crw-rw---- 1 root kvm 10, 232 Mar 15 12:46 /dev/kvm

total 8.0K
drwxrwxrwt  2 root root 4.0K Mar 15 12:46 .
drwxrwxrwt 12 root root 4.0K Mar 15 13:01 ..

root        1335  0.1  0.1 3521820 80740 ?       Ssl  12:46   0:01 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
krylm       3184  0.0  0.0   5192   656 pts/0    S+   13:02   0:00 grep dockerd

kvm:x:108:krylm
docker:x:998:krylm
libvirt:x:118:krylm
libvirt-qemu:x:64055:libvirt-qemu
libvirt-dnsmasq:x:119:

Full log for docker run attached docker-myserver.log

Originally created by @krylm on GitHub (Mar 15, 2022). I've tried every way to solve this issue: - docker installed without snap - I can run docker without sudo - I've fixed permissions for /dev/kvm - tried `xhost +` - I've tried to run xterm via X11 forwarding with no problems (even tried to run that docker from that xterm) - I've tried latest, monterey, big-sur and catalina images Any idea what else to try? # 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 \ ; egrep "docker|kvm|virt" /etc/group ``` Linux myserver 5.4.0-104-generic #118-Ubuntu SMP Wed Mar 2 19:02:41 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux localhost:10.0 1 NAME="Ubuntu" PRETTY_NAME="Ubuntu 20.04.4 LTS" VERSION_CODENAME=focal UBUNTU_CODENAME=focal Filesystem Size Used Avail Use% Mounted on /dev/md2p1 449G 76G 350G 18% / QEMU emulator version 4.2.1 (Debian 1:4.2-3ubuntu6.21) Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers libvirtd (libvirt) 6.0.0 total used free shared buff/cache available Mem: 62Gi 703Mi 61Gi 1.0Mi 885Mi 61Gi Swap: 15Gi 0B 15Gi 12 12 crw-rw---- 1 root kvm 10, 232 Mar 15 12:46 /dev/kvm total 8.0K drwxrwxrwt 2 root root 4.0K Mar 15 12:46 . drwxrwxrwt 12 root root 4.0K Mar 15 13:01 .. root 1335 0.1 0.1 3521820 80740 ? Ssl 12:46 0:01 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock krylm 3184 0.0 0.0 5192 656 pts/0 S+ 13:02 0:00 grep dockerd kvm:x:108:krylm docker:x:998:krylm libvirt:x:118:krylm libvirt-qemu:x:64055:libvirt-qemu libvirt-dnsmasq:x:119: ``` Full log for docker run attached [docker-myserver.log](https://github.com/sickcodes/Docker-OSX/files/8253198/docker-myserver.log)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#335