<div dir="ltr">hello,<div><br></div><div>i am new to lxc, i am trying to set up a container in fedora 19</div><div>i created a container by using template</div><div> lxc-fedora -n cont1 </div><div><br></div><div>it create a container in /usr/local/var/lib/lxc/cont1/ and rootfs /usr/local/lib/lxc/rootfs</div>
<div><br></div><div>it created a config file /usr/local/var/lib/lxc/cont1/config</div><div><div>lxc.rootfs = /usr/local/lib/lxc/rootfs</div><div>lxc.utsname = cont1.localdomain</div><div>lxc.tty = 4</div><div>lxc.pts = 1024</div>
<div>lxc.mount = /usr/local/var/lib/lxc/cont1/fstab</div><div>lxc.cap.drop = sys_module mac_admin mac_override sys_time</div><div>#lxc.autodev = 1</div><div>lxc.network.type = veth</div><div>lxc.network.flags = up</div><div>
lxc.network.link = br0</div><div><a href="http://lxc.network.name">lxc.network.name</a> = eth0</div><div>lxc.network.mtu = 1500</div><div>lxc.network.ipv4 = <a href="http://172.26.126.222/24">172.26.126.222/24</a></div><div>
<br></div><div># When using LXC with apparmor, uncomment the next line to run unconfined:</div><div>#lxc.aa_profile = unconfined</div><div><br></div><div>#cgroups</div><div>lxc.cgroup.devices.deny = a</div><div># /dev/null and zero</div>
<div>lxc.cgroup.devices.allow = c 1:3 rwm</div><div>lxc.cgroup.devices.allow = c 1:5 rwm</div><div># consoles</div><div>lxc.cgroup.devices.allow = c 5:1 rwm</div><div>lxc.cgroup.devices.allow = c 5:0 rwm</div><div>lxc.cgroup.devices.allow = c 4:0 rwm</div>
<div>lxc.cgroup.devices.allow = c 4:1 rwm</div><div># /dev/{,u}random</div><div>lxc.cgroup.devices.allow = c 1:9 rwm</div><div>lxc.cgroup.devices.allow = c 1:8 rwm</div><div>lxc.cgroup.devices.allow = c 136:* rwm</div><div>
lxc.cgroup.devices.allow = c 5:2 rwm</div><div># rtc</div><div>lxc.cgroup.devices.allow = c 254:0 rm</div></div><div><br></div><div>it created a fstab file /usr/local/var/lib/lxc/cont1/fstab<br></div><div><div>proc    proc<span class="" style="white-space:pre">     </span>proc<span class="" style="white-space:pre">      </span>defaults 0 0</div>
<div>sysfs<span class="" style="white-space:pre">       </span>sys<span class="" style="white-space:pre">       </span>sysfs<span class="" style="white-space:pre">     </span>defaults 0 0 </div><div>dev<span class="" style="white-space:pre">   </span>dev<span class="" style="white-space:pre">       </span>devpts  defaults 0 0 </div>
</div><div><br></div><div>i set up a bridge network</div><div><br></div><div>/etc/sysconfig/network-script/ifcfg-br0</div><div><div>DEVICE="br0"</div><div>TYPR="Bridge"</div><div>USERCTL="no"</div>
<div>BOOTPROTO="dhcp"</div><div>ONBOOT="yes"</div><div>NM_CONTROLLED="no"</div></div><div><br></div><div>/etc/sysconfig/network-script/ifcfg-p2p1<br></div><div><div>DEVICE="p2p1"</div>
<div>BOOTPROTO="dhcp"</div><div>BRIDGE="br0"</div><div>NM_CONTROLLED="no"</div><div>ONBOOT="yes"</div><div>TYPE="Ethernet"</div></div><div><br></div><div><br></div><div>when i try to start the container i get error</div>
<div><div>      lxc-start 1375175223.541 ERROR    lxc_conf - No such file or directory - failed to mount 'proc' on '/usr/local/lib/lxc/rootfs/proc'</div><div>      lxc-start 1375175223.551 ERROR    lxc_conf - failed to setup the mounts for 'cont1'</div>
<div>      lxc-start 1375175223.551 ERROR    lxc_start - failed to setup the container</div><div>      lxc-start 1375175223.551 ERROR    lxc_sync - invalid sequence number 1. expected 2</div><div>      lxc-start 1375175223.553 ERROR    lxc_start - failed to spawn 'cont1'</div>
</div><div><br></div><div>has anyone face this same error..</div><div>anyone has created container in fedora , please guide me.</div><div><br></div><div>Thanks,</div><div>Aarti Sawant</div><div><br></div></div>