<font class="Apple-style-span" face="arial, helvetica, sans-serif">Hi,</font><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">I am trying to get Fedora 12 container on Ubuntu 10.4, but I have several problems. I installed new rootfs using febootstrap , and configured it, and created new fstab (guided form <a href="http://blog.bodhizazen.net/linux/lxc-configure-fedora-containers">http://blog.bodhizazen.net/linux/lxc-configure-fedora-containers</a> ) :</font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif">-----------------------------------------------------------------------------------------------</font></div><div><span class="Apple-style-span" style="font-size: 11px; line-height: 16px; "><font class="Apple-style-span" face="arial, helvetica, sans-serif">none /lxc/rootfs.fedora/dev/pts devpts defaults 0 0<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
none /lxc/rootfs.fedora/proc proc defaults 0 0<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">none /lxc/rootfs.fedora/sys sysfs defaults 0 0<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
#none /lxc/rootfs.fedora/var/lock tmpfs defaults 0 0<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">#none /lxc/rootfs.fedora/var/run tmpfs defaults 0 0<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
/etc/resolv.conf /lxc/rootfs.fedora/etc/resolv.conf none bind 0 0</font></span></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 11px; line-height: 16px;"><font class="Apple-style-span" face="arial, helvetica, sans-serif">----------------------------------------------------------------------<br>
</font></span></font><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">My lxc conf. file look like this :</font></div></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif">----------------------------------------------------------------------------------------------------</font></div>
<div><span class="Apple-style-span" style="font-size: 11px; line-height: 16px; "><font class="Apple-style-span" face="arial, helvetica, sans-serif">lxc.utsname = fedora<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
lxc.tty = 4<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">lxc.network.type = veth<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
lxc.network.flags = up<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">lxc.network.link = br-node0<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
<a href="http://lxc.network.name">lxc.network.name</a> = eth0<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
lxc.network.mtu = 1500<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">lxc.network.ipv4 = <a href="http://10.0.0.1/24">10.0.0.1/24</a><br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
lxc.rootfs = /lxc/rootfs.fedora<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">lxc.mount = /lxc/fstab.fedora<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
lxc.cgroup.devices.deny = a<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "># /dev/null and zero<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
lxc.cgroup.devices.allow = c 1:3 rwm<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">lxc.cgroup.devices.allow = c 1:5 rwm<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
# consoles<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">lxc.cgroup.devices.allow = c 5:1 rwm<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
lxc.cgroup.devices.allow = c 5:0 rwm<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">lxc.cgroup.devices.allow = c 4:0 rwm<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
lxc.cgroup.devices.allow = c 4:1 rwm<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "># /dev/{,u}random<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
lxc.cgroup.devices.allow = c 1:9 rwm<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">lxc.cgroup.devices.allow = c 1:8 rwm<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
# /dev/pts/* - pts namespaces are "coming soon"<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
lxc.cgroup.devices.allow = c 136:* rwm<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">lxc.cgroup.devices.allow = c 5:2 rwm<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
# rtc<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">lxc.cgroup.devices.allow = c 254:0 rwm</font></span></div>
<div><span class="Apple-style-span" style="font-size: 11px; line-height: 16px; "><font class="Apple-style-span" face="arial, helvetica, sans-serif">---------------------------------------------------------------------------------------------------------------</font></span></div>
<div><span class="Apple-style-span" style="line-height: 16px;"><font class="Apple-style-span" face="arial, helvetica, sans-serif">When I start the machine with this setup I get this error:</font></span></div><div><span class="Apple-style-span" style="line-height: 16px;"><span class="Apple-style-span" style="line-height: 19px; "><span class="Apple-style-span" style="font-size: x-small;"><font class="Apple-style-span" face="arial, helvetica, sans-serif">==================================================<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
lxc-start: Device or resource busy – failed to mount ‘none’ on ‘/lxc/rootfs.fedora/dev/pts’<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
lxc-start: failed to setup the mounts for ‘fedora′<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">lxc-start: failed to setup the container<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
====================================================</font></span></span></span></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-style-span" style="line-height: 19px;">So I remove the <span class="Apple-style-span" style="line-height: 16px; font-size: 11px; ">lxc.mount </span>part from the conf. file and it starts normally but a get error when I make ssh connection (PTY allocation request failed on channel 0) so I assume that has something to do with wrong mount on /dev/pts. I tried to mount it manually via chroot but then the booting slows down and services like mysqld and httpd can't be started. So any suggestions how to solve this? </span></font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-style-span" style="line-height: 19px;"><br></span></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-style-span" style="line-height: 19px;">Thank you very much in advance,</span></font></div>
<div><font class="Apple-style-span" face="arial, helvetica, sans-serif"><span class="Apple-style-span" style="line-height: 19px;">Nikola</span></font></div>