On Wed, May 9, 2012 at 4:26 PM, 张章 <zhang_zh...@live.com> wrote: > hello > > i have configured the lxc with basic settings like this: > lxc.ustname = lxc1 > lxc.network.type = veth > lxc.network.flags = up > lxc.network.link = br0 > lxc.network.name = eth0 > lxc.network.ipv4 = 192.168.1.122/24 > lxc.rootfs = /lxc/rootfs > lxc.mount = /lxc/fstab > > and the filesystem to be mount is fresh using > debootstrap --arch amd64 lucid /lxc/rootfs http://archive.ubuntu.com/ubuntu > After typing command: lxc-create and lxc-start, the host system requires me > to re-login. Then I do it and try to connect the just lauched container > using ssh,but i get the following error: > PTY allocation request failed on channel 0 > stdin:is not a tty > could anyone offer some help? you are warmly welcome! > Thanks a lot!
My guess is you somehow mixed up the host and container's tty. Possibly due to incomplete container config file. You didn't mention what your host is. If it's not ubuntu precise, better upgrade. As for the guest container, there are other modifications needed, so ONLY using debootstrap is not enough. I suggest you create it using "lxc-create -n name_of_your_container -t ubuntu -- -r lucid" instead, or look at /usr/lib/lxc/templates/lxc-ubuntu to see what modifications are needed. -- Fajar ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users