Gregoire Apprentice
Joined: 15 Apr 2006 Posts: 292
|
Posted: Thu Jan 07, 2010 1:43 pm Post subject: /tmp/.X11-unix/X0 from lxc ? |
|
|
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 ? |
|