<?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>Blog@Surfulater &#187; Hardware</title>
	<atom:link href="http://blog.surfulater.com/category/hardware/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.surfulater.com</link>
	<description>Surfulater, the journey continues...</description>
	<lastBuildDate>Mon, 05 Dec 2011 09:07:49 +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>XEN and the art of Virtualization</title>
		<link>http://blog.surfulater.com/2007/01/10/xen-and-the-art-of-virtualization/</link>
		<comments>http://blog.surfulater.com/2007/01/10/xen-and-the-art-of-virtualization/#comments</comments>
		<pubDate>Tue, 09 Jan 2007 20:27:44 +0000</pubDate>
		<dc:creator>nevf</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://blog.surfulater.com/2007/01/10/xen-and-the-art-of-virtualization/</guid>
		<description><![CDATA[I endeavour to spend a bit of time over the Christmas/New Year break trying out and learning about new things as these opportunities don&#8217;t present themselves much through the year. On Friday night over dinner, a good friendÂ Russell Robinson mentioned &#8230; <a href="http://blog.surfulater.com/2007/01/10/xen-and-the-art-of-virtualization/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I endeavour to spend a bit of time over the Christmas/New Year break trying out and learning about new things as these opportunities don&#8217;t present themselves much through the year. On Friday night over dinner, a good friendÂ <a href="http://www.tectite.com/" target="_blank">Russell Robinson</a> mentioned a virtualization productÂ <a href="http://www.xensource.com/" target="_blank">XEN</a>, which was being put to very good use where he does some contracting work. I&#8217;d heard of XEN but didn&#8217;t know anythingÂ about it. I still have <a href="http://blog.surfulater.com/2006/12/29/building-a-new-pc-for-xmas-because-i-want-a-nas-part-1/" target="_blank">Cherryl&#8217;s new PC</a> that I can play around with, so this seemed like a good time to check XEN out.<span id="more-83"></span></p>
<p>Computer <a href="http://en.wikipedia.org/wiki/X86_virtualization" target="_blank">virtualization</a> enables you to run a <em>guest</em> operating system from within another <em>host</em> operating system. Lets say you are running Windows XP and would like to run Linux <strong>at the same time</strong>, well that&#8217;s where virtualization comes into play.</p>
<p><a href="http://en.wikipedia.org/wiki/VMWare" target="_blank">VMWare</a> Workstation is one of the best known and most widely used virtualization products. I purchased a copy about 3 years back when I finally owned a PC powerful enough to run it and wish I&#8217;d started using it years before. I use it for software testing as you can start with a cleanly installed version of Windows or one with lots of programs installed and test against known environments and base lines. I run versions of Windows 98,Â 2000 and XP under VMWare.</p>
<p>Besides testing the programs I develop, I use VMWare for testing software I download from the Internet. This lets me runÂ these programs in a safe secure sandboxed environment with no way any malicious program canÂ touch my real host operating system, its disk drives, registry etc. As far as I&#8217;m concerned a sandboxed environment or one where you can roll back the clock, are the only ways to try software you download from the Internet, unless that is, you know it is from a reputable company. The prime reasonÂ PC&#8217;s become such a mess is because of all the programs people try and then uninstall, but bits and pieces are frequently left behind or worse.</p>
<p>VMWare and similar programs like Microsoft&#8217;s free <a href="http://en.wikipedia.org/wiki/Microsoft_Virtual_PC" target="_blank">Virtual PC</a> are what&#8217;s called virtual machine emulators which add a layer that hides the physical PC&#8217;s hardware and present a new isolated set of virtual hardware. Emulation and virtualization is done in software and requires a fair chunk of processing power. This means you needÂ a reasonably powerful PC with plenty of memory. The downside of all this is thatÂ the guest operating systems run a quite a bitÂ slower than if they were running directly on the same PC and they also have restricted resources available to them. Nevertheless the advantages of these products clearly outweigh their disadvantages.</p>
<p>New <a href="http://en.wikipedia.org/wiki/X86_virtualization#Hardware_support" target="_blank">hardware virtualization</a> technologies introduced by Intel and AMD dramatically change this picture and enable guest operating systems to run at something a lot closer to full speed. This is where XEN fits in. I have to say I found the <a href="http://en.wikipedia.org/wiki/X86_virtualization#Hardware_support" target="_blank">XEN Web site</a> disappointing and confusing. It seems like they expect everyone to know what XEN does before they visit the site. I couldn&#8217;t find any basic overview material that gave me the on-high picture of XEN, how it works and how you use it. I just kept reading how it will give me near <em>bare metal</em> performance!</p>
<p>Fortunately they haveÂ the <a href="http://www.xensource.com/products/xen_express/index.html" target="_blank">XEN Express</a> editionÂ free starter pack. I downloaded this, <a title="How to burn ISO images" href="http://blog.surfulater.com/2005/08/06/software-housekeeping/" target="_blank">burnt the ISO image</a> to a CD and went from there. For some reason I had trouble though as XEN couldn&#8217;t locate or initialize my Ethernet Adapter. I tried several times to no avail. XEN Express is built aroundÂ a modified Linux distribution. The ASUS motherboard I&#8217;m using on this particular PC hasÂ 1G LAN on-board which uses an nVidia nForce 430 chip. Under WinXP you need to install drives before the LAN port is recognized, so I could understand why Linux might have trouble. I temporarily gave up and played with installing some other OS&#8217;s on this new PC, including versions of Linux and MS Vista and they were all able to initialize the Ethernet Adapter (eth0). So I gave XEN another shot and this time it worked!</p>
<p>XEN Server is very a different product to VMWare Workstation and its ilk and is designed for a different set of users. You install XEN Server on a dedicated computer, preferably one with lots of grunt,Â memory and hard disk space, typically a server. You then use a different PC to access and administer the XEN Server. This latter PC can be most any PC with a network connection. You install the XenSource Administrator Console from the same CD as the Server, start the Admin Console and enter the IP address of the XEN Server <em>(displayed on the server screen)</em> and your login password <em>(set when you installed the server). </em>Once theÂ connection to the server is established a Management window is displayed. From here you can Install a new XEN VM (Guest OS), Power On <em>(start)</em> a VM, Reboot and Shutdown a VM and more.</p>
<p>Lets see a few screen shots from the <strong>Administrator Console</strong> program.</p>
<p>This shows the <strong>Overview</strong> information for the <strong>XenServer</strong>. It includes full details of the host computer, its network adapters, amount of free disk space and how much memory is allocated to each of the installed XenVM&#8217;s. From here you can Install a new XenVM <em>(Operating System)</em>, Reboot or Shutdown the Server, access its Console, view Performance graphs, and manage installed XenVM&#8217;s.</p>
<div style="text-align: center"><img title="Console Host Overview" alt="Console Host Overview" src="http://blog.surfulater.com/images/AdminConsoleHost.jpg" /></div>
<p>Â </p>
<p>This shot shows the <strong>Overview of a XenVM</strong> guest operating system, specifically Windows XP. From here you can change the amount of memory allocated to the VM, alter the virtual diskÂ size, add or remove disks andÂ Ethernet adapters and change the CD-ROM Drive. You can also Reboot or Shutdown the OS if it is running or Power On, Clone, Export or Uninstall the VM if it is Off. Note that to change memory or drive size etc. a VM must be Off.</p>
<p>I was impressed with the ability to add more virtual disks and resize them. There was a bit of mucking around in WinXP to recognize the new drive, but it wasn&#8217;t too bad. Disk drives in a VM scenario aren&#8217;t physical hard disk drives, but a chunks of space on a physical drive. As I mentioned earlier XenServer uses Linux which includes <a href="http://en.wikipedia.org/wiki/Logical_Volume_Manager_%28Linux%29" target="_blank">LVM</a> or Logical Volume Management whichÂ provides the capabilities to create and resize these virtual disks.</p>
<div style="text-align: center"><img title="XenVM Overview" alt="XenVM Overview" src="http://blog.surfulater.com/images/AdminConsoleXPOverview.jpg" /></div>
<p>Â </p>
<p>The next screen shot shows the <strong>Graphical Console</strong> for the Windows XP XenVM shown above. The Graphical Console uses <a title="Info on VNC" href="http://en.wikipedia.org/wiki/Virtual_Network_Computing" target="_blank">VNC</a> to view and interact with the operating systems running on the XenServer. As shown here you are only seeing a part of the XenVM operating systems screen and you need to vertically and possibly horizontally scroll to work with all parts of the screen. To make this easier you can Undock the VNC Graphical Console <em>(see below)</em> so it runs in a Window of its own, which should be the same size as the actual OS Screen.</p>
<p>If you&#8217;ve ever used VNC you&#8217;ll know it is ok but not great, in that screen redraws are a bit sluggish making the user experience less than ideal. You have to keep in mind though that this is a management console, and isn&#8217;t really something you would sit at and use as the real screen for the OS. VMWare Workstation is better in this regard as everything runs on the one computer and the guest OS screen appears in a Window with nowhere near the lag of VNC.</p>
<p>The real user of an XenVM would instead use Windows <a href="http://en.wikipedia.org/wiki/Terminal_Services" target="_blank">Remote Desktop</a> if the guest OS was Windows and for Linux you would use WinSCP, PuTTY and the like to get Shell access or VNC for GUI access. Or more likely just access it via. a Web Browser when the OS&#8217;s prime purpose is a Web Server.</p>
<div style="text-align: center"><img title="Graphical Console" alt="Graphical Console" src="http://blog.surfulater.com/images/AdminConsole1.jpg" /></div>
<p>This image shows a WinXP XenVM in an <strong>Undocked Graphical Console</strong> window. It would be very useful to be able to run the Administration Console on the XenServer itself, however it doesn&#8217;t seem that this is possible.</p>
<div style="text-align: center"><img title="Undocked" alt="Undocked" src="http://blog.surfulater.com/images/AdminConsoleXPGUIUnDock.jpg" /></div>
<p>Â </p>
<p>The next screen shot shows Debian Linux in the Graphical Console with a Web Browser showing our <a href="http://www.surfulater.com" target="_blank">Surfulater.com</a> Web site. You can also see the CPU % for each running XenVM and for Linux VM&#8217;s other information, like how much memory is being used, andÂ disk and network throughput. It is a pity this information isn&#8217;t shown for Windows OS&#8217;s. <em>Update: Installing the Xen WinXP Drivers resolved this.</em></p>
<div style="text-align: center"><img title="Debian Linux" alt="Debian Linux" src="http://blog.surfulater.com/images/AdminConsoleDebianGUI.jpg" /></div>
<p>Â </p>
<p>This last screen shows the XenServer Performance screen, which should speak for itself. You can also see similar pages for each running XenVM, but for Windows OS&#8217;s you only see CPU Usage as mentioned above.</p>
<div style="text-align: center"><img src="http://blog.surfulater.com/images/AdminConsoleHostPerf.jpg" /></div>
<p>Â </p>
<p>So who would use XenServer and why. First up for my use in software quality assurance and testing,Â VMWare Workstation is far better suited. However if I wanted to set up a box in the corner running Web Servers, Mail Servers and the like and I wanted multiple instances of Linux running, it would be ideal.</p>
<p>Another possible use would be a <a href="http://en.wikipedia.org/wiki/Small_office/home_office" target="_blank">SOHO</a> where you could effectively share a single server computer amongst all staff/family members, each with their own OS, Disk Space etc. I have to say this use is questionable though.</p>
<p>Web Hosting companies would certainly be able to make good use of XenServer as would Enterprise IT and these seem to be the markets Xen is aimed at.</p>
<p>Note that XenVM&#8217;s are currently limited to Windows XP and Windows 2003 Server, and RedHat and Debian Linux, so if you want to use anything else you are out of luck.</p>
<p>XenSource keep pushing <em>near bare metal</em> performance and while it is indeed very good and very impressive, it isn&#8217;t &#8220;near bare metal&#8221;. These are some WinXP benchmark results, with it installed directly on the PC, versus XenServer on the same PC with WinXP installed as an XenVM.</p>
<p>Drystone ALUÂ 14,538 MIPS Native XP, 7,048 MIPS XP on XenVM<br />
MM Integer 36,895 it/s Native XP, 17,800 it/s XP on XenVM<br />
Disk Burst Speed 226.1MB/sÂ Native XP, 142.2MB/sÂ on XenVM<br />
Disk Average Read Speed 63.2MB/sÂ Native XP, 9.7MB/s on XenVM. <em>This was fixed once the Xen XP Driver Installed.</em></p>
<p>* See my <a href="http://blog.surfulater.com/2007/01/10/xen-and-the-art-of-virtualization/#comment-8926" target="_blank">Comment 8</a> for an update on these performance issues.</p>
<p><em><strike>CPU benchmarks were down around 50% of native performance and Disk speed down around 15%. Three XenVM&#8217;s were running with two sitting idle. The drop in disk performance is significant and would impact heavily on disk bound processes.</strike></em> The PC has an AMD Athlon 64 X2 3800+ CPU, 1G DDR2 RAM and 2 x 320G SATA II Disk Drives.</p>
<p>Overall XenServer worked very well indeed. I did run into a problem where the Administration Console kept disconnecting from the server and restarting the Console program didn&#8217;t resolve this. In the end I had to hit the reset button on the server as I couldn&#8217;t restart it from the console. This resolved the console disconnection problem, but was a drastic measure in the extreme.</p>
<p>I also had problems with the XEN Servers CD-ROM drive where I wasn&#8217;t able to eject the drive so I could put in the next CD for a Windows 2003 Server installation. The only way I found to do this was to shut-down the XenVM. Same thing with Windows XP. The CD-ROM drive also couldn&#8217;t be written to, even though it is a burner. The Administration Console is a bit annoying in places as it continually interupts your work flow with confirmation prompts. It would be far better if these &#8220;Are you sure?&#8221; prompts included a &#8220;Do not ask again&#8221; option like I use in <a href="http://www.surfulater.com" target="_blank">Surfulater</a>.</p>
<p>XenServer has only recently been released, so you might want to sit back for a little while before using it in a production environment.</p>
<p>The addition of hardware virtualization to CPU&#8217;s is a leap forward for running virtualized operating systems at far better performance than software virtualization. I get the feeling we are just at the beginning with this new technology and we will see lots of new and interesting developments over the next few years.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.surfulater.com/2007/01/10/xen-and-the-art-of-virtualization/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Building a new PC for Xmas because I want a NAS &#8211; Part 1</title>
		<link>http://blog.surfulater.com/2006/12/29/building-a-new-pc-for-xmas-because-i-want-a-nas-part-1/</link>
		<comments>http://blog.surfulater.com/2006/12/29/building-a-new-pc-for-xmas-because-i-want-a-nas-part-1/#comments</comments>
		<pubDate>Thu, 28 Dec 2006 19:28:41 +0000</pubDate>
		<dc:creator>nevf</dc:creator>
				<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://blog.surfulater.com/2006/12/29/building-a-new-pc-for-xmas-because-i-want-a-nas-part-1/</guid>
		<description><![CDATA[In what seems like a previous life I was heavily into electronics, in fact it was my career for quite some time. I used to love buildingÂ electronic gadgets, predominantly digital, which progressed naturally into micro-computers. The first computer I built &#8230; <a href="http://blog.surfulater.com/2006/12/29/building-a-new-pc-for-xmas-because-i-want-a-nas-part-1/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In what seems like a previous life I was heavily into electronics, in fact it was my career for quite some time. I used to love buildingÂ electronic gadgets, predominantly digital, which progressed naturally into micro-computers. The first computer I built had 4K ROM, 16K RAM and used a cassette tape to load and save software. As anyone who was around back then will tell you, <em>&#8220;those were the days&#8221;.</em> The next step was, of course, dabbling in writing programs. With suchÂ limited memory available you had little choice but to write in <a href="http://en.wikipedia.org/wiki/Assembly_language" target="_blank">assembler language</a>, so you could squeeze as much as possible into the tiny space available. This was a truly amazing learning experience, where one&#8217;s ingenuity and perseverance were critical to success.<span id="more-80"></span></p>
<p>The <a href="http://en.wikipedia.org/wiki/CP/M" target="_blank">CP/M operating system</a> and the first commercial PCs came along a bit after this. The first real computer I owned was a <a href="http://en.wikipedia.org/wiki/Cromemco" target="_blank">Cromenco</a> System III which cost a fortune, had a dual 8&#8243; floppy disk drive, 64K of memory and a 21 slot S100 Motherboard. It also weighed a ton. I found these <a title="Old Computer Musuem" href="http://www.oldcomputermuseum.com/My_Collection.html" target="_blank">old computer pictures</a> while researching thisÂ article.Â </p>
<p>I started spending more and more time at the keyboard, than with a soldering iron and oscilloscope, eventually changing careers from electronics to software development.</p>
<p>Building electronic gizmos was always frustrating because you were forever having to go and buy parts to move forward, which meant <em>the flow</em> was continually being broken. Software is also made of parts, but the only tool you need is a computer, so you are <em>set free</em> to create, with few constraints to hold you back.Â Writing software was <em>(and largely still is)</em> all consuming and my interest in electronics faded, to be replaced with something far more interesting and challenging.Â I never did get into building &#8220;modern day PCs&#8221;, instead I&#8217;d spend time researching the latest hardware developments and then every few years or so I&#8217;d go and buy whatever PC I could afford at the time. My old computers would then becomeÂ hand-me-downs to my wife Cherryl. About 4 years ago we bought Cherryl a new PC, putting her well and truly ahead of me for a time.</p>
<p>Time to bring this story to the here and now. I&#8217;ve commented before that I&#8217;m <a href="http://blog.surfulater.com/2005/06/09/securing-information/" target="_blank">fanatical about backups</a> and for quite some time I&#8217;ve wanted to have a NAS Box, as yet another piece of our backup strategy.</p>
<p>NAS stands for <a href="http://en.wikipedia.org/wiki/Network-attached_storage" target="_blank">Network Attached Storage</a> and is, in essence, a box with one or more hard drives, an operating system of some sort and a Network (LAN) connection. You thenÂ backup your all important files to this NAS box and because it is on the LAN it is accessible by all of your PCs. The NAS box itself can be accessed using a Web Browser, so it doesn&#8217;t need a monitor or keyboard and can be tucked away in a corner, out of sight.</p>
<p>USB Hard Drives are a great backup device, but are limited in their capabilities and must be plugged into a PC that is always turned on, and accessible on the LAN.</p>
<p>NAS boxes have until recently, been too expensive for small home office use,Â but that is changingÂ with more affordableÂ NAS devicesÂ starting to appear,Â like the <a href="http://www.smallnetbuilder.com/content/view/24736/166/" target="_blank">Maxtor Shared Storage</a> and <a href="http://www.smallnetbuilder.com/content/view/29671/75/" target="_blank">D-Link DNS 323</a>. In fact I came very close to buying a 300G Maxtor, but in the end I didn&#8217;t, for several reasons. First the low end NAS devicesÂ have limited expansion capabilities, second they can be a world unto themselves and if something goes wrong you may be left with no option but return it for service, and third they are still expensive for what they are. Having said all that, if NAS is of interest, I encourage you to seriously consider these new devices.</p>
<p>Where did I turn next? A few months back during my ongoingÂ NAS research, I came across a software product named <a href="http://www.freenas.org/" target="_blank">FreeNAS</a>Â which enables you to use an old PC as a NAS box. This sounded very appealing indeed, especially seeing that I have around 6 old PCs gathering dust in the basement. So I went and extracted the newest of the old PCs, brought it upstairs to my office and tried to install FreeNAS. Unfortunately this wasn&#8217;t the success I&#8217;d hoped as I wasn&#8217;t able to get the PC to boot the operating system that FreeNAS uses, which is FreeBSD. I didn&#8217;t bother with the older PCs as they weren&#8217;t really up to the task and probably wouldn&#8217;t have worked anyway. I did spend a few hours on a newer PC which is more or less unused, but had no joy with that either. Next I tried Cherryl&#8217;s PC and it worked a treat, however she wouldn&#8217;t be too happy if I absconded with her PC, unless of course it was replaced with a new one. And that&#8217;s when things finally clicked into place!</p>
<p>Of all of our office PCs hers is the oldest, which still gets her by, but leaves a bit to be desired. Tied to this PC are aÂ 17&#8243; LCD and 17&#8243; CRT monitor and the CRT has been sad since day one. So the decision was made, instead of buying a low cost NAS box, we&#8217;d buy Cherryl a new PC and a new larger LCD Monitor and I&#8217;d use her old PC along with FreeNAS to build a NAS box. But then another penny dropped, why not <em>build a PC,</em> and with the Xmas break looming I could find some time for such a project. This appealed from day one, I had to get my hands dirty with the NAS box anyway, so why not go the extra mile and get just the PC we want, save some money, and learn a lot along the way.</p>
<p>I have to say this was all a bit daunting. MyÂ dabbling with electronics is pretty superficial these days. And where would I start, working out what Motherboard, CPU, Case, Hard Drives, Video card etc. to use. And the biggest worry of all was, will it work, or will I finish up with an expensive collection ofÂ  parts fit for nothing!</p>
<p>I&#8217;ll spare you from having to wait for the next installment and tell you the good news that yes I built it, yes it works and best of all it works very well indeed. It is easily the fastest, most powerful and <em>cheapest</em> computer we&#8217;ve ever owned. And it truly has been a great learning experience, which is continuing.</p>
<p>I&#8217;ll be writing several follow up articles which go into detail about building the PC, configuring it and later on about the NAS box, when that gets put together.</p>
<p>I&#8217;ll wrap this up with a picture or three of the new PC.Â </p>
<p>Picture 1: Unpacked Case and removed its Cover. I&#8217;ve used a MicroATX <em>(mATX)</em> case as I&#8217;m fed up with big tower cases.</p>
<p><img title="MicroATX Case" alt="MicroATX Case" src="http://blog.surfulater.com/images/AMD_PC_Build_017.jpg" align="middle" /></p>
<p>Picture 2: Motherboard and DVD Drive installed. The motherboard is mounted on a very neat slide out tray.</p>
<p><img title="Motherboard etc. in place" alt="Motherboard etc. in place" src="http://blog.surfulater.com/images/AMD_PC_Build_049.jpg" align="middle" /></p>
<p>Picture 3: Assembled, and running. Sitting next to my Dell Notebook. One more Hard Drive and a Floppy Drive waiting to be installed.</p>
<p><img title="It works" alt="It works" src="http://blog.surfulater.com/images/AMD_PC_Build_059.jpg" align="middle" /></p>
<p>If this all looks way over your head, don&#8217;t be put off just yet. I was actually very pleasantly surprised at just how painless the entire exercise was. And, of course, you get a great sense of satisfaction when you build something yourself.</p>
<p>In Part 2 I&#8217;ll discuss the specific components I chose and why, outline the PC assembly process and provide some tips from the lessons I learnt.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.surfulater.com/2006/12/29/building-a-new-pc-for-xmas-because-i-want-a-nas-part-1/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

