hello Canhua,<div><br></div><div>I did apt-get bootstrap and installed it.</div><div>And now when i did ::</div><div><br></div><div>lxc-start -n vm0 [-f config file] -d</div><div>and after that i checked </div><div>lxc-info -n vm0</div>
<div>o/p was vm0 is stopped.</div><div><br></div><div>I did the same thing which is given in that site you mentioned.</div><div>Wrote all the things in config file which are given in that site but still it is not working.</div>
<div><br></div><div>These are things i did::</div><div><br></div><div>1) Copied all the contents of config path and only changed ipv4 add and hwd address .</div><div><div> Container with network virtualized using the macvlan device driver</div>
<div>lxc.utsname = vm0</div><div>lxc.network.type = macvlan</div><div>lxc.network.flags = up</div><div>lxc.network.link = eth0</div><div>lxc.network.hwaddr = ** </div><div>lxc.network.ipv4 = **</div><div><br></div><div>lxc.tty = 4</div>
<div>lxc.pts = 1024</div><div>lxc.rootfs = /srv/lxc/vm0/rootfs</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 rwm</div>
</div><div><br></div><div><br></div><div><br></div><div>2) wrote cgroup /cgroup cgroup defaults 0 0 in /etc/fstab</div><div><br></div><div> </div><div>3) mount cgroup</div><div><br></div><div>4) after that i did::</div><div>
<br></div><div>lxc-start -n vm0 -f /var/lib/lxc/vm0/lxc-macvlan.conf -d</div><div><br></div><div>and lxc-info -n vm0 gives "vm0 is stopped"</div><div><br></div><div>4) and lxc-checkconfig gave</div><div>Kernel config /proc/config.gz not found, looking in other places...</div>
<div>Found kernel config file /boot/config-2.6.35-22-generic</div><div>--- Namespaces ---</div><div>Namespaces: enabled</div><div>Utsname namespace: enabled</div><div>Ipc namespace: enabled</div><div>Pid namespace: enabled</div>
<div>User namespace: enabled</div><div>Network namespace: enabled</div><div>Multiple /dev/pts instances: enabled</div><div><br></div><div>--- Control groups ---</div><div>Cgroup: enabled</div><div>Cgroup namespace: enabled</div>
<div>Cgroup device: enabled</div><div>Cgroup sched: enabled</div><div>Cgroup cpu account: enabled</div><div>Cgroup memory controller: enabled</div><div>Cgroup cpuset: enabled</div><div><br></div><div>--- Misc ---</div><div>
Veth pair device: enabled</div><div>Macvlan: enabled</div><div>Vlan: enabled</div><div><br></div><div>Note : Before booting a new kernel, you can check its configuration</div><div>usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig</div>
<div><br></div><div>Please help me out ASAP.</div><div><br></div><div>Regards,</div><div>Nishant.</div><div><br></div><div><br><div class="gmail_quote">On Wed, Aug 24, 2011 at 5:25 PM, Canhua <span dir="ltr"><<a href="mailto:dreameration@gmail.com">dreameration@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">It seems you didn't bootstrap any distribution. Please see<br>
<a href="http://blog.foaa.de/2010/05/lxc-on-debian-squeeze/" target="_blank">http://blog.foaa.de/2010/05/lxc-on-debian-squeeze/</a> , note especially<br>
the use of debootstrap<br>
<div><div></div><div class="h5"><br>
On Wed, Aug 24, 2011 at 5:30 PM, nishant mungse <<a href="mailto:nishantmungse@gmail.com">nishantmungse@gmail.com</a>> wrote:<br>
> Hii all<br>
> I am using lxc for creating containers.<br>
> But when i create lxc container using "lxc-create -n abc" it creates a abc<br>
> container and when i do lxc-info -n abc its show "abc is stopped" and when i<br>
> perform "lxc-start -n abc [-f conf file ]" the terminal hangs and if do<br>
> "lxc-execute -n abc [-f conf file ] \bin\bash" terminal hangs.<br>
> It is not even working for "/usr/bin/lxc-execute -n foo -f<br>
> /usr/share/doc/lxc/examples/lxc-macvlan.conf /bin/bash".<br>
> I am using UBUNTU 10.10.<br>
> Plz help me ASAP.<br>
> Regards,<br>
> Nishant.<br>
</div></div>> ------------------------------------------------------------------------------<br>
> EMC VNX: the world's simplest storage, starting under $10K<br>
> The only unified storage solution that offers unified management<br>
> Up to 160% more powerful than alternatives and 25% more efficient.<br>
> Guaranteed. <a href="http://p.sf.net/sfu/emc-vnx-dev2dev" target="_blank">http://p.sf.net/sfu/emc-vnx-dev2dev</a><br>
> _______________________________________________<br>
> Lxc-users mailing list<br>
> <a href="mailto:Lxc-users@lists.sourceforge.net">Lxc-users@lists.sourceforge.net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/lxc-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/lxc-users</a><br>
><br>
><br>
</blockquote></div><br></div>