<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SupportSages &#187; openvz</title>
	<atom:link href="http://www.supportsages.com/blog/tag/openvz/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.supportsages.com/blog</link>
	<description>Technical Support and Server Management : Musings in the fox hole.</description>
	<lastBuildDate>Fri, 16 Jul 2010 02:47:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>OpenVPN issues on a OpenVZ / Virtuozzo enabled VPS</title>
		<link>http://www.supportsages.com/blog/2009/09/openvpn-issues-on-a-openvz-virtuozzo-enabled-vps/</link>
		<comments>http://www.supportsages.com/blog/2009/09/openvpn-issues-on-a-openvz-virtuozzo-enabled-vps/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 16:00:19 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[Tun/TAP]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=560</guid>
		<description><![CDATA[<strong>Error</strong> Note: Cannot open TUN/TAP dev /dev/net/tun: Permission denied (errno=13)

Just follow the KB at http://wiki.openvz.org/VPN_via_the_TUN/TAP_device

<strong>Error</strong> <span>Note: Cannot set tx queue length on tun0: Operation not permitted (errno=1) </span>

<span>As mentioned in the same KB URL, just do the steps below and things should be alright again</span>
<blockquote>
<pre>vzctl set 101 --devices c:10:200:rw --save
vzctl set 101 --capability net_admin:on --save</pre>
</blockquote>

Basically the errors are caused by the non-execution of the two commands mentioned above.]]></description>
			<content:encoded><![CDATA[<p><strong>Error</strong> Note: Cannot open TUN/TAP dev /dev/net/tun: Permission denied (errno=13)</p>
<p>Just follow the KB at http://wiki.openvz.org/VPN_via_the_TUN/TAP_device</p>
<p><strong>Error</strong> <span>Note: Cannot set tx queue length on tun0: Operation not permitted (errno=1) </span></p>
<p><span>As mentioned in the same KB URL, just do the steps below and things should be alright again</span></p>
<blockquote>
<pre>vzctl set 101 --devices c:10:200:rw --save
vzctl set 101 --capability net_admin:on --save</pre>
</blockquote>
<p>Basically the errors are caused by the non-execution of the two commands mentioned above.</p>
<p align="left"><a  class="tt" href="http://twitter.com/home/?status=OpenVPN+issues+on+a+OpenVZ+%2F+Virtuozzo+enabled+VPS+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F560" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=OpenVPN+issues+on+a+OpenVZ+%2F+Virtuozzo+enabled+VPS+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F560" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2009/09/openvpn-issues-on-a-openvz-virtuozzo-enabled-vps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pure-ftpd fails to start in a OpenVZ server</title>
		<link>http://www.supportsages.com/blog/2009/07/pure-ftpd-fails-to-start-in-a-openvz-server/</link>
		<comments>http://www.supportsages.com/blog/2009/07/pure-ftpd-fails-to-start-in-a-openvz-server/#comments</comments>
		<pubDate>Sun, 05 Jul 2009 12:42:27 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[capability]]></category>
		<category><![CDATA[ispCP]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[pure-ftpd]]></category>
		<category><![CDATA[pureftpd]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=429</guid>
		<description><![CDATA[Issue : pure-ftpd was not starting in a ispCP enabled VPS server. It was showing failed status in both xinetd and standalone version. ispCP stores the information in MySQL database.

Troubleshooting :

Run the pure-ftpd script using the command itself, and without the sysV startup script.
<code>/usr/sbin/pure-ftpd --daemonize -A -c50 -B -C8 -D -E -fftp -H -I15 -lmysql:/etc/pure-ftpd/pureftpd-mysql.conf -L7500:8 -m4 -s -U133:022 -u500 -i -Oclf:/var/log/pureftpd.log -k99 -Z -4</code>

Again failure. Now turn for strace.
<code>yum install strace</code>

Error to be noted was below
<code>
capset(0x19980330, 0, {CAP_CHOWN&#124;CAP_DAC_READ_SEARCH&#124;CAP_SETGID&#124;CAP_SETUID&#124;CAP_NET_BIND_SERVICE&#124;CAP_NET_ADMIN&#124;CAP_SYS_CHROOT&#124;CAP_SYS_NICE, CAP_CHOWN&#124;CAP_DAC_READ_SEARCH&#124;CAP_SETGID&#124;CAP_SETUID&#124;CAP_NET_BIND_SERVICE&#124;CAP_NET_ADMIN&#124;CAP_SYS_CHROOT&#124;CAP_SYS_NICE, 0}) = -1 EPERM (Operation not permitted)</code>

followed by a log message in /var/log/messages as
<code>pure-ftpd: (?@?) [ERROR] Unable to switch capabilities ...]]></description>
			<content:encoded><![CDATA[<p>Issue : pure-ftpd was not starting in a ispCP enabled VPS server. It was showing failed status in both xinetd and standalone version. ispCP stores the information in MySQL database.</p>
<p>Troubleshooting :</p>
<p>Run the pure-ftpd script using the command itself, and without the sysV startup script.<br />
<code>/usr/sbin/pure-ftpd --daemonize -A -c50 -B -C8 -D -E -fftp -H -I15 -lmysql:/etc/pure-ftpd/pureftpd-mysql.conf -L7500:8 -m4 -s -U133:022 -u500 -i -Oclf:/var/log/pureftpd.log -k99 -Z -4</code></p>
<p>Again failure. Now turn for strace.<br />
<code>yum install strace</code></p>
<p>Error to be noted was below<br />
<code><br />
capset(0x19980330, 0, {CAP_CHOWN|CAP_DAC_READ_SEARCH|CAP_SETGID|CAP_SETUID|CAP_NET_BIND_SERVICE|CAP_NET_ADMIN|CAP_SYS_CHROOT|CAP_SYS_NICE, CAP_CHOWN|CAP_DAC_READ_SEARCH|CAP_SETGID|CAP_SETUID|CAP_NET_BIND_SERVICE|CAP_NET_ADMIN|CAP_SYS_CHROOT|CAP_SYS_NICE, 0}) = -1 EPERM (Operation not permitted)</code></p>
<p>followed by a log message in /var/log/messages as<br />
<code>pure-ftpd: (?@?) [ERROR] Unable to switch capabilities : Operation not permitted</code></p>
<p>Edit the VPS configuration file in the node to add lines below directly as below and then restart the vps from node or PIM or anything you use as the control panel.</p>
<blockquote><p>CAPABILITY=&#8221;CHOWN:on DAC_READ_SEARCH:on SETGID:on SETUID:on NET_BIND_SERVICE:on NET_ADMIN:on SYS_CHROOT:on SYS_NICE:on&#8221;</p></blockquote>
<p>A restart of VPS should fix the error</p>
<p align="left"><a  class="tt" href="http://twitter.com/home/?status=pure-ftpd+fails+to+start+in+a+OpenVZ+server+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F429" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=pure-ftpd+fails+to+start+in+a+OpenVZ+server+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F429" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2009/07/pure-ftpd-fails-to-start-in-a-openvz-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Server refused to allocate pty in a VPS &amp; CentOS 5.3</title>
		<link>http://www.supportsages.com/blog/2009/04/server-refused-to-allocate-pty-in-a-vps-centos-53/</link>
		<comments>http://www.supportsages.com/blog/2009/04/server-refused-to-allocate-pty-in-a-vps-centos-53/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 01:51:04 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[openvz]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=47</guid>
		<description><![CDATA[With CentOS 5.3 released on 1st April of this year, more udev related issues crops in. I don't know when OpenVZ will get better in its thinking. Issue is there in every VPS who has got the udev upgraded as a result of no excludes in yum.conf entries. Two solutions exists as per <a href="http://wiki.openvz.org/Container_enter_failed">http://wiki.openvz.org/Container_enter_failed</a>

Editing the rc.sysinit is the solution which will work here. But when I explained to one of our customers that we edited rc.sysinit, he thought it is /etc/rc.sysinit in the node. <span style="color: #ff0000;">Be warned : Don't do that! </span>Instead from the node edit the etc/sysinit ...]]></description>
			<content:encoded><![CDATA[<p>With CentOS 5.3 released on 1st April of this year, more udev related issues crops in. I don&#8217;t know when OpenVZ will get better in its thinking. Issue is there in every VPS who has got the udev upgraded as a result of no excludes in yum.conf entries. Two solutions exists as per <a  href="http://wiki.openvz.org/Container_enter_failed">http://wiki.openvz.org/Container_enter_failed</a></p>
<p>Editing the rc.sysinit is the solution which will work here. But when I explained to one of our customers that we edited rc.sysinit, he thought it is /etc/rc.sysinit in the node. <span style="color: #ff0000;">Be warned : Don&#8217;t do that! </span>Instead from the node edit the etc/sysinit of the VPS, like vi /vz/private/VPSID/etc/rc.sysinit.</p>
<p>However the proper solution, we believe is to</p>
<p>yum remove udev</p>
<p>go ahead with yes to remove dependencies as well. It will also remove ImageMagick, which you have to later install it manually from source. Follow the how to for the installation of ImageMagick below, since the yum based installation of ImageMagick has dependency on hal and udev packages.</p>
<p>/me wonders why are they dependent though..</p>
<blockquote><p>
yum install ghostscript<br />
wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz<br />
tar xvzf ImageMagick.tar.gz<br />
rm -rf ImageMagick.tar.gz<br />
cd ImageMagick*<br />
./configure &#8211;enable-shared &#8211;with-modules  &#8211;with-freetype=yes &#8211;with-gs-font-dir=default &#8211;with-perl=yes &#8211;with-xml=yes &#8211;with-zlib=yes &#8211;with-jpeg=yes &#8211;with-png=yes &#8211;without-x<br />
make<br />
make install</p></blockquote>
<p>After the udev is removed, edit the /etc/yum.conf and make sure that the exclude= line has udev*  mkinitrd module-init-tools and kernel*  added to it. cPanel usually adds kernel*, but I guess its our responsibility to add udev* in a VPS, till cPanel&#8217;s upcp does it for us in a VPS <img src='http://www.supportsages.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p align="left"><a  class="tt" href="http://twitter.com/home/?status=Server+refused+to+allocate+pty+in+a+VPS+%26+CentOS+5.3+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F47" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=Server+refused+to+allocate+pty+in+a+VPS+%26+CentOS+5.3+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F47" title="Post to Twitter">Tweet This Post</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2009/04/server-refused-to-allocate-pty-in-a-vps-centos-53/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
