[Lxc-users] start lxc container in fedora
Aarti Sawant
aartipsawant10 at gmail.com
Tue Jul 30 09:11:12 UTC 2013
hello,
i am new to lxc, i am trying to set up a container in fedora 19
i created a container by using template
lxc-fedora -n cont1
it create a container in /usr/local/var/lib/lxc/cont1/ and rootfs
/usr/local/lib/lxc/rootfs
it created a config file /usr/local/var/lib/lxc/cont1/config
lxc.rootfs = /usr/local/lib/lxc/rootfs
lxc.utsname = cont1.localdomain
lxc.tty = 4
lxc.pts = 1024
lxc.mount = /usr/local/var/lib/lxc/cont1/fstab
lxc.cap.drop = sys_module mac_admin mac_override sys_time
#lxc.autodev = 1
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.name = eth0
lxc.network.mtu = 1500
lxc.network.ipv4 = 172.26.126.222/24
# When using LXC with apparmor, uncomment the next line to run unconfined:
#lxc.aa_profile = unconfined
#cgroups
lxc.cgroup.devices.deny = a
# /dev/null and zero
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
# consoles
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 4:1 rwm
# /dev/{,u}random
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
# rtc
lxc.cgroup.devices.allow = c 254:0 rm
it created a fstab file /usr/local/var/lib/lxc/cont1/fstab
proc proc proc defaults 0 0
sysfs sys sysfs defaults 0 0
dev dev devpts defaults 0 0
i set up a bridge network
/etc/sysconfig/network-script/ifcfg-br0
DEVICE="br0"
TYPR="Bridge"
USERCTL="no"
BOOTPROTO="dhcp"
ONBOOT="yes"
NM_CONTROLLED="no"
/etc/sysconfig/network-script/ifcfg-p2p1
DEVICE="p2p1"
BOOTPROTO="dhcp"
BRIDGE="br0"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
when i try to start the container i get error
lxc-start 1375175223.541 ERROR lxc_conf - No such file or
directory - failed to mount 'proc' on '/usr/local/lib/lxc/rootfs/proc'
lxc-start 1375175223.551 ERROR lxc_conf - failed to setup the
mounts for 'cont1'
lxc-start 1375175223.551 ERROR lxc_start - failed to setup the
container
lxc-start 1375175223.551 ERROR lxc_sync - invalid sequence number
1. expected 2
lxc-start 1375175223.553 ERROR lxc_start - failed to spawn 'cont1'
has anyone face this same error..
anyone has created container in fedora , please guide me.
Thanks,
Aarti Sawant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130730/d4242dc0/attachment.html>
More information about the lxc-users
mailing list