<?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>Netbook Expert &#187; Virtualisation</title>
	<atom:link href="http://www.netbookexpert.co.uk/index.php/category/virtualisation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.netbookexpert.co.uk</link>
	<description>Netbook news, tips and tricks</description>
	<lastBuildDate>Wed, 11 Nov 2009 12:52:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Access services on a Guest Sun VirtualBox from the Host</title>
		<link>http://www.netbookexpert.co.uk/index.php/2009/08/06/how-to-access-services-on-a-guest-sun-virtualbox-from-the-host/</link>
		<comments>http://www.netbookexpert.co.uk/index.php/2009/08/06/how-to-access-services-on-a-guest-sun-virtualbox-from-the-host/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 09:25:39 +0000</pubDate>
		<dc:creator>BenWilder</dc:creator>
				<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[Advice]]></category>
		<category><![CDATA[Performance tuning]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Trick]]></category>

		<guid isPermaLink="false">http://www.netbookexpertwp.co.uk/?p=53</guid>
		<description><![CDATA[
I recently got sick of trying to get the lastest version of VMWare server to play nice. I need to run an Ubuntu Linux server on my Windows XP machine for testing various pieces of software.
After a bit of research i downloaded Suns VirtualBox, which seemed to have all the features i was looking for [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>I recently got sick of trying to get the lastest version of VMWare server to play nice. I need to run an Ubuntu Linux server on my Windows XP machine for testing various pieces of software.</p>
<p>After a bit of research i downloaded Suns VirtualBox, which seemed to have all the features i was looking for without all the fluff i didn&#8217;t need!</p>
<p>Download, installation and configuration was a breeze. I downloaded the latest Ubuntu iso, mounted and installed. Bingo.</p>
<p>However, i need to SSH to this machine from my desktop and i also need to access pages from the apache web server on the Ubuntu installation</p>
<p>By default the networking for the virtual machine is set to PCnet-FAST III(NAT) and the guest machine will reside on a different network.</p>
<p>Looking through the Virtual Box documentation i found what was needed to forward ports on my host (Windows XP) to the guest (Ubuntu) so that i could ssh and access http on the virtual box.</p>
<p>I hope this saves someone else a few minutes:</p>
<p>To enable port forwarding from the host to the guest OS, the guest must be switched off..</p>
<p>using the command prompt, navigate to where the VBoxManage executable is located, on my system this is:</p>
<p>cd &#8220;Program Files\Sun\xVM VirtualBox&#8221;</p>
<p>Then 3 commands need to be run for each mapping you wish to create.. with the following syntax (replace tokens in []):</p>
<ul>
<li>VBoxManage setextradata &#8220;[name of your virtual machine]&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/[friendly name for rule]/Protocol&#8221; [protocol]</li>
<li>VBoxManage setextradata &#8220;[name of your virtual machine]&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/[friendly name for rule]/GuestPort&#8221; [guest port]</li>
<li>VBoxManage setextradata &#8220;[name of your virtual machine]&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/[friendly name for rule]/HostPort&#8221; [host port]</li>
</ul>
<p>So to enable forwarding of port 2222 on my local machine to port 22 on the Ubuntu virtual machine i issued the following commands:</p>
<ul>
<li>VBoxManage setextradata &#8220;Ubuntu Testing VPS&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol&#8221; TCP</li>
<li>VBoxManage setextradata &#8220;Ubuntu Testing VPS&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort&#8221; 22</li>
<li>VBoxManage setextradata &#8220;Ubuntu Testing VPS&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort&#8221; 2222</li>
<p>And to enable forwarding of port 8888 on my local machine to port 80 on the Ubuntu virtual machine i issued the following commands:</p>
<li>VBoxManage setextradata &#8220;Ubuntu Testing VPS&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestmysql/Protocol&#8221; TCP</li>
<li>VBoxManage setextradata &#8220;Ubuntu Testing VPS&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestmysql/GuestPort&#8221; 3306</li>
<li>VBoxManage setextradata &#8220;Ubuntu Testing VPS&#8221; &#8220;VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestmysql/HostPort&#8221; 3333</li>
<p>i can now access the ubuntu ssh server via ssh -p 2222 user@127.0.0.1</p>
<p>and i can now access the apache server on the ubuntu virtual server via: http://localhost:8888/</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.netbookexpert.co.uk/index.php/2009/08/06/how-to-access-services-on-a-guest-sun-virtualbox-from-the-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

