<?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>MartinLanner.com &#187; Virtualization</title>
	<atom:link href="http://martinlanner.com/category/virtualization/feed/" rel="self" type="application/rss+xml" />
	<link>http://martinlanner.com</link>
	<description></description>
	<lastBuildDate>Mon, 14 Nov 2011 19:16:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to Install OpenVPN Access Server on Proxmox VE</title>
		<link>http://martinlanner.com/2009/06/10/how-to-install-openvpn-access-server-on-proxmox-ve/</link>
		<comments>http://martinlanner.com/2009/06/10/how-to-install-openvpn-access-server-on-proxmox-ve/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 17:30:39 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Proxmox]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://martinlanner.com/?p=125</guid>
		<description><![CDATA[I thought OpenVPN Access Server, or OpenVPN AS, was going to be easy to install on Proxmox VE using an OpenVZ container, but it turned out to be a bit more complicated than I had anticipated. So, I decided to write it all up here for others to benefit from.]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-156" title="OpenVPN+Proxmox" src="http://martinlanner.com/wp-content/uploads/2009/06/openvpnproxmox.jpg" alt="OpenVPN+Proxmox" width="150" height="62" />I thought <a href="http://openvpn.net/" target="_blank">OpenVPN Access Server</a>, or OpenVPN AS, was going to be easy to install on <a href="http://pve.proxmox.com/wiki/Main_Page" target="_blank">Proxmox VE</a> using an <a href="http://wiki.openvz.org" target="_blank">OpenVZ</a> container, but it turned out to be a bit more complicated than I had anticipated. So, I decided to write it all up here for others to benefit from.</p>
<p><strong>CREDITS:</strong> I got a lot of assistance from various people on the <a href="https://www.proxmox.com/forum/index.php" target="_blank">Proxmox forums</a>, and specifically from one user, Marius.</p>
<h3>Prepare the Host Node</h3>
<p>There are a few things you will need to do up-front to prepare your &#8220;Host Node,&#8221; that is, your Proxmox VE host to allow for the TUN network interface that OpenVPN requires.  Log in to your Proxmox VE host and open:</p>
<p><code>nano /etc/vz/vz.conf</code></p>
<p>Then, scroll down to the section that says &#8220;## IPv4 iptables kernel modules&#8221; and load a few extra modules for iptables:</p>
<p><code>IPTABLES="ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp"</code></p>
<p>You must restart VZ to load the new modules by running:</p>
<p><code>/etc/init.d/vz restart</code></p>
<p>(NOTE: This will shut down any running VMs.)  Now, you&#8217;re ready to install the OS.</p>
<h3>Install the OS</h3>
<p>First off, at least for the time being, OpenVPN AS needs a 64-bit OS. Currently there are pre-packaged installation files for Ubuntu and Fedora. Installation packages for 32-bit OSes and other distributions are supposedly in the works. Because Proxmox is based on Debian and there are several Debian and Ubuntu OpenVZ templates available already, I chose to use Ubuntu 8.04 LTS 64-bit. That particular template isn&#8217;t included in the &#8220;Appliance Templates&#8221; in Proxmox (at least not in my version), so I had to download it from the Proxmox repositories first.  Simply download the &#8220;ubuntu-8.0-standard_8.04-1_amd64.tar.gz&#8221; template to your Proxmox host. Go to the Proxmox repositories and find the template you want. In my case it was at ftp://download.proxmox.com/appliances/system/ubuntu-8.0-standard_8.04-1_amd64.tar.gz, so:</p>
<p><code>cd /var/lib/vz/template/cache/<br />
wget ftp://download.proxmox.com/appliances/system/ubuntu-8.0-standard_8.04-1_amd64.tar.gz</code></p>
<p>Once the template is downloaded, log in to the web interface of your Proxmox VE host.</p>
<h3>Creating the OpenVZ container</h3>
<p>Hopefully you already know how to create an OpenVZ container in Proxmox. If not, since it&#8217;s not really the focus of this how-to, head over to <a href="http://pve.proxmox.com/wiki/Category:Video_Tutorials" target="_blank">Proxmox Tutorials</a>. Moving on, for my VPN appliance I selected the following settings:</p>
<ul>
<li>Template: ubuntu-8.0-standard_8.04-1_amd64</li>
<li>Disk space (GB): 8</li>
<li>Memory (MB): 512</li>
<li>Swap (MB): 512</li>
<li>Network type: Bridged Ethernet (veth)</li>
</ul>
<p>IMPORTANT: You must select &#8216;Bridged Internet (veth).&#8217; &#8216;Virtual Network (venet)&#8217; will not work.</p>
<p>You should of course also fill out all the other stuff, like hostname, DNS domain, DNS servers, and so on.</p>
<p>Now, simply start the VM.</p>
<h3>Configuring and preparing the VM</h3>
<p>First things, first. Update your OS! Use the &#8220;Open VNC Console&#8221; located in the &#8216;Virtual Machine Configuration&#8217; settings for your VM and run:</p>
<p><code>apt-get update<br />
apt-get upgrade<br />
</code></p>
<p>You also need to configure the IP settings of the VM. Add the network config settings for your setup, like in the following example:</p>
<p><code># Primary network interface<br />
auto eth0<br />
iface eth0 inet static<br />
address 192.168.1.20<br />
netmask 255.255.255.0<br />
network 192.168.1.0<br />
broadcast 192.168.1.255<br />
gateway 192.168.1.1</code></p>
<p>Then, restart your networking, like so:</p>
<p><code>/etc/init.d/networking restart</code></p>
<h3>Install OpenVPN</h3>
<p>Obviously, first things first, so you&#8217;ll need to download the installation file from OpenVPN. To download it you need to first sign up for an account. Once you&#8217;ve signed up, find the URL to the download you want. In my case, using Ubuntu 8.04 LTS 64-bit, the latest available version was OpenVPN AS 1.1.0, so I picked the openvpn-as-1.1.0-Ubuntu8.amd_64.deb file.</p>
<p>That out of the way, last thing to do before you can start configuring your OpenVPN Access Server is to actually install it. This is fast. Log in via SSH or using Proxmox&#8217;s VNC Console. Then, do this:</p>
<p><code>cd /tmp<br />
wget http://path/to/openvpn-as/download/directory/openvpn-as-1.1.0-Ubuntu8.amd_64.deb</code></p>
<p>It&#8217;s a fairly small package, so it should download relatively quickly. Then issue:</p>
<p><code>dpkg -i openvpn-as-1.1.0-Ubuntu8.amd_64.deb</code></p>
<p>It should install everything. When the installation completes, to run initial configuration for your newly installed OpenVPN Access Server, issue the following command:</p>
<p><code>/usr/local/openvpn_as/bin/ovpn-init</code></p>
<p>Unless you have specific requirements, you can just accept the defaults during the configuration process.</p>
<p>I will not cover configuring OpenVPN for your specific needs here. OpenVPN has a good document outlining how to do that. It&#8217;s available to download from their website for people who already have OpenVPN accounts. Obviously, if you&#8217;ve already gotten this far, you should have an account.</p>
<p>That&#8217;s it. All it took in the end was a few &#8220;special&#8221; tweaks here and there to make OpenVPN run in an OpenVZ container, and overall it wasn&#8217;t that complicated once I figured out what those tweaks were. Of course, it would be more straight forward to install OpenVPN AS on a dedicated server, but that would cost you more. And if you already have spare capacity on a virtual host, why not use that?</p>
<p>I hope you enjoyed this how-to. Comments, corrections, feedback, and ideas below are greatly appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://martinlanner.com/2009/06/10/how-to-install-openvpn-access-server-on-proxmox-ve/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Proxmox Virtual Environment &#8211; Part 1</title>
		<link>http://martinlanner.com/2009/05/12/proxmox-virtual-environment-part-1/</link>
		<comments>http://martinlanner.com/2009/05/12/proxmox-virtual-environment-part-1/#comments</comments>
		<pubDate>Wed, 13 May 2009 06:11:55 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Proxmox]]></category>

		<guid isPermaLink="false">http://martinlanner.com/?p=50</guid>
		<description><![CDATA[For a few years now I&#8217;ve been using a bunch of different virtualization products. I&#8217;ve mainly used VMware, although I&#8217;ve tested a bunch of other alternatives. I&#8217;ve used Fusion on Macs, Player and Server on Windows, and Server on headless Linux machines. When it comes to data center equipment I&#8217;ve been working with VMware ESX. [...]]]></description>
			<content:encoded><![CDATA[<p><div id="attachment_104" class="wp-caption alignleft" style="width: 160px"><a href="http://www.proxmox.com"><img src="http://martinlanner.com/wp-content/uploads/2009/05/proxmox_logo.jpg" alt="Proxmox" title="Proxmox" width="150" height="24" class="size-full wp-image-104" /></a><p class="wp-caption-text">Proxmox</p></div>For a few years now I&#8217;ve been using a bunch of different virtualization products. I&#8217;ve mainly used VMware, although I&#8217;ve tested a bunch of other alternatives. I&#8217;ve used Fusion on Macs, Player and Server on Windows, and Server on headless Linux machines. When it comes to data center equipment I&#8217;ve been working with VMware ESX. Then, not too long ago, about half a year ago or so, as I was researching Qumranet and KVM, I stumbled across a little known open source product from an Austrian company called <a href="http://pve.proxmox.com/wiki/Main_Page">Proxmox Virtual Environment (Proxmox VE)</a>.<span id="more-50"></span>Proxmox VE is a bare metal install, which is best run on enterprise grade server hardware. It&#8217;s based on a customized and optimized Debian kernel. Proxmox VE is in many ways similar to VMware ESX or Citrix XenServer. Although a relatively young product, already in version 1.1 of Proxmox VE, most of the &#8220;enterprise features&#8221; of its commercial cousins are available. Some features may still be lacking, but in email exchanges with one of the Proxmox VE&#8217;s main developers, I was told to look forward to some &#8220;very exciting&#8221; enhancements coming in 2.0 of the product.  Installation of Proxmox VE is a breeze.</p>
<p>Once you have downloaded and burned the ISO, it shouldn&#8217;t take more than 30 minutes to install. Once installed, one can download ready-built VM OS and app templates directly from the management interface, which is all web based. That&#8217;s right, it&#8217;s not like VMware&#8217;s crippled web UI, where you can only take some actions, like starting and stopping a machine. All management is done through the web UI.</p>
<p>Proxmox VE is a very versatile product. Not only can one run KVM on top of Proxmox, but it will also run OpenVZ containers. The choice between KVM or OpenVZ usually comes down to what kind of OS you need to run. If you need to run a Windows machine, KVM will be your choice, while you will likely use OpenVZ for most Linux servers.</p>
<p>Back to the templates. All templates available at the time of writing this are OpenVZ templates. However, the Proxmox VE developers say that KVM templates are coming. Getting a template is as easy as point-and-click, and a few moments later, as soon as it&#8217;s downloaded to your &#8220;template library&#8221; you point-and-click again to create a new virtual machine container. It literally doesn&#8217;t take much longer than half a minute to build a new OpenVZ machine.</p>
<p>There is probably at least 10 different templates available already, varying from basic OS templates to full application appliance templates, such as:</p>
<ul>
<li>Ubuntu 8.04</li>
<li>CentOS 5</li>
<li>Fedora 9</li>
<li>Zenoss Core Network Monitoring</li>
<li>Joomla!</li>
<li>Drupal</li>
<li>WordPress</li>
</ul>
<p>The full list of current templates can be found on the <a href="http://pve.proxmox.com/wiki/Get_Virtual_Appliances" target="_blank">Proxmox VE Wiki</a>.</p>
<p>Even if you don&#8217;t have &#8220;enterprise hardware&#8221; lying around at home, but only have some old clunker hardware with a CPU that supports virtualization, I highly recommend downloading and installing Proxmox VE. It&#8217;s a great virtualization platform.</p>
<p>In Part 2, I&#8217;ll be discussing more of Proxmox VE&#8217;s features and dig a little bit deeper. Stay tuned &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://martinlanner.com/2009/05/12/proxmox-virtual-environment-part-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

