[Lxc-users] Templates available (debian and ubuntu)

Guillaume lxc at zitta.fr
Thu Aug 19 16:04:15 UTC 2010



Le 19/08/2010 17:29, Papp Tamás a écrit :
>
> Guillaume wrote, On 2010. 08. 19. 17:27:
>> Le 19/08/2010 14:48, Papp Tamás a écrit :
>>  
>>> Guillaume wrote, On 2010. 08. 18. 14:07:
>>>    
>>>>  Hello LXC people,
>>>>
>>>> Some of you already know my project lxc-provider.
>>>> One of the project's goals is to generate lxc templates.
>>>>
>>>> I have published ready to use (even whitout lxc-provider) templates at
>>>> http://sourceforge.net/projects/lxc-provider/files/
>>>>
>>>> Here is a list of them:
>>>>
>>>> - ubuntu.lucid 64bits
>>>> - ubuntu.lucid 32bits
>>>> - ubuntu.karmic 64bits
>>>> - ubuntu.karmic 32bits
>>>> - ubuntu.jaunty 64bits
>>>> - ubuntu.jaunty 32bits
>>>> - ubuntu.intrepid 64bits
>>>> - ubuntu.intrepid 32bits
>>>> - ubuntu.hardy 64bits
>>>> - ubuntu.hardy 32bits
>>>> - debian.squeeze 64bits
>>>> - debian.squeeze 32bits
>>>> - debian.lenny 64bits
>>>> - debian.lenny 32bits
>>>>
>>>> Centos4, Centos5, fedora12, fedora13 are on there way...
>>>>
>>>> Usage without lxc-provider :
>>>>
>>>> -untar
>>>> -set networking configuration (/etc/network/interfaces, /etc/hosts)
>>>> -set hostname (/etc/hostname)
>>>> -set auth (passwd, sshkey)
>>>> -set locales (on debian : dpkg-reconfigure locales)
>>>> -set /etc/resolv.conf
>>>> -create lxc conf
>>>> -enjoy ;)
>>>>  
>>>>         
>>> hi!
>>>
>>> I just done with this.
>>>
>>> After an ssh login I see:
>>>
>>> $ ssh 10.1.1.59 -l root
>>> root at 10.1.1.59's password:
>>> PTY allocation request failed on channel 0
>>> stdin: is not a tty
>>>                   Connection to 10.1.1.59 closed.
>>> $
>>>
>>>
>>> I can get the prompt back only using "~." , so something is wrong.
>>> Does it work for you? I used the template ubuntu.lucid_0.3.tgz .
>>>
>>> After some debugging now it's working, this was needed:
>>>
>>> /etc/init/devpts.conf
>>> #
>>> start on startup
>>>
>>> exec mount -t devpts none /dev/pts -o rw,noexec,nosuid,gid=5,mode=0620
>>>
>>>
>>>
>>> Thanks,
>>>
>>> tamas
>>>     
>> Yes, it works for me.
>> What version of lxc do you use?
>>   
>
> 0.7.1
>
> tamas

I think lxc-start mounts the /dev/pts himself if you have lxc.pts
configuration param seted.
Could you, please, give a try?

thks

guillaume




More information about the lxc-users mailing list