Hi Nishant, your rootfs is missing <rootfs>/dev/pts. I use normaly following script: (replace <rootfs> with your location of the container rootfs)
DEV=<rootfs>/dev rm ${DEV}/null rm ${DEV}/zero mknod -m 666 ${DEV}/null c 1 3 mknod -m 666 ${DEV}/zero c 1 5 mknod -m 666 ${DEV}/random c 1 8 mknod -m 666 ${DEV}/urandom c 1 9 mkdir -m 755 ${DEV}/pts mkdir -m 1777 ${DEV}/shm mknod -m 666 ${DEV}/tty c 5 0 mknod -m 666 ${DEV}/tty0 c 4 0 mknod -m 666 ${DEV}/tty1 c 4 1 mknod -m 666 ${DEV}/full c 1 7 mknod -m 600 ${DEV}/initctl p mknod -m 666 ${DEV}/ptmx c 5 2 With best regards Joerg Am Montag, 29. August 2011, 13:22:28 schrieb nishant mungse: > hii > > > > The entry in host's fstab contains > none /cgroup cgroup defaults 0 0s > > > And i have deleted all entries from guest's fstab file > > The guest container is created abut when i exe it it shows following error > > > lxc-execute -n guest -f /home/nishant/lxc/conf.guest /bin/bash > > lxc-execute: No such file or directory - failed to mount a new instance of > '/dev/pts' > lxc-execute: failed to setup the new pts instance > > lxc-execute: failed to setup the container > lxc-execute: invalid sequence number 1. expected 2 > lxc-execute: failed to spawn 'guest' > > Regards, > Nishant. > > On Wed, Aug 24, 2011 at 3:00 PM, nishant mungse <nishantmun...@gmail.com>wrote: > > Hii all > > > > I am using lxc for creating containers. > > > > But when i create lxc container using "lxc-create -n abc" it creates a > > abc> > > container and when i do lxc-info -n abc its show "abc is stopped" and > > when i perform "lxc-start -n abc [-f conf file ]" the terminal hangs > > and if do "lxc-execute -n abc [-f conf file ] \bin\bash" terminal > > hangs. > > > > It is not even working for "/usr/bin/lxc-execute -n foo -f > > /usr/share/doc/lxc/examples/lxc-macvlan.conf /bin/bash". > > > > I am using UBUNTU 10.10. > > > > Plz help me ASAP. > > > > Regards, > > Nishant. ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users