<?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>The Linux Noob &#187; openvz</title>
	<atom:link href="http://thelinuxnoob.com/tag/openvz/feed/" rel="self" type="application/rss+xml" />
	<link>http://thelinuxnoob.com</link>
	<description>Fixin&#039; issues one ticket at a time</description>
	<lastBuildDate>Tue, 19 Jul 2011 12:43:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Cheat Sheets</title>
		<link>http://thelinuxnoob.com/tln-com/cheat-sheets/</link>
		<comments>http://thelinuxnoob.com/tln-com/cheat-sheets/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 11:47:32 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[TLN.com]]></category>
		<category><![CDATA[cheatsheet]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[ports]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[services]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=182</guid>
		<description><![CDATA[Added a list of cheat sheets that I&#8217;ve posted to the nav bar for easier searching. I will continue to update the list as I post more.]]></description>
			<content:encoded><![CDATA[<p>Added a list of cheat sheets that I&#8217;ve posted to the nav bar for easier searching. I will continue to update the list as I post more.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/tln-com/cheat-sheets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VPN via the TUN/TAP device</title>
		<link>http://thelinuxnoob.com/linux/vpn-via-the-tun-tap-device/</link>
		<comments>http://thelinuxnoob.com/linux/vpn-via-the-tun-tap-device/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 15:57:17 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[node]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[tap]]></category>
		<category><![CDATA[tun]]></category>
		<category><![CDATA[tun/tap]]></category>
		<category><![CDATA[vzctl]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=157</guid>
		<description><![CDATA[I had a client contact me earlier this morning because one of their clients was receiving the following error on their VPS when trying to run OpenVPN. Note: Cannot open TUN/TAP dev /dev/net/tun: Permission denied (errno=13) Note: Attempting fallback to kernel 2.2 TUN/TAP interface Cannot open TUN/TAP dev /dev/tun0: No such file or directory (errno=2) [...]]]></description>
			<content:encoded><![CDATA[<p>I had a client contact me earlier this morning because one of their clients was receiving the following error on their VPS when trying to run OpenVPN.</p>
<blockquote><p> Note: Cannot open TUN/TAP dev /dev/net/tun: Permission denied (errno=13)<br />
 Note: Attempting fallback to kernel 2.2 TUN/TAP interface<br />
 Cannot open TUN/TAP dev /dev/tun0: No such file or directory (errno=2)</p></blockquote>
<p>I&#8217;ve never run into this issue before, but was able to find an awesome tutorial on the <a title="VPN via TUN/TAP device" href="http://wiki.openvz.org/VPN_via_the_TUN/TAP_device" target="_blank">OpenVZ</a> website.</p>
<p>First, make sure the tun module has been already loaded on the hardware node:</p>
<pre class="brush: bash; title: ; notranslate"># lsmod | grep tun</pre>
<p>If it is not there, use the following command to load <strong>tun</strong> module:</p>
<pre class="brush: bash; title: ; notranslate"># modprobe tun</pre>
<p>To make sure that <strong>tun</strong> module will be automatically loaded on  every reboot you can also add it or into /etc/modules.conf (on RHEL see  /etc/sysconfig/modules/ directory) or into /etc/sysconfig/vz-scripts/<em>VEID</em>.mount.</p>
<pre class="brush: bash; title: ; notranslate">echo 'modprobe tun' /etc/sysconfig/vz-scripts/VEID.mount</pre>
<p>Allow your container to use the tun/tap device by running the following commands on the host node:</p>
<pre class="brush: bash; title: ; notranslate">vzctl set VEID --devices c:10:200:rw --save
vzctl set VEID --capability net_admin:on --save</pre>
<p>And create the character device file inside the container (execute the following on the host node):</p>
<pre class="brush: bash; title: ; notranslate">vzctl exec VEID mkdir -p /dev/net
vzctl exec VEID mknod /dev/net/tun c 10 200
vzctl exec VEID chmod 600 /dev/net/tun</pre>
<p>Enter cat /dev/net/tun to test whether the TUN/TAP device is available:</p>
<ul>
<li> If you receive the message cat: /dev/net/tun: File descriptor in bad state your TUN/TAP device is ready for use.</li>
<li> If you receive the message cat: /dev/net/tun: No such device the TUN/TAP device was not successfully created.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/vpn-via-the-tun-tap-device/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enable NAT module for VPS can’t initialize iptables table `nat’: Table does not exist</title>
		<link>http://thelinuxnoob.com/linux/enable-nat-module-for-vps-can%e2%80%99t-initialize-iptables-table-nat%e2%80%99-table-does-not-exist/</link>
		<comments>http://thelinuxnoob.com/linux/enable-nat-module-for-vps-can%e2%80%99t-initialize-iptables-table-nat%e2%80%99-table-does-not-exist/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 02:18:40 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[openvz]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[node]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=155</guid>
		<description><![CDATA[I was getting the following error in a container on one of my nodes. You can fix this by using the following commands.]]></description>
			<content:encoded><![CDATA[<p>I was getting the following error in a container on one of my nodes.</p>
<pre class="brush: bash; title: ; notranslate">[root@server1 ~]# iptables -t nat -F
iptables v1.3.5: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.</pre>
<pre class="brush: bash; title: ; notranslate">[root@server1 ~]# iptables -t nat -nvL
iptables v1.3.5: can’t initialize iptables table `nat’: Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.</pre>
<p>You can fix this by using the following commands.</p>
<pre class="brush: bash; title: ; notranslate">[root@yoshi ~]# vzctl stop 150
[root@yoshi ~]# vzctl set 150 --iptables &quot;iptable_nat iptable_filter iptable_mangle  ip_conntrack ipt_conntrack ipt_REDIRECT ipt_REJECT ipt_multiport  ipt_helper ipt_LOG ipt_state&quot; --save
Saved parameters for VE 150
[root@yoshi ~]# vzctl restart 150
[root@yoshi ~]# vzctl enter 150
[root@server1 ~]# iptables -t nat -nvL
Chain PREROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination

Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target     prot opt in     out     source               destination</pre>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/enable-nat-module-for-vps-can%e2%80%99t-initialize-iptables-table-nat%e2%80%99-table-does-not-exist/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A few OpenVZ commands</title>
		<link>http://thelinuxnoob.com/linux/a-few-openvz-commands/</link>
		<comments>http://thelinuxnoob.com/linux/a-few-openvz-commands/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 02:16:18 +0000</pubDate>
		<dc:creator>Clayton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[openvz]]></category>

		<guid isPermaLink="false">http://thelinuxnoob.com/?p=138</guid>
		<description><![CDATA[Below are the commonly used OpenVZ commands, which are run from the main node. Shows list of all the VPS’s hosted on the Node. To start the VPS To stop (Shut Down) the VPS To view the status of the particular VPS To stop the VPS quickly and forcefully To enter in a particular VPS [...]]]></description>
			<content:encoded><![CDATA[<p>Below are the commonly used OpenVZ commands, which are run from the main node.</p>
<p>Shows list of all the VPS’s hosted on the Node.</p>
<pre class="brush: bash; title: ; notranslate">vzlist -a</pre>
<p>To start the VPS</p>
<pre class="brush: bash; title: ; notranslate">vzctl start VEID</pre>
<p>To stop (Shut Down) the VPS</p>
<pre class="brush: bash; title: ; notranslate">vzctl stop VEID</pre>
<p>To view the status of the particular VPS</p>
<pre class="brush: bash; title: ; notranslate">vzctl status VEID</pre>
<p>To stop the VPS quickly and forcefully</p>
<pre class="brush: bash; title: ; notranslate">vzctl stop VEID –fast</pre>
<p>To enter in a particular VPS</p>
<pre class="brush: bash; title: ; notranslate">vzctl enter VEID</pre>
<p>To set the Hostname of a VPS</p>
<pre class="brush: bash; title: ; notranslate">vzctl set VEID –hostname vps.domain.com –save</pre>
<p>To add a new IP to the hosting VPS</p>
<pre class="brush: bash; title: ; notranslate">vzctl set VEID –ipadd 1.2.3.4 –save</pre>
<p>To delete the IP from VPS</p>
<pre class="brush: bash; title: ; notranslate">vzctl set VEID –ipdel 1.2.3.4 –save</pre>
<p>To reset root password of a VPS</p>
<pre class="brush: bash; title: ; notranslate">vzctl set VEID –userpasswd root:new_password –save</pre>
<p>To add the nameserver IP’s to the VPS</p>
<pre class="brush: bash; title: ; notranslate">vzctl set VEID –nameserver 1.2.3.4 –save</pre>
<p>To run any command on a VPS from Node</p>
<pre class="brush: bash; title: ; notranslate">vzctl exec VEID command</pre>
<p>To install any package/Software on a VPS from Node</p>
<pre class="brush: bash; title: ; notranslate">vzyum VEID install package_name </pre>
<p>**VEID refers to the ID of the Particular VPS**</p>
]]></content:encoded>
			<wfw:commentRss>http://thelinuxnoob.com/linux/a-few-openvz-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

