<?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>New Adventures in Technology &#187; VirtualBox</title>
	<atom:link href="http://teknostatik.co.uk/tag/virtualbox/feed/" rel="self" type="application/rss+xml" />
	<link>http://teknostatik.co.uk</link>
	<description>Musings on music, computers and other things</description>
	<lastBuildDate>Sat, 24 Jul 2010 07:43:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Setting up a quick and easy virtual web server</title>
		<link>http://teknostatik.co.uk/2010/01/23/setting-up-a-quick-and-easy-virtual-web-server/</link>
		<comments>http://teknostatik.co.uk/2010/01/23/setting-up-a-quick-and-easy-virtual-web-server/#comments</comments>
		<pubDate>Sat, 23 Jan 2010 09:08:40 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Web Technology]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://teknostatik.co.uk/?p=735</guid>
		<description><![CDATA[I did a fair bit of work on this about a year ago, and then never got round to writing it up. What I was trying to achieve was to have a minimal virtual server running in VirtualBox, which could &#8230; <a href="http://teknostatik.co.uk/2010/01/23/setting-up-a-quick-and-easy-virtual-web-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I did a fair bit of work on this about a year ago, and then never got round to writing it up. What I was trying to achieve was to have a minimal virtual server running in VirtualBox, which could been seen from the outside world and would appear to all extent and purposes to be a real physical machine.</p>
<p>Start off by creating a new VM. I went with a totally stripped down installation of Ubuntu (from the alternative CD), adding just <code>openssh-server</code> and <code>apache2</code> to the default install. I called it Ubuntu Minimal (the name will become important later).</p>
<p>Boot up the new VM, and then on the host machine enter the following commands (replacing the name of the VM with what you decided to call yours):</p>
<p><code>VBoxManage setextradata "Ubuntu Minimal" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222<br />
VBoxManage setextradata "Ubuntu Minimal" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22<br />
VBoxManage setextradata "Ubuntu Minimal" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP<br />
VBoxManage setextradata "Ubuntu Minimal" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache2/HostPort" 8008<br />
VBoxManage setextradata "Ubuntu Minimal" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache2/GuestPort" 80<br />
VBoxManage setextradata "Ubuntu Minimal" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache2/Protocol" TCP</code></p>
<p>Power down the VM, start it up again, and then you should be able to ssh into it on port 2222 and pull up apache&#8217;s &#8220;it works!&#8221; page by browsing to http://localhost:8008. At that point you can install web apps and do whatever else you want with the server.</p>
<p>It doesn&#8217;t take up a great deal of memory, so you could probably have a couple of these running on most computers without any obvious performance degradation.</p>
]]></content:encoded>
			<wfw:commentRss>http://teknostatik.co.uk/2010/01/23/setting-up-a-quick-and-easy-virtual-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
