<?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>Matthew Atkin</title>
	<atom:link href="http://fusionfox.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://fusionfox.co.uk</link>
	<description>BSc (Hons) Computing Science</description>
	<lastBuildDate>Fri, 02 Mar 2012 20:49:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Backing up virtual machines to an external USB hard drive from vSphere</title>
		<link>http://fusionfox.co.uk/2012/03/02/backing-up-virtual-machines-to-an-external-usb-hard-drive-from-vsphere/</link>
		<comments>http://fusionfox.co.uk/2012/03/02/backing-up-virtual-machines-to-an-external-usb-hard-drive-from-vsphere/#comments</comments>
		<pubDate>Fri, 02 Mar 2012 20:49:57 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[HDD]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[virtualisation]]></category>

		<guid isPermaLink="false">http://fusionfox.co.uk/?p=150</guid>
		<description><![CDATA[I recently wanted to back up the virtual machines stored on my server running ESXi 5, but the only other media I had lying around was an external USB drive. After some reading I discovered that it is not possible &#8230;<p class="read-more"><a href="http://fusionfox.co.uk/2012/03/02/backing-up-virtual-machines-to-an-external-usb-hard-drive-from-vsphere/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>I recently wanted to back up the virtual machines stored on my server running ESXi 5, but the only other media I had lying around was an external USB drive. After some reading I discovered that it is not possible to mount a USB device as a datastore in ESXi, however it is possible to mount a NFS volume as a datastore.</p>
<p>To get around this, I created a new small virtual machine running Ubuntu Server 11.10, added a USB controller and the USB device (external drive) to the VM in vSphere, set the drive to mount at startup of the machine, configured it as a NFS share and then added the NFS share as a datastore in vSphere. The steps I followed are shown below:</p>
<p><strong>Setting ESXi to pass the connected USB drive to the virtual machine</strong><br />
After creating the new VM containing Ubuntu Server and connecting the USB external hard drive to my ESXi server, it is necessary to tell ESXi which VM it should connect this USB device to.</p>
<ul>
<li>Right click on the VM and select <strong>Edit Settings&#8230;</strong></li>
<li>On the <strong>Hardware</strong> tab click <strong>Add&#8230;</strong> and choose <strong>USB Controller</strong> as the Device Type. Controller type can be left as <strong>xHCI</strong>.</li>
<li>Click <strong>Add&#8230;</strong> again and choose <strong>USB Device</strong>, the external hard drive should be listed as a host USB device.</li>
<li>This USB hard drive can now be accessed by your new VM.</li>
</ul>
<p><strong>Setting the USB drive to mount at startup of the virtual machine</strong><br />
If you are using Ubuntu Server as I am, the USB drive will not mount automatically. In order to get the device to mount automatically every time the VM starts, add an entry to the fstab file that stores details about the static file system. This assumes that the drive has been partitioned already (<a title="Ubuntu Installing A New Hard Drive" href="https://help.ubuntu.com/community/InstallingANewHardDrive" target="_blank">see guide for Ubuntu here</a>).</p>
<ul>
<li>On the VM: create a folder at the point you wish to mount your drive, I used <code>/media/WD-NFS</code>, and set permissions to 777.</li>
<li>Find the unique identifier for your drive using <code>blkid</code> in the terminal and note the UUID.</li>
<li>Open the file <code>/etc/fstab</code>.</li>
<li>Enter a new line at the bottom of this file that looks something like this:<br />
<code>UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /media/WD-NFS ext4 defaults 0 0</code><br />
	Where the first item is the UUID of the drive copied in a previous step, the second item is the file path of the mount point folder created in a previous step and the third item is the file system used on the drive. For a more detailed explanation of the fstab file see <a href="https://help.ubuntu.com/community/Fstab" title="Ubuntu fstab documentation" target="_blank">the Ubuntu documentation here</a>.</li>
<li>If you now restart the VM the USB drive should be mounted at <code>/media/WD-NFS</code></li>
</ul>
<p><strong>Configuring the drive as an NFS share</strong><br />
This section follows the same general instructions as the <a href="https://help.ubuntu.com/community/SettingUpNFSHowTo" title="Ubuntu Setting Up NFS">Ubuntu documentation found here</a> except that we have already mounted our drive.</p>
<ul>
<li>Install the NFS server: <code>apt-get install nfs-kernel-server</code></li>
<li>In the file <code>/etc/default/nfs-kernel-server</code> set <code>NEED_SVCGSSD=no</code></li>
<li>In the file <code>/etc/default/nfs-common</code> set <code>NEED_IDMAPD=yes</code> and <code>NEED_GSSD=no</code></li>
<li>In the file <code>/etc/exports</code> add the following line:<br />
<code>/media/WD-NFS 192.168.1.0/24(rw,nohide,insecure,no_subtree_check,async)</code><br />
Where the first item is the file path of the mount point of your drive and the second is the network address with network prefix that specifies the local network this drive will be shared on. For a more detailed explanation of the exports file see the documentation linked at the start of this section.</li>
<li>Restart the service: <code>/etc/init.d/nfs-kernel-server restart</code></li>
</ul>
<p><strong>Adding the NFS share as a datastore in vSphere</strong><br />
Back in vSphere, the USB hard drive being shared over NFS can be added as a datastore.</p>
<ul>
<li>Select your host server in the <strong>Inventory</strong> list and open the <strong>Configuration</strong> tab.</li>
<li>In the <strong>Hardware</strong> list select <strong>Storage</strong> and click <strong>Add Storage&#8230;</strong></li>
<li>Select <strong>Network File System</strong> as the storage type.</li>
<li>For the server, enter the IP address/name of the VM you mounted your USB drive to</li>
<li>For the folder, enter the full path to the NFS share on that machine (in this case <code>/media/WD-NFS</code>)</li>
<li>Finish the wizard.</li>
</ul>
<p>The USB drive should now be shared using NFS and listed as a datastore in vSphere. Now you are able to browse both your VSXi datastore and the USB drive datastore (and also copy files between the two).</p>
]]></content:encoded>
			<wfw:commentRss>http://fusionfox.co.uk/2012/03/02/backing-up-virtual-machines-to-an-external-usb-hard-drive-from-vsphere/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a remote torrent server/seedbox</title>
		<link>http://fusionfox.co.uk/2011/11/23/creating-a-remote-torrent-serverseedbox/</link>
		<comments>http://fusionfox.co.uk/2011/11/23/creating-a-remote-torrent-serverseedbox/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 20:23:27 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[linkedin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[10.7]]></category>
		<category><![CDATA[deluge]]></category>
		<category><![CDATA[file server]]></category>
		<category><![CDATA[file transfer]]></category>
		<category><![CDATA[lion]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[netatalk]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[torrent]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xubuntu]]></category>

		<guid isPermaLink="false">http://fusionfox.co.uk/?p=132</guid>
		<description><![CDATA[The first use I found for my ESXi server, I wanted a way to download and seed torrents without having to leave my laptop switched on all the time. However, I still wanted to check on the progress of torrents, &#8230;<p class="read-more"><a href="http://fusionfox.co.uk/2011/11/23/creating-a-remote-torrent-serverseedbox/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>The first use I found for <a title="Building a VMware ESXi Whitebox Server" href="http://fusionfox.co.uk/2011/11/23/building-a-vmware-esxi-whitebox-server/" target="_blank">my ESXi server</a>, I wanted a way to download and seed torrents without having to leave my laptop switched on all the time. However, I still wanted to check on the progress of torrents, control them from my laptop running OS X Lion and be able to reach the files.</p>
<p>The solution I created uses the following:</p>
<ul>
<li><a href="http://www.xubuntu.org/" target="_blank">Xubuntu 11.10</a> for the guest OS as I am familiar with Ubuntu but prefer lightweight</li>
<li><a href="http://deluge-torrent.org/" target="_blank">Deluge 1.3.3</a> for the torrent software as it comes with the ability to run headless and have a web GUI</li>
<li><a href="http://netatalk.sourceforge.net/" target="_blank">Netatalk 2.2 (beta4-1)</a> to allow AFP file transfer between the server and my OS X laptop</li>
</ul>
<p>What follows is a quick overview of how I got it all working, I have to give thanks to this guide which I used a lot although it is slightly out of date now:<br />
<a href="http://www.kremalicious.com/2008/06/ubuntu-as-mac-file-server-and-time-machine-volume/" target="_blank">http://www.kremalicious.com/2008/06/ubuntu-as-mac-file-server-and-time-machine-volume/</a></p>
<p>First I downloaded and installed Xubuntu in a virtual machine on my ESXi server and installed all available updates.</p>
<p>I then gave the machine a static IP as I would need to know the address it was using later:</p>
<pre class="brush: bash; title: ; notranslate">sudo pico /etc/network/interfaces</pre>
<p>And changed it to look something like this:</p>
<pre class="brush: plain; title: ; notranslate">auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1</pre>
<p>Where the &#8216;address&#8217; line is the static IP I&#8217;m setting for this computer.</p>
<p>I then changed the hosts file to match this new IP address:</p>
<pre class="brush: bash; title: ; notranslate">sudo pico /etc/hosts</pre>
<pre class="brush: plain; title: ; notranslate">127.0.0.1	localhost
192.168.1.100	ComputerName.local	ComputerName</pre>
<p>Next, I installed Netatalk:</p>
<pre class="brush: bash; title: ; notranslate">sudo apt-get netatalk</pre>
<p><a href="http://www.kremalicious.com/2008/06/ubuntu-as-mac-file-server-and-time-machine-volume/#netatalk2" title="HowTo: Make Ubuntu A Perfect Mac File Server And Time Machine Volume" target="_blank">Following parts 2 and 3 of this guide</a>, I changed the Netatalk configuration files as needed and configured shared volumes.</p>
<p>When it came to editing the AppleVolumes.default file I had luck getting it to work with OS X Lion by using the DBD scheme:</p>
<pre class="brush: plain; gutter: false; title: ; notranslate">/home/username/SharedFile SharedFile allow:username
cnidscheme:dbd options:usedots,upriv</pre>
<p>Continuing with the guide, I then installed and configured the Avahi daemon.</p>
<p>Once I had tested that I could successfully view the files on the server from my Mac, I went on to install Deluge</p>
<pre class="brush: bash; title: ; notranslate">sudo apt-get install deluge</pre>
<p>The easiest way to configure Deluge is to use the client GUI on the server and then connect using the web interface when you have finished.</p>
<p>The best information on running Deluge in this way can be found here:<br />
<a href="http://dev.deluge-torrent.org/wiki/UserGuide/ThinClient" target="_blank">http://dev.deluge-torrent.org/wiki/UserGuide/ThinClient</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fusionfox.co.uk/2011/11/23/creating-a-remote-torrent-serverseedbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building a VMware ESXi Whitebox Server</title>
		<link>http://fusionfox.co.uk/2011/11/23/building-a-vmware-esxi-whitebox-server/</link>
		<comments>http://fusionfox.co.uk/2011/11/23/building-a-vmware-esxi-whitebox-server/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 18:04:20 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[linkedin]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[ASUS]]></category>
		<category><![CDATA[M4A78LT-M]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[virtualisation]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[VSXi]]></category>
		<category><![CDATA[VSXi 5.0]]></category>
		<category><![CDATA[whitebox]]></category>

		<guid isPermaLink="false">http://fusionfox.co.uk/?p=124</guid>
		<description><![CDATA[For my own personal amusement and to get some experience installing and administrating a VMware ESXi server, I decided to build my own! After much research of the Whitebox HCL I decided on the parts that I was fairly certain &#8230;<p class="read-more"><a href="http://fusionfox.co.uk/2011/11/23/building-a-vmware-esxi-whitebox-server/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>For my own personal amusement and to get some experience installing and administrating a VMware ESXi server, I decided to build my own! After much research of the <a title="ESXi Whitebox HCL" href="http://www.vm-help.com/esx40i/esx40_whitebox_HCL.php" target="_blank">Whitebox HCL</a> I decided on the parts that I was fairly certain would work with ESXi and put together this:</p>
<p><img class="aligncenter size-full wp-image-126" title="FoxBox" src="http://fusionfox.co.uk/wp-content/uploads/2011/11/DSCN2169.jpg" alt="FoxBox" width="700" height="525" /></p>
<table style="margin: auto;">
<tr>
<td>Motherboard</td>
<td>ASUS M4A78LT-M</td>
</tr>
<tr>
<td>CPU</td>
<td>AMD Athlon II X3 Tri Core 450 3.20GHz</td>
</tr>
<tr>
<td>RAM</td>
<td>Corsair Value 8GB (4x2GB) DDR3 PC3-10666C9 1333MHz</td>
</tr>
<tr>
<td>Network Card</td>
<td>Intel PRO/1000 GT PCI Desktop Adapter</td>
</tr>
<tr>
<td>Storage</td>
<td>Seagate Barracuda 1TB SATA-II 32MB Cache</td>
</tr>
<tr>
<td>Case</td>
<td>Cooler Master Elite 360 Mini Tower Case</td>
</tr>
<tr>
<td>Power</td>
<td>OcUK Swift 500W V2</td>
</tr>
</table>
<p>&nbsp;<br />
Installing VMware ESXi 5.0 on it was a surprisingly smooth process, I wasn&#8217;t even sure if it was going to work at all when I started but it ran with no errors at all.</p>
<p>I now use it to test ideas, practice networking techniques and play with different Operating Systems knowing that I&#8217;m easily able to swap out one virtual machine for another whenever I need to. As I find different uses for it I will probably be posting about them here.</p>
]]></content:encoded>
			<wfw:commentRss>http://fusionfox.co.uk/2011/11/23/building-a-vmware-esxi-whitebox-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accessing files on the University of Huddersfield Linux filesystem</title>
		<link>http://fusionfox.co.uk/2011/11/23/accessing-files-on-the-university-of-huddersfield-linux-filesystem/</link>
		<comments>http://fusionfox.co.uk/2011/11/23/accessing-files-on-the-university-of-huddersfield-linux-filesystem/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 11:46:38 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[linkedin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[University]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[huddersfield]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[tar]]></category>
		<category><![CDATA[university of huddersfield]]></category>

		<guid isPermaLink="false">http://fusionfox.co.uk/?p=52</guid>
		<description><![CDATA[There is no system in place to directly access files saved when working in the Linux labs, to do so you must first connect to the externally facing server Helios, from there connect to server Ouranos and then drag the &#8230;<p class="read-more"><a href="http://fusionfox.co.uk/2011/11/23/accessing-files-on-the-university-of-huddersfield-linux-filesystem/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>There is no system in place to directly access files saved when working in the Linux labs, to do so you must first connect to the externally facing server <strong>Helios</strong>, from there connect to server <strong>Ouranos</strong> and then drag the files you want back with you to your computer. This is the basic process:</p>
<ol>
<li>Connect to <strong>Helios</strong></li>
<li>Connect to <strong>Ouranos</strong></li>
<li>Pack up the folder you want</li>
<li>Disconnect from <strong>Ouranos</strong></li>
<li>Copy file <strong>Ouranos</strong> &gt; <strong>Helios</strong></li>
<li>Disconnect from <strong>Helios</strong></li>
<li>Copy file <strong>Helios</strong> &gt; your computer</li>
</ol>
<p>&nbsp;</p>
<h3>Windows</h3>
<ul>
<li>Open <a title="PuTTY: a free telnet/ssh client" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/" target="_blank">PuTTY</a></li>
<li>Connect to <strong>Helios</strong> using the following Host Name</li>
<pre class="brush: plain; title: ; notranslate">helios.hud.ac.uk</pre>
<li>Connect to <strong>Ouranos</strong></li>
<pre class="brush: bash; title: ; notranslate">ssh ouranos</pre>
<li>Find the folder you need</li>
<li>Pack the folder up into a single file</li>
<pre class="brush: plain; title: ; notranslate">tar -czf new_filename.tar.gz directory_name</pre>
<li>Disconnect from <strong>Ouranos</strong></li>
<pre class="brush: bash; title: ; notranslate">exit</pre>
<li>Connect to <strong>Ouranos</strong> with FTP, find and copy the file you just made from <strong>Ouranos</strong> to <strong>Helios</strong></li>
<pre class="brush: bash; title: ; notranslate">sftp ouranos</pre>
<pre class="brush: plain; title: ; notranslate">get new_filename.tar.gz</pre>
<p>(Hint: While using FTP interactively, use the usual Unix commands for navigating the file structure, <em>ls</em>, <em>cd</em> etc.)</p>
<li>Disconnect from <strong>Helios</strong></li>
<pre class="brush: bash; title: ; notranslate">exit</pre>
<li>Use a FTP client to copy the file you just made from <strong>Helios</strong> to your computer, I recommend <a title="FileZilla - The free FTP solution" href="http://filezilla-project.org/" target="_blank">FileZilla</a>. Use the following as the host:</li>
<pre class="brush: plain; title: ; notranslate">sftp://helios.hud.ac.uk</pre>
<p>(Port: <em>Leave blank</em>)</p>
<li>Extract your files, most common archiving utilities for Windows should be able to extract from TAR files.</li>
</ul>
<p>&nbsp;</p>
<h3>Linux/OS X</h3>
<ul>
<li>Open a new Terminal</li>
<li>Connect to <strong>Helios</strong> with your student ID</li>
<pre class="brush: bash; title: ; notranslate">ssh u0899999@helios.hud.ac.uk</pre>
<li>Connect to <strong>Ouranos</strong></li>
<pre class="brush: bash; title: ; notranslate">ssh ouranos</pre>
<li>Find the folder you need</li>
<li>Pack the folder up into a single file</li>
<pre class="brush: plain; title: ; notranslate">tar -czf new_filename.tar.gz directory_name</pre>
<li>Disconnect from <strong>Ouranos</strong></li>
<pre class="brush: bash; title: ; notranslate">exit</pre>
<li>Connect to <strong>Ouranos</strong> with FTP, find and copy the file you just made from <strong>Ouranos</strong> to <strong>Helios</strong></li>
<pre class="brush: bash; title: ; notranslate">sftp ouranos</pre>
<pre class="brush: plain; title: ; notranslate">get new_filename.tar.gz</pre>
<p>(Hint: While using FTP interactively, use the usual Unix commands for navigating the file structure, <em>ls</em>, <em>cd</em> etc.)</p>
<li>Disconnect from <strong>Helios</strong></li>
<pre class="brush: bash; title: ; notranslate">exit</pre>
<li>Connect to <strong>Helios</strong> with FTP, find and copy the file you just made from <strong>Helios</strong> to your computer</li>
<pre class="brush: bash; title: ; notranslate">sftp u0899999@helios.hud.ac.uk</pre>
<pre class="brush: plain; title: ; notranslate">get new_filename.tar.gz</pre>
<li>Disconnect from <strong>Helios</strong></li>
<pre class="brush: bash; title: ; notranslate">exit</pre>
<li>Extract your files</li>
<pre class="brush: plain; title: ; notranslate">tar -xvf new_filename.tar.gz</pre>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://fusionfox.co.uk/2011/11/23/accessing-files-on-the-university-of-huddersfield-linux-filesystem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Content coming soon</title>
		<link>http://fusionfox.co.uk/2011/11/21/content-coming-soon/</link>
		<comments>http://fusionfox.co.uk/2011/11/21/content-coming-soon/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 18:44:15 +0000</pubDate>
		<dc:creator>Matthew</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://fusionfox.co.uk/?p=65</guid>
		<description><![CDATA[Content coming soon :)]]></description>
			<content:encoded><![CDATA[<p>Content coming soon :)</p>
]]></content:encoded>
			<wfw:commentRss>http://fusionfox.co.uk/2011/11/21/content-coming-soon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

