Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/tmp/.X11-unix/X0 from lxc ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Gregoire
Apprentice
Apprentice


Joined: 15 Apr 2006
Posts: 292

PostPosted: Thu Jan 07, 2010 1:43 pm    Post subject: /tmp/.X11-unix/X0 from lxc ? Reply with quote

Hello,

I use lxc from https://bugs.gentoo.org/show_bug.cgi?id=289897 just with :
Code:

lxc.utsname = lxc
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br1
lxc.network.ipv4 = 192.168.1.7/24
lxc.network.name = eth0
lxc.rootfs.entry = /home/greg/lxc
lxc.mount.entry=/tmp /home/greg/lxc/tmp none rw,bind 0 0
lxc.mount.entry=/home /home none rw,bind 0 0
lxc.mount.entry=/etc /home/greg/lxc/etc none ro,bind 0 0
lxc.mount.entry=/lib /home/greg/lxc/lib none ro,bind 0 0
lxc.mount.entry=/bin /home/greg/lxc/bin none ro,bind 0 0
lxc.mount.entry=/usr /home/greg/lxc/usr none ro,bind 0 0
lxc.mount.entry=/opt /home/greg/lxc/opt none ro,bind 0 0
lxc.mount.entry=/media /home/greg/lxc/media none rw,bind 0 0
lxc.mount.entry=/media2 /home/greg/lxc/media2 none rw,bind 0 0
lxc.mount.entry=/media3 /home/greg/lxc/media3 none rw,bind 0 0
lxc.mount.entry=/media4 /home/greg/lxc/media4 none rw,bind 0 0
lxc.mount.entry=/mnt /home/greg/lxc/mnt none rw,bind 0 0
lxc.mount.entry=/var /home/greg/lxc/var none ro,bind 0 0
lxc.mount.entry=/sbin /home/greg/lxc/sbin none ro,bind 0 0
lxc.mount.entry=/lib64 /home/greg/lxc/lib64 none ro,bind 0 0
lxc.mount = /home/greg/lxc/fstab

And /home/greg/lxc/fstab being :
Code:

none /home/greg/lxc/dev/pts devpts defaults 0 0
none /home/greg/lxc/proc    proc   defaults 0 0
none /home/greg/lxc/sys     sysfs  defaults 0 0
none /home/greg/lxc/dev/shm tmpfs  defaults 0 0

Now I just start it with :
Code:

lxc-execute -n lxc bash

Which gives me :
Code:

xclock
Error: Can't open display: :0.0

Off course I could remove the nolisten tcp option of Xorg and set the DISPLAY (I tested it and it works) but I would like to use the unix socket.

Anyone know how to do it ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum