Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
lxc_conf - rootfs specified but no console found [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
OPelerin
Guru
Guru


Joined: 17 Jul 2004
Posts: 354
Location: Belgium

PostPosted: Tue Mar 12, 2013 8:56 am    Post subject: lxc_conf - rootfs specified but no console found [SOLVED] Reply with quote

Quote:

gentoo-linux lxc # cat test1.conf
## network configuration
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br1
lxc.network.name = eth0
lxc.network.ipv4 = 192.168.1.11
lxc.network.ipv4.gateway = 192.168.1.1
lxc.utsname = test1
lxc.pts = 1024
lxc.tty = 1
lxc.rootfs = /etc/lxc/test1/rootfs
lxc.console=/etc/lxc/test1/console
lxc.mount.entry=/lib /etc/lxc/test1/rootfs/lib none ro,bind 0 0
lxc.mount.entry=/usr/ /etc/lxc/test1/rootfs/usr none ro,bind 0 0
lxc.mount.entry=/lib64 /etc/lxc/test1/rootfs/lib64 none ro,bind 0 0
lxc.mount.entry=/etc/ /etc/lxc/test1/rootfs/etc none ro,bind 0 0
lxc.mount.entry=/var/ /etc/lxc/test1/rootfs/var none ro,bind 0 0
#lxc.mount.entry=proc /etc/lxc/test1/rootfs/proc proc nodev,noexec,nosuid 0 0
lxc.mount.entry=/bin/ /etc/lxc/test1/rootfs/bin none ro,bind 0 0
lxc.mount.entry=/sbin/ /etc/lxc/test1/rootfs/sbin none ro,bind 0 0
lxc.mount = /etc/lxc/test1.fstab

gentoo-linux lxc # cat test1.fstab
none /etc/lxc/test1/rootfs/dev/pts devpts defaults 0 0
none /etc/lxc/test1/rootfs/sys sysfs defaults 0 0
none /etc/lxc/test1/rootfs/dev/shm tmpfs defaults 0 0
none /etc/lxc/test1/rootfs/proc proc defaults 0 0
gentoo-linux lxc #


It works beautifully well However, when started in Daemon mode it can't find the console

From the logs

Quote:

lxc-start 1363078245.389 INFO lxc_conf - mount points have been setup
lxc-start 1363078245.389 WARN lxc_conf - rootfs specified but no console found at '/usr/lib/lxc/rootfs/dev/console'
lxc-start 1363078245.389 WARN lxc_conf - failed to mount '/dev/pts/2'->'/usr/lib/lxc/rootfs/dev/tty1'
lxc-start 1363078245.389 INFO lxc_conf - 1 tty(s) has been setup
lxc-start 1363078245.389 DEBUG lxc_conf - created '/usr/lib/lxc/rootfs/lxc_putold' directory
lxc-start 1363078245.389 DEBUG lxc_conf - mountpoint for old rootfs is '/usr/lib/lxc/rootfs/lxc_putold'
lxc-start 1363078245.389 DEBUG lxc_conf - pivot_root syscall to '/usr/lib/lxc/rootfs' successful
lxc-start 1363078245.389 DEBUG lxc_conf - umounted '/lxc_putold/proc/sys/fs/binfmt_misc'


What I'm missing? The docs are'nt very verbose about this issue
_________________
Olivier PELERIN


Last edited by OPelerin on Tue Mar 12, 2013 11:06 am; edited 1 time in total
Back to top
View user's profile Send private message
OPelerin
Guru
Guru


Joined: 17 Jul 2004
Posts: 354
Location: Belgium

PostPosted: Tue Mar 12, 2013 9:45 am    Post subject: Reply with quote

Forgot to create the nodes in the rootfs/dev dir
mknod -m 666 tty c 5 0
mknod -m 600 console c 5 1
mknod -m 666 tty0 c 4 0
mknod -m 666 full c 1 7
mknod -m 600 initctl p
mknod -m 666 ptmx c 5 2

That part is now fixed
Code:

      lxc-start 1363081320.555 INFO     lxc_conf - mount points have been setup
      lxc-start 1363081320.555 INFO     lxc_conf - console has been setup
      lxc-start 1363081320.555 INFO     lxc_conf - 4 tty(s) has been setup
      lxc-start 1363081320.555 DEBUG    lxc_conf - created '/usr/lib/lxc/rootfs/lxc_putold' directory
      lxc-start 1363081320.555 DEBUG    lxc_conf - mountpoint for old rootfs is '/usr/lib/lxc/rootfs/lxc_putold'
      lxc-start 1363081320.555 DEBUG    lxc_conf - pivot_root syscall to '/usr/lib/lxc/rootfs' successful
      lxc-start 1363081320.555 DEBUG    lxc_conf - umounted '/lxc_putold/proc/sys/fs/binfmt_misc'

_________________
Olivier PELERIN
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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