[lxc-users] Firefox crashes on startup
david.trenton at clovermail.net
david.trenton at clovermail.net
Fri Jun 29 14:16:20 UTC 2018
I am running a Slackware 14.2 guest in an LXC container on a Slackware
14.2 host. I want to run Firefox from
within LXC. However, it often crashes on startup. This is the error
message that it displays in the console:
X_ShmPutImage: BadValue (integer parameter out of range for
operation); 2 requests ago: file
/tmp/firefox-52.9.0esr/toolkit/xre/nsX11ErrorHandler.cpp
This is my configuration:
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = lxcbr
lxc.network.name = eth0
lxc.network.hwaddr = 00:aa:bb:cc:dd:ee
lxc.mount.auto = proc:mixed sys:ro cgroup
lxc.rootfs = /home/user/.local/share/lxc/fox.default/rootfs
lxc.rootfs.backend = dir
lxc.utsname = fox.default
lxc.mount = /home/user/.local/share/lxc/fox.default/fstab
lxc.mount.entry = /dev/net/tun dev/net/tun none bind,create=file
lxc.mount.entry = /dev/dri dev/dri none bind,optional,create=dir
lxc.mount.entry = /dev/snd dev/snd none bind,optional,create=dir
lxc.mount.entry = /dev/shm dev/shm none bind,optional,create=dir
lxc.mount.entry = /tmp/.X11-unix tmp/.X11-unix none bind,optional,create=dir
lxc.tty = 4
lxc.pts = 1024
# deny everything by default
lxc.cgroup.devices.deny = a
# dev/net/tun
lxc.cgroup.devices.allow = c 10:200 rwm
# /dev/null and zero
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
# consoles
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 4:1 rwm
# /dev/{,u}random
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
# rtc
lxc.cgroup.devices.allow = c 254:0 rwm
lxc.cap.drop = sys_module mknod mac_override mac_admin sys_time
setfcap setpcap
# map uid/gid
lxc.id_map = u 0 100000 1000
lxc.id_map = g 0 100000 1000
# preserve uid/gid of user whose x server will be used
lxc.id_map = u 1000 1000 1
lxc.id_map = g 1000 1000 1
# map remaining uid/gid
lxc.id_map = u 1001 101001 64535
lxc.id_map = g 1001 101001 64535
----------
And my fstab:
lxcpts /home/user/.local/share/lxc/fox.default/rootfs/dev/pts devpts
defaults,newinstance 0 0
none /run tmpfs defaults,mode=0755 0 0
----------
Is there anything wrong with my configuration or is my container
missing software?
-------------------------------------------------
ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!
More information about the lxc-users
mailing list