<?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>Kieran&#039;s Mobile + Tech Observations &#187; Misc</title>
	<atom:link href="http://kgutteridge.co.uk/blog/category/misc/feed/" rel="self" type="application/rss+xml" />
	<link>http://kgutteridge.co.uk/blog</link>
	<description>Developer by day, code monkey by night</description>
	<lastBuildDate>Thu, 26 Jan 2012 23:31:42 +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>Set up a VirtualBox localised web server for ssh and web access</title>
		<link>http://kgutteridge.co.uk/blog/2011/03/17/set-up-a-virtualbox-localised-web-server-for-ssh-and-web-access/</link>
		<comments>http://kgutteridge.co.uk/blog/2011/03/17/set-up-a-virtualbox-localised-web-server-for-ssh-and-web-access/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 15:07:59 +0000</pubDate>
		<dc:creator>Kieran</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[guest]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://kgutteridge.co.uk/blog/?p=329</guid>
		<description><![CDATA[A guest post from Stuart from intohand on how to make your virtual box more a little more useful within Ubuntu Why do you want to do this? So you can create a Virtual server that you are going to do some work with, which you might perhaps use when snapshotting different build states of [...]]]></description>
			<content:encoded><![CDATA[<p>A guest post from <a href="http://twitter.com/m3topaz">Stuart</a> from <a href="http://intohand.com">intohand</a> on how to make your virtual box more a little more useful within Ubuntu</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Why do you want to do this? So you can create a Virtual server that you are going to do some work with, which you might perhaps use when snapshotting different build states of that server or your code; and you want to access it as though it were any other web server. That means using ssh to login, change your files, and viewing the web server in your local browser. The example here is based on experience of Ubuntu Linux, and was tested on both 10.04 (32 bit), and 10.10 (64 bit) using VirtualBox V4.0.4 r70112.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">1) Install the server that you want to the VBox virtual machine in the usual way. Note the name you have given to VirtualBox for that machine (we&#8217;ll call that &lt;virtualmachinename&gt;), that is the name in the left hand machine listing in the VirtualBox Manager window.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">2) Run the virtual server and make sure it is running ssh and your web server. (If you have a clean install of a LAMP server you might not have installed openssh, so do this the usual way i.e. EITHER # apt-get install ssh OR $ sudo apt-get install ssh, depending how you are logged in, what flavour of Linux, etc).</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">3) Close the virtual server and look in the log for VirtualBox &#8211; you need to find out how VBox &#8216;sees&#8217; the network adaptor. On an Ubuntu Linux machine the VBox log will be in /home/&lt;yourname&gt;/.VirtualBox/Machines/&lt;yourmachinename&gt;/Logs/VBox.log. Open this log file in a text editor and search for a block of text that refers to the network adaptor, a block that looks like this:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">00:00:01.043   [/Devices/&lt;adaptername&gt;/0/Config/] (level 4)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">00:00:01.043   AdapterType    &lt;integer&gt; = 0&#215;0000000000000000 (0)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">00:00:01.043   CableConnected &lt;integer&gt; = 0&#215;0000000000000001 (1)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">00:00:01.043   LineSpeed      &lt;integer&gt; = 0&#215;0000000000000000 (0)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">00:00:01.043   MAC            &lt;bytes&gt;   = &#8220;09 0E 28 74 36 52&#8243; (cb=6)</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">You are basically looking for the network adaptor name field (&lt;adaptername&gt;). The text around that also details the MAC address of that adaptor, so you know it&#8217;s the right name you have found. In our machines from the example above the network adaptor was called &#8216;e1000&#8242;; yours might be called &#8216;pcnet&#8217; or something else. We need to know that for the VBox configuration changes, so take note of &lt;adaptername&gt;.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">4) Now it&#8217;s time to tell VirtualBox about the ssh changes. You do this by running a set of three VBoxManage commands from the command line, like this:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/&lt;adaptername&gt;/0/LUN#0/Config/ssh/HostPort&#8221; 2222</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/&lt;adaptername&gt;/0/LUN#0/Config/ssh/GuestPort&#8221; 22</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/&lt;adaptername&gt;/0/LUN#0/Config/ssh/Protocol&#8221; TCP</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Replace the &lt;virtualmachinename&gt; with the name of the server you saw earlier in VirtualBox. You will need quotes to enclose that name IF there are spaces in that name (we had a machine called &#8220;Ubuntu 10.04 LTS&#8221; and so we had to use quotes to enclose that name).</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Note that what these commands do is map the virtual machine listener for ssh on port 22 to a localhost port which is, in this case, 2222. (Port selection and checking is a whole different topic which you can find out about elsewhere &#8211; we assume here that port 2222 is already free).</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Check that the commands are understood by VirtualBox by using this from the command line. Once again, use the name of the virtualmachine with quotes if necessary:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$ VBoxManage getextradata &lt;virtualmachinename&gt; enumerate</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">The output of this should include some text like this:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Key: VBoxInternal/Devices/&lt;adaptername&gt;/0/LUN#0/Config/ssh/GuestPort, Value: 22</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Key: VBoxInternal/Devices/&lt;adaptername&gt;/0/LUN#0/Config/ssh/HostPort, Value: 2222</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Key: VBoxInternal/Devices/&lt;adaptername&gt;/0/LUN#0/Config/ssh/Protocol, Value: TCP</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">If that is correct, you are 90% completed now!</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">5) Test ssh.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Firstly, close the virtual machine if you haven&#8217;t already done so. Restart it, and from your local machine (i.e. not from inside the virtual machine!) run this command:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$ ssh -l &lt;username&gt; -p 2222 localhost</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Replace the &lt;username&gt; field with your login for the virtual machine. You should get the prompts associated with the ssh login to any remote server. Once you have done this, you can map the local server&#8217;s file system using the normal means &#8211; for example in Ubuntu use &#8220;Places &#8211; Connect to server&#8230;&#8221; and connect as normal except to localhost on port 2222. Now you can see and amend files that are in the virtual machine.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">6) Set up web server access</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">This is the same sort of procedure you used for ssh, except we&#8217;re going to map local port 8888 to the virtual server&#8217;s web port 80:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/&lt;adaptername&gt;/0/LUN#0/Config/web/HostPort&#8221; 8888</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/&lt;adaptername&gt;/0/LUN#0/Config/web/GuestPort&#8221; 80</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/&lt;adaptername&gt;/0/LUN#0/Config/web/Protocol&#8221; TCP</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Check from the command line with:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$ VBoxManage getextradata &lt;virtualmachinename&gt; enumerate</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Where you should see some text like:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/web/GuestPort, Value: 80</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/web/HostPort, Value: 8888</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/web/Protocol, Value: TCP</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">7) Access virtual web server</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Go to your web browser and enter:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">http://localhost:8888</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">You should now see the index page for the virtual server. All done &#8211; you can now ssh into the virtual machine server, change files, and test your changes using the local browser.</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;"> <img src='http://kgutteridge.co.uk/blog/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Remove settings</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Once you are done and you wish to reverse these change, you can remove the values inserted by running the same commands without an argument:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/HostPort&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/GuestPort&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/Protocol&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/e1000/0/LUN#0/Config/web/HostPort&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/e1000/0/LUN#0/Config/web/GuestPort&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/e1000/0/LUN#0/Config/web/Protocol&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Now when you run this line the &#8216;Key&#8217; values will have gone:</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">$ VBoxManage getextradata &lt;virtualmachinename&gt; enumerate</div>
<p>Why do you want to do this? So you can create a Virtual server that you are going to do some work with, which you might perhaps use when snapshotting different build states of that server or your code; and you want to access it as though it were any other web server. That means using ssh to login, change your files, and viewing the web server in your local browser. The example here is based on experience of Ubuntu Linux, and was tested on both 10.04 (32 bit), and 10.10 (64 bit) using VirtualBox V4.0.4 r70112.</p>
<p>1) Install the server that you want to the VBox virtual machine in the usual way. Note the name you have given to VirtualBox for that machine (we&#8217;ll call that &lt;virtualmachinename&gt;), that is the name in the left hand machine listing in the VirtualBox Manager window.</p>
<p>2) Run the virtual server and make sure it is running ssh and your web server. (If you have a clean install of a LAMP server you might not have installed openssh, so do this the usual way i.e. EITHER # apt-get install ssh OR $ sudo apt-get install ssh, depending how you are logged in, what flavour of Linux, etc).</p>
<p>3) Close the virtual server and look in the log for VirtualBox &#8211; you need to find out how VBox &#8216;sees&#8217; the network adaptor. On an Ubuntu Linux machine the VBox log will be in /home/&lt;yourname&gt;/.VirtualBox/Machines/&lt;yourmachinename&gt;/Logs/VBox.log. Open this log file in a text editor and search for a block of text that refers to the network adaptor, a block that looks like this:</p>
<p>00:00:01.043   [/Devices/&lt;adaptername&gt;/0/Config/] (level 4)</p>
<p>00:00:01.043   AdapterType    &lt;integer&gt; = 0&#215;0000000000000000 (0)</p>
<p>00:00:01.043   CableConnected &lt;integer&gt; = 0&#215;0000000000000001 (1)</p>
<p>00:00:01.043   LineSpeed      &lt;integer&gt; = 0&#215;0000000000000000 (0)</p>
<p>00:00:01.043   MAC            &lt;bytes&gt;   = &#8220;09 0E 28 74 36 52&#8243; (cb=6)</p>
<p>You are basically looking for the network adaptor name field (&lt;adaptername&gt;). The text around that also details the MAC address of that adaptor, so you know it&#8217;s the right name you have found. In our machines from the example above the network adaptor was called &#8216;e1000&#8242;; yours might be called &#8216;pcnet&#8217; or something else. We need to know that for the VBox configuration changes, so take note of &lt;adaptername&gt;.</p>
<p>4) Now it&#8217;s time to tell VirtualBox about the ssh changes. You do this by running a set of three VBoxManage commands from the command line, like this:</p>
<p>$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/&lt;adaptername&gt;/0/LUN#0/Config/ssh/HostPort&#8221; 2222</p>
<p>$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/&lt;adaptername&gt;/0/LUN#0/Config/ssh/GuestPort&#8221; 22</p>
<p>$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/&lt;adaptername&gt;/0/LUN#0/Config/ssh/Protocol&#8221; TCP</p>
<p>Replace the &lt;virtualmachinename&gt; with the name of the server you saw earlier in VirtualBox. You will need quotes to enclose that name IF there are spaces in that name (we had a machine called &#8220;Ubuntu 10.04 LTS&#8221; and so we had to use quotes to enclose that name).</p>
<p>Note that what these commands do is map the virtual machine listener for ssh on port 22 to a localhost port which is, in this case, 2222. (Port selection and checking is a whole different topic which you can find out about elsewhere &#8211; we assume here that port 2222 is already free).</p>
<p>Check that the commands are understood by VirtualBox by using this from the command line. Once again, use the name of the virtualmachine with quotes if necessary:</p>
<p>$ VBoxManage getextradata &lt;virtualmachinename&gt; enumerate</p>
<p>The output of this should include some text like this:</p>
<p>Key: VBoxInternal/Devices/&lt;adaptername&gt;/0/LUN#0/Config/ssh/GuestPort, Value: 22</p>
<p>Key: VBoxInternal/Devices/&lt;adaptername&gt;/0/LUN#0/Config/ssh/HostPort, Value: 2222</p>
<p>Key: VBoxInternal/Devices/&lt;adaptername&gt;/0/LUN#0/Config/ssh/Protocol, Value: TCP</p>
<p>If that is correct, you are 90% completed now!</p>
<p>5) Test ssh.</p>
<p>Firstly, close the virtual machine if you haven&#8217;t already done so. Restart it, and from your local machine (i.e. not from inside the virtual machine!) run this command:</p>
<p>$ ssh -l &lt;username&gt; -p 2222 localhost</p>
<p>Replace the &lt;username&gt; field with your login for the virtual machine. You should get the prompts associated with the ssh login to any remote server. Once you have done this, you can map the local server&#8217;s file system using the normal means &#8211; for example in Ubuntu use &#8220;Places &#8211; Connect to server&#8230;&#8221; and connect as normal except to localhost on port 2222. Now you can see and amend files that are in the virtual machine.</p>
<p>6) Set up web server access</p>
<p>This is the same sort of procedure you used for ssh, except we&#8217;re going to map local port 8888 to the virtual server&#8217;s web port 80:</p>
<p>$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/&lt;adaptername&gt;/0/LUN#0/Config/web/HostPort&#8221; 8888</p>
<p>$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/&lt;adaptername&gt;/0/LUN#0/Config/web/GuestPort&#8221; 80</p>
<p>$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/&lt;adaptername&gt;/0/LUN#0/Config/web/Protocol&#8221; TCP</p>
<p>Check from the command line with:</p>
<p>$ VBoxManage getextradata &lt;virtualmachinename&gt; enumerate</p>
<p>Where you should see some text like:</p>
<p>Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/web/GuestPort, Value: 80</p>
<p>Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/web/HostPort, Value: 8888</p>
<p>Key: VBoxInternal/Devices/e1000/0/LUN#0/Config/web/Protocol, Value: TCP</p>
<p>7) Access virtual web server</p>
<p>Go to your web browser and enter:</p>
<p>http://localhost:8888</p>
<p>You should now see the index page for the virtual server. All done &#8211; you can now ssh into the virtual machine server, change files, and test your changes using the local browser.</p>
<p> <img src='http://kgutteridge.co.uk/blog/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Remove settings</p>
<p>Once you are done and you wish to reverse these change, you can remove the values inserted by running the same commands without an argument:</p>
<p>$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/HostPort&#8221;</p>
<p>$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/GuestPort&#8221;</p>
<p>$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/e1000/0/LUN#0/Config/ssh/Protocol&#8221;</p>
<p>$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/e1000/0/LUN#0/Config/web/HostPort&#8221;</p>
<p>$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/e1000/0/LUN#0/Config/web/GuestPort&#8221;</p>
<p>$ VBoxManage setextradata &lt;virtualmachinename&gt; &#8220;VBoxInternal/Devices/e1000/0/LUN#0/Config/web/Protocol&#8221;</p>
<p>Now when you run this line the &#8216;Key&#8217; values will have gone:</p>
<p>$ VBoxManage getextradata &lt;virtualmachinename&gt; enumerate</p>
]]></content:encoded>
			<wfw:commentRss>http://kgutteridge.co.uk/blog/2011/03/17/set-up-a-virtualbox-localised-web-server-for-ssh-and-web-access/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spinvox am I the only person who is not suprised?</title>
		<link>http://kgutteridge.co.uk/blog/2009/07/23/spinvox-am-i-the-only-person-who-is-not-suprised/</link>
		<comments>http://kgutteridge.co.uk/blog/2009/07/23/spinvox-am-i-the-only-person-who-is-not-suprised/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 22:52:10 +0000</pubDate>
		<dc:creator>Kieran</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[spinvox]]></category>

		<guid isPermaLink="false">http://kgutteridge.co.uk/blog/?p=81</guid>
		<description><![CDATA[Lots of negative press today for Spinvox mainly coming from the BBC and Moconews. This strikes me a little odd, as whilst I have always felt that if Spinvox&#8217;s voice recognition software was half as good as the claims made about it, they would not be dealing with mobile carriers and consumers and only charging [...]]]></description>
			<content:encoded><![CDATA[<p>Lots of negative press today for <a href="http://www.spinvox.com/">Spinvox</a> mainly coming from the <a href="http://www.bbc.co.uk/blogs/technology/2009/07/the_spinning_of_spinvox.html">BBC</a> and <a href="http://paidcontent.co.uk/article/419-spinvox-paying-staff-in-stock-to-save-on-costs/">Moconews</a>. This strikes me a little odd, as whilst I have always felt that if Spinvox&#8217;s voice recognition software was half as good as the claims made about it, they would not be dealing with mobile carriers and consumers and only charging £5 a month for the service, when the medical and legal professions would pay vast sums for this service and not need to be &#8220;sold&#8221; the product, as they already know the problem exists.</p>
<p>The fact that it has come as a shock to people, must only be people who have never used the service as it was always plainly apparent that Spinvox were using the mechanical turk to achieve a lot of their message transactions.  This makes me laugh much like the uproar a few years ago when it was &#8220;revealed&#8221; that the dictionary corner on Countdown were getting assistance from other people in the studio team! I am fairly sure Goldman Sachs and Spinvoxes other investors would have been able to do simple calculations as to whether the amount of people needed to transcribe the messages to text was above the break even point and therefore the business could scale.</p>
<p>For all the bad press it has received today, the simple fact is that they had an innovative service people were willing to pay for &#8211; unlike Twitter, Facebook etc which are struggling to find meaningful revenue streams from their user base. They have however misled the press and potential customers as to the power of their D2 technology and maybe this is why people feel their expectations have been betrayed.</p>
]]></content:encoded>
			<wfw:commentRss>http://kgutteridge.co.uk/blog/2009/07/23/spinvox-am-i-the-only-person-who-is-not-suprised/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello World</title>
		<link>http://kgutteridge.co.uk/blog/2008/11/21/hello-world/</link>
		<comments>http://kgutteridge.co.uk/blog/2008/11/21/hello-world/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 20:26:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://kgutteridge.co.uk/blog/?p=3</guid>
		<description><![CDATA[Well it had to be!!!]]></description>
			<content:encoded><![CDATA[<p>Well it had to be!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://kgutteridge.co.uk/blog/2008/11/21/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
