<br><br><div class="gmail_quote">On Mon, Oct 22, 2012 at 6:48 PM, Michael H. Warfield <span dir="ltr"><<a href="mailto:mhw@wittsend.com" target="_blank">mhw@wittsend.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Mon, 2012-10-22 at 18:09 +0530, swair shah wrote:<br>
> I've been trying out lxc for a week now, and it seems there are a lot of<br>
> issues if the host system is centos and things work fine while using ubuntu<br>
> as the host. any way, right now I don't think lxc seems to be fit to run on<br>
> production boxes.<br>
<br>
> I was wondering if anyone is using lxc on production. and if you don't mind<br>
> disclosing, for what purpose do you use it on production?<br>
<br>
</div></div>I'm using it on Fedora hosts just fine and I've got some deployed on<br>
CentOS as well with no problem. Before anyone says anything about<br>
Fedora - the reason is that I can generally yum upgrade from one release<br>
to the next but going through the upgrade from RHEL/CentOS from say 4 to<br>
5 to 6 is a painful experience.<br>
<br>
I totally abandoned Ubuntu when they went to Unity and the changes they<br>
made make it almost impossible to setup freenx servers on those<br>
machines. Seems the packages are their but certain dependencies can not<br>
be resolved and reports I've read indicated, even AFTER you manually<br>
recompile some audio libraries and crap that Ubuntu dropped the ball on,<br>
it still is unreliable as all get out. I rely too much on NX for remote<br>
desktops with 5 remote locations even when I'm home (and six when I'm on<br>
the road). I can't have that. I gave up after a couple of days of<br>
trying and ripped Ubuntu off all my systems and replaced it with Fedora.<br>
To each his own...<br>
<br>
I have one host (Fedora 15) which has approximately 3 dozen VM's running<br>
on it doing a variety of things like web, mail, mailing lists,<br>
databases, remote desktops, DNS (authoritative and caching), Nagios etc,<br>
etc. My biggest headache is when a buddy of mine runs one of his<br>
database intensive scripts it runs the load average of the host up to<br>
over 10 for a couple of minutes but I'll beat on him later.<br>
<br>
I'd love to hear what issues you had on CentOS. Obviously, if you are<br>
running LXC, it must have been CentOS 6. What rev level and kernel?<br>
<br></blockquote><div><br></div><div>I'm using lxc version 0.7.5 and kernel version 2.6.32. <a href="http://pastebin.com/Qtue8g3P">This</a> is the script I'm using. </div><div><br></div><div>The recent issue is that once I start a container, and try to do an ssh from outside it doesn't show anything on the terminal. Though a ps aux says that a pts/1 has been allocated to an ssh login. It used to fail before and would give an error saying </div>
<div><br></div><div><div>error: ioctl(TIOCSCTTY): Operation not permitted</div><div>error: open /dev/tty failed - could not set controlling tty: No such device </div></div><div><br></div><div>Which seems to be fixed by removing the mount of devpts from fstab and/or doing</div>
<div>#mount -o remount,rw /dev/pts </div><div><br></div><div>One more problem is that I have to reboot the host everytime after I shutdown any container to make everything work like before. After the remount of /dev/pts that seems to have been fixed. </div>
<div><br></div><div>But the ssh thing is still a big issue. I'm thinking something is wrong with the mount of /dev. Can you share your script? or conf file? </div><div><br></div><div>thanks!</div><div>swair</div><div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> cheers,<br>
> swair<br>
<br>
Regards,<br>
Mike<br>
<span class="HOEnZb"><font color="#888888">--<br>
Michael H. Warfield (AI4NB) | (770) 985-6132 | mhw@WittsEnd.com<br>
/\/\|=mhw=|\/\/ | (678) 463-0932 | <a href="http://www.wittsend.com/mhw/" target="_blank">http://www.wittsend.com/mhw/</a><br>
NIC whois: MHW9 | An optimist believes we live in the best of all<br>
PGP Key: 0x674627FF | possible worlds. A pessimist is sure of it!<br>
</font></span></blockquote></div><br>