<?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 Hodgkins Blog</title>
	<atom:link href="http://www.hodgkins.net.au/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hodgkins.net.au</link>
	<description>System Administrator for ssw.com.au and all-round nerd.</description>
	<lastBuildDate>Wed, 11 Apr 2012 05:39:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>How to run VirtualBox on WHS 2011 &#8211; Part 2 of 2</title>
		<link>http://www.hodgkins.net.au/software/how-to-run-virtualbox-on-whs-2011-part-2-of-2/</link>
		<comments>http://www.hodgkins.net.au/software/how-to-run-virtualbox-on-whs-2011-part-2-of-2/#comments</comments>
		<pubDate>Tue, 10 Apr 2012 16:01:24 +0000</pubDate>
		<dc:creator>Matthew Hodgkins</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[manage virtualbox from web]]></category>
		<category><![CDATA[vbox web ui]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[virtualbox auto start]]></category>
		<category><![CDATA[virtualbox auto stop]]></category>
		<category><![CDATA[virtualbox web interface]]></category>
		<category><![CDATA[virtualbox webui]]></category>
		<category><![CDATA[virtualbox windows home server 2011]]></category>
		<category><![CDATA[vm whs 2011]]></category>
		<category><![CDATA[vm whs2011]]></category>
		<category><![CDATA[vms on whs2011]]></category>
		<category><![CDATA[whs2011]]></category>

		<guid isPermaLink="false">http://www.hodgkins.net.au/?p=460</guid>
		<description><![CDATA[Using VirtualBox to host VMs on WHS 2011, manage the VMs via a web interface, RDP to the VMs, and Auto start  and stop VMs.]]></description>
				<content:encoded><![CDATA[<p>If you have been following on from <a href="http://www.hodgkins.net.au/software/how-to-run-virtualbox-on-whs-2011-part-1/" target="_blank">Part 1 in this series</a>, I covered installing VirtualBox and how to manage VirtuaBox using the phpVirtualBox web interface. Hopefully you already have VirtualBox installed and running nicely on your Windows Home Server, and have a Virtual Machine or two.</p>
<p>All that’s left is to add the a few finishing touches too our configuration and we will have a great Virtual Machine hosting platform on top of Windows Home Server.</p>
<h3>Automatically Start and Stop Virtual Machines on Boot-Up and Shutdown</h3>
<p>On the rare occasion that you need to reboot your Windows Home Server, you want your Virtual Machines to be shutdown or paused and resumed when your server starts back up. Out of the box, VirtualBox doesn&#8217;t have this feature, but VBoxVMService can be configured to do this for us.</p>
<p>To perform these steps you are required to already have a Virtual Machine running on your system. The steps will need to be carried out for each Virtual Machine you want automatically stoped and started, so you will need to do this each time you add a Virtual Machine.</p>
<ol>
<li>Browse to <strong>C:\Apps\VBoxVMService </strong>and open <strong>VBoxVmService.ini</strong></li>
<li>Add the following lines to the end of the file, updating where necessary for your setup

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Vm0<span style="">&#93;</span></span>
<span style="color: #000099;">VmName</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">VirtualMachineName</span>
<span style="color: #000099;">ShutdownMethod</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">savestate</span>
<span style="color: #000099;">AutoStart</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">yes</span></pre></div></div>

<p><strong>[Vm0]</strong> is the number of the virtual machine you want to start. Increment this for each new additional virtual machine you add.</p>
<p><strong>VmName</strong> is the name of the virtual machine you want to start. This is case sensitive.</p>
<p><strong>ShutdownMethod</strong> can either be <strong>savestate</strong> (recommended) or <strong>acpipowerbutton</strong></li>
<li>To test if your configuration change worked easily:</li>
<ol>
<li>Open something in your Virtual Machine, like an Explorer window or a Task Manager</li>
<li>On the WHS, from the Start Menu | Open <strong>Services</strong> | Click on the <strong>VBoxVMService</strong> and click <strong>Stop</strong></li>
<li>Ensure you can no longer connect to your Virtual Machine (it’s just been put into a saved state)</li>
<li>In <strong>Services</strong> | Click on the <strong>VBoxVMService</strong> and click <strong>Start</strong></li>
<li>Try and connect to your Virtual Machine again – upon reconnect you should have whatever you left open still there which means your Virtual Machine was saved and resumed succesfully</li>
</ol>
</ol>
<p>&nbsp;</p>
<h3>Using Windows Accounts to Access the VirtualBox Web Interface</h3>
<p>Instead of using just another username and password you need to remember to access the phpVirtualBox web interface, you can use Windows Home Server user accounts. This involves making a settings change in IIS to enable user account authentication, and disabling the password prompt in the phpVirtualBox configuration.</p>
<ol>
<li>From the Start Menu | Open <strong>Internet Information Services (IIS) Manager</strong></li>
<li>In the left navigation pane expand <strong>Your Server Name </strong>| <strong>Sites</strong> | <strong>Default Web Site</strong> and click on the <strong>VM</strong> virtual directory we created in Part 1 | In the right hand pane open <strong>Authentication</strong><div class="img " style="width:406px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/How-to-run-VirtualBox-on-WHS-2011--Part-_150B/image_10.png" alt="Figure - Modify Authentication Properties of the VM Virtual Directory" width="406" height="447" />
	<div>Figure - Modify Authentication Properties of the VM Virtual Directory</div>
</div></li>
<li>In the <strong>Authentication </strong>screen<strong> </strong>select <strong>Anonymous Authentication</strong> and click <strong>Disabled </strong>in the action pane on the right | select <strong>Basic Authentication</strong> and click <strong>Enabled</strong>in the action pane on the right<div class="img " style="width:610px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/How-to-run-VirtualBox-on-WHS-2011--Part-_150B/image_11.png" alt="Figure - Disable Anonymous Authentication and Enable Basic" width="610" height="249" />
	<div>Figure - Disable Anonymous Authentication and Enable Basic</div>
</div></li>
<li>Now IIS has been configured, open <strong>C:\Apps\phpvirtualbox\config.php </strong>and uncomment (remove the # in-front) and update this line.

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Disable authentication</span>
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$noAuth</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span></pre></div></div>

</li>
<li>We also need to set some permissions on the <strong>C:\Windows\Temp</strong> folder, otherwise phpVirtualBox complains after the authentication change</li>
<ol>
<li>Browse to <strong>C:\Windows</strong> | Right click on the <strong>Temp</strong> folder | Choose <strong>Properties</strong></li>
<li>Click the <strong>Security</strong> tab and click <strong>Edit</strong></li>
<li>In the <strong>Permissions for Temp</strong> screen click <strong>Add</strong> and enter the name <strong>Authenticated Users</strong></li>
<li>After the account has been added put a tick in the <strong>Modify</strong>permissions box<div class="img " style="width:571px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/How-to-run-VirtualBox-on-WHS-2011--Part-_150B/image_12.png" alt="Figure - Give Authenticated Users Modify Permissions" width="571" height="369" />
	<div>Figure - Give Authenticated Users Modify Permissions</div>
</div></li>
</ol>
</ol>
<p>After you save the configuration file, browse to <a href="https://yourname.homeserver.com/vm">https://yourname.homeserver.com/vm</a> and you will be given a password dialog box. Enter your WHS username and password and you will be logged onto the phpVirtualBox interface.</p>
<p><center><br /><div class="img " style="width:492px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/How-to-run-VirtualBox-on-WHS-2011--Part-_150B/image_13.png" alt="Figure - Logging into phpVirtualBox using your WHS account" width="492" height="420" />
	<div>Figure - Logging into phpVirtualBox using your WHS account</div>
</div></center>&nbsp;</p>
<h3>Remote Desktop Virtual Machine Access Over the Web</h3>
<p>One of the great features of VirtualBox is the remote desktop access to the Virtual Machines using the Microsoft Remote Desktop Protocol. phpVirtualBox utilizes this to allow us to remotely manage our virtual machines using the web interface.</p>
<p>We need to configure phpVirtualBox’s host name setting to allow us to access the virtual machines using the <strong>yourname.homeserver.com</strong> domain.</p>
<ol>
<li>Open <strong>C:\Apps\phpvirtualbox\config.php</strong> in notepad</li>
<li>Uncomment the following line and enter in your home server domain name

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$consoleHost</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'yourname.homeserver.com'</span><span style="color: #339933;">;</span></pre></div></div>

</li>
</ol>
<p>The tasks below will need to be performed for each new virtual machine that is created.</p>
<ol>
<li>Open the phpVirtualBox web interface (<a href="https://yourname.homeserver.com/vm">https://yourname.homeserver.com/vm</a>) and select one of your Virtual Machines you have setup | Click on <strong>Settings</strong><div class="img " style="width:401px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/How-to-run-VirtualBox-on-WHS-2011--Part-_150B/image.png" alt="Figure - Select a Virtual Machine and edit its settings" width="401" height="285" />
	<div>Figure - Select a Virtual Machine and edit its settings</div>
</div></li>
<li>Select the <strong>Display</strong> menu item | Choose the <strong>Remote Display</strong> tab</li>
<li>Tick <strong>Enable Server</strong> and enter a <strong>Server Port </strong>(make sure you choose an unused port number) | For <strong>Authentication Method </strong>choose <strong>External </strong>| Press <strong>OK</strong><div class="img " style="width:495px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/How-to-run-VirtualBox-on-WHS-2011--Part-_150B/image_3.png" alt="Figure - Enable remote display and choose a port number and external authentication" width="495" height="375" />
	<div>Figure - Enable remote display and choose a port number and external authentication</div>
</div></li>
<li>We need to add a VirtualBox service as an exception in the Windows Firewall on the Windows Home Server to allow the remote desktop connection
<ol>
<li>On your WHS open the Start menu and enter <strong>Windows Firewall with Advanced Security</strong> in the search box | Open <strong>Windows Firewall with Advanced Security</strong></li>
<li>Select <strong>Inbound Rules</strong> on the left | Click <strong>New Rule </strong>on the right</li>
<li>Select <strong>Program </strong>| Click <strong>Next</strong></li>
<li>Select <strong>This program path </strong>| Click <strong>Browse</strong> and choose <strong>C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe</strong><div class="img " style="width:499px;">
	<a href="http://www.hodgkins.net.au/wp-content/uploads/How-to-run-VirtualBox-on-WHS-2011--Part-_150B/image_7.png" rel="lightbox[460]"><img src="http://www.hodgkins.net.au/wp-content/uploads/How-to-run-VirtualBox-on-WHS-2011--Part-_150B/image_4.png" alt="Figure - Add a firewall rule for VBoxHeadless.exe" width="499" height="258" /></a>
	<div>Figure - Add a firewall rule for VBoxHeadless.exe</div>
</div>
<p>&nbsp;</li>
<li>Select <strong>Allow the connection</strong> | Click <strong>Next</strong></li>
<li>Leave <strong>Domain</strong>, <strong>Private</strong> and <strong>Public</strong> ticked | Click <strong>Next</strong></li>
<li>Enter the name <strong>VirtualBoxHeadless</strong> | Click <strong>Finish</strong></li>
</ol>
</li>
<li>A port forward in your router also needs to be created to allow a connection from the internet into the remote desktop session. This step is dependant on what type of router you have, but here is my port forwarding rule for reference<div class="img " style="width:589px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/How-to-run-VirtualBox-on-WHS-2011--Part-_150B/SNAGHTML1026240.png" alt="Figure - Make a port foward in your router to the Server Port entered earlier" width="589" height="249" />
	<div>Figure - Make a port foward in your router to the Server Port entered earlier</div>
</div></li>
<li>Back in the VirtualBox web interface we can now click on the <strong>Console</strong> button at the top right hand side of the window when you select a virtual machine</li>
<li>You will be presented with a username and password box | Enter the username <strong>Administrator</strong> and the Administrator password for your WHS. (<strong>Note: </strong>The reason we need to use the Administrator account is because it is the one running the VirtualBox services)<div class="img " style="width:569px;">
	<a href="http://www.hodgkins.net.au/wp-content/uploads/How-to-run-VirtualBox-on-WHS-2011--Part-_150B/image_8.png" rel="lightbox[460]"><img src="http://www.hodgkins.net.au/wp-content/uploads/How-to-run-VirtualBox-on-WHS-2011--Part-_150B/image_5.png" alt="Figure - Enter your WHS Administrator username and password" width="569" height="162" /></a>
	<div>Figure - Enter your WHS Administrator username and password</div>
</div>
<p>&nbsp;</li>
<li>You can now manage your virtual machine via remote desktop over the web!<div class="img " style="width:574px;">
	<a href="http://www.hodgkins.net.au/wp-content/uploads/How-to-run-VirtualBox-on-WHS-2011--Part-_150B/image_9.png" rel="lightbox[460]"><img src="http://www.hodgkins.net.au/wp-content/uploads/How-to-run-VirtualBox-on-WHS-2011--Part-_150B/image_6.png" alt="Figure - Remotely managing a virtual machine over the web" width="574" height="421" /></a>
	<div>Figure - Remotely managing a virtual machine over the web</div>
</div>&nbsp;</li>
</ol>
<p>Just a quick note about security. We enabled <strong>External </strong>authentication for remote desktop in step 3 to prevent people being able to connect to the virtual machines using the Remote Desktop client in the event someone stumbles upon the ports that have been forwarded to allow the remote desktop access. This extra authentication ensures no one can jump onto any of the virtual machines without knowing the Administrator password.</p>
<p>Hopefully you have enjoyed this series on getting VirtualBox running on Windows Home Server 2011 with all the trimmings!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hodgkins.net.au/software/how-to-run-virtualbox-on-whs-2011-part-2-of-2/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to run VirtualBox on WHS 2011 &#8211; Part 1 of 2</title>
		<link>http://www.hodgkins.net.au/software/how-to-run-virtualbox-on-whs-2011-part-1/</link>
		<comments>http://www.hodgkins.net.au/software/how-to-run-virtualbox-on-whs-2011-part-1/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 23:30:43 +0000</pubDate>
		<dc:creator>Matthew Hodgkins</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[manage virtualbox from web]]></category>
		<category><![CDATA[vbox web ui]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[virtualbox auto start]]></category>
		<category><![CDATA[virtualbox auto stop]]></category>
		<category><![CDATA[virtualbox web interface]]></category>
		<category><![CDATA[virtualbox webui]]></category>
		<category><![CDATA[virtualbox windows home server 2011]]></category>
		<category><![CDATA[vm whs 2011]]></category>
		<category><![CDATA[vm whs2011]]></category>
		<category><![CDATA[vms on whs2011]]></category>
		<category><![CDATA[whs2011]]></category>

		<guid isPermaLink="false">http://www.hodgkins.net.au/?p=439</guid>
		<description><![CDATA[Using VirtualBox to host VMs on WHS 2011, manage the VMs via a web interface, RDP to the VMs, and Auto start  and stop VMs.]]></description>
				<content:encoded><![CDATA[<p>One of the slight drawbacks of my migration from a Windows Server 2008 R2 file server to a Windows Home Server 2011 file server was the lack of Hyper-V in WHS 2011. I used to run a few Virtual Machines under Hyper-V for testing purposes and wanted to do the same under WHS 2011. I decided to use VirtualBox as I have had a great experience with it before on my desktop&#8217;s and laptops.</p>
<p>After following Part 1 and Part 2 in this series of articles you will be able to:</p>
<ul>
<li>Host Virtual Machines on your Windows Home Server 2011 box</li>
<li>Manage Virtual Machines using a Web Interface</li>
<li>Login to managing your Virtual Machines using WHS user accounts</li>
<li>Remotely RDP into your Virtual Machines even if they are Linux machines</li>
<li>Shutdown machines automatically upon shutting down your WHS</li>
<li>Start machines automatically up booting up your WHS</li>
</ul>
<p>In Part 1 we will cover:</p>
<ul>
<li>Installing Virtual Box</li>
<li>Installing phpVirtualBox in IIS for web management of VirtualBox</li>
</ul>
<h3>VirtualBox Application</h3>
<ol>
<li>Download the latest version of VirtualBox from <a href="https://www.virtualbox.org/wiki/Downloads">https://www.virtualbox.org/wiki/Downloads</a></li>
<li>Follow the VirtualBox installation steps accepting the defaults</li>
<li>After install has finished configure default location for Virtual Machines</li>
<li>Open the <strong>Oracle VM VirtalBox </strong>application</li>
<li>In the top navigation pane choose <strong>File</strong> | <strong>Preferences</strong></li>
<li>In the <strong>General</strong> tab | Modify the <strong>Default Machine Folder</strong>. I would not recommend putting them in a WHS shared folder, or the C:\ drive. Just put them in a separate folder on one of your hard drives.<strong><br />
</strong><div class="img " style="width:481px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/edbda1619a04_800C/clip_image001.png" alt="Figure - Set the VirtualBox Default Machine Folder" width="481" height="443" />
	<div>Figure - Set the VirtualBox Default Machine Folder</div>
</div></li>
<li>Download and install the <strong>Oriacle VM VirtualBox Extension Pack</strong> from <a href="https://www.virtualbox.org/wiki/Downloads">https://www.virtualbox.org/wiki/Downloads</a>. This will enable us to RDP into the virtual machines.</li>
</ol>
<h3>Run VirtualBox as a Service</h3>
<ol>
<li>Download the latest version of VBoxVMService <a href="https://sourceforge.net/projects/vboxvmservice/files/">https://sourceforge.net/projects/vboxvmservice/files/</a></li>
<li>Open the VBoxVMService zip file you downloaded | Open the <strong>vms</strong> | Extract the contents into <strong>C:\Apps\VBoxVMService<br />
</strong><div class="img " style="width:602px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/edbda1619a04_800C/clip_image003.jpg" alt="Figure - Extract VBoxVMService" width="602" height="243" />
	<div>Figure - Extract VBoxVMService</div>
</div></li>
<li>Open <strong>C:\Apps\VBoxVMService\VBoxVmService.ini</strong>in notepad and update the values accordingly, removing the [Vm0] and [Vm1] sections:

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Settings<span style="">&#93;</span></span>
<span style="color: #000099;">ServiceName</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">VBoxVmService</span>
<span style="color: #000099;">RunAsUser</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">.\Administrator</span>
<span style="color: #000099;">UserPassword</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">YourPassword</span>
<span style="color: #000099;">VBOX_USER_HOME</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">C:\Users\Administrator\.VirtualBox</span>
<span style="color: #000099;">RunWebService</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">yes</span>
<span style="color: #000099;">PauseShutdown</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">5000</span></pre></div></div>

<p><strong>Note:</strong> It is important to have <strong>RunWebService=yes</strong> as this will be used by our web interface.</li>
<li>Open a command prompt and enter the following commands:

<div class="wp_syntax"><div class="code"><pre class="dos" style="font-family:monospace;"><span style="color: #b1b100; font-weight: bold;">cd</span> \
<span style="color: #b1b100; font-weight: bold;">cd</span> apps\VBoxVMService
VmServiceControl.exe –i</pre></div></div>

</li>
<li>You will receive the <strong>Service VBoxVmService installed</strong> after you enter your command if it worked successfully:<br /><div class="img " style="width:521px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/edbda1619a04_800C/clip_image004.png" alt="Figure - VBoxVmService successfully installed" width="521" height="171" />
	<div>Figure - VBoxVmService successfully installed</div>
</div></li>
<li>As the service installation adds an environment variable, restart the Windows Home Server now</li>
</ol>
<h3>VirtualBox Web Interface</h3>
<p>As most Windows Home Servers are headless boxes, it would be nice if we could manage our virtual machine through a web interface so we don’t need to remote desktop into the server each time we want to manage VirtualBox. phpVirtualBox will handle this for us.</p>
<ol>
<li>Download the latest version of phpVirtualBox <a href="http://code.google.com/p/phpvirtualbox/downloads/detail?name=phpvirtualbox-4.1-7.zip&amp;can=2&amp;q">http://code.google.com/p/phpvirtualbox/downloads/detail?name=phpvirtualbox-4.1-7.zip&amp;can=2&amp;q</a></li>
<li>Extract phpVirtualBox to <strong>C:\Apps\phpvirtualbox</strong></li>
<li>Browse to the <strong>C:\Apps\phpvirtualbox </strong>folder | Rename <strong>config.php-example</strong> to <strong>config.php</strong></li>
<li>Open <strong>config.php</strong>in a notepad | Modify the configuration file with the username and password you will be running VirtualBox as (most likely Administrator)

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">/* Username / Password for system user that runs VirtualBox */</span>
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$username</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'Administrator'</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$password</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'YourPassword'</span><span style="color: #339933;">;</span></pre></div></div>

</li>
</ol>
<p>Now that phpVirtualBox has been configured, we need to configure IIS to serve the web page. First we need to give IIS PHP support.</p>
<ol>
<li>Download and install the <strong>Microsoft Web Platform Installer</strong> <a href="http://www.microsoft.com/web/downloads/platform.aspx">http://www.microsoft.com/web/downloads/platform.aspx</a></li>
<li>From the Start Menu | Open <strong>Internet Information Services (IIS) Manager</strong></li>
<li>In the left navigation pane click on <strong>Your Server Name </strong>and open <strong>Web Platform Installer</strong> in the right hand pane<br /><div class="img " style="width:455px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/edbda1619a04_800C/clip_image006.jpg" alt="Figure - Open Web Platform Installed in IIS" width="455" height="461" />
	<div>Figure - Open Web Platform Installed in IIS</div>
</div></li>
<li>After the Web Platform Installer loads do a search for <strong>PHP</strong></li>
<li>In the search results click on the <strong>Add </strong>buttons next to <strong>PHP 5.3.10</strong> and <strong>PHP Manager for IIS</strong></li>
<li>Press the <strong>Install</strong> button down the bottom right and click <strong>I Accept</strong></li>
<li>Now IIS supports PHP, we can finish the phpVirtualBox configuration.</li>
<li>Add the <strong>C:\Apps\phpvirtualbox</strong> as a virtual directory in IIS</li>
<ol>
<li>From the Start Menu | Open <strong>Internet Information Services (IIS) Manager</strong></li>
<li>Expand out <strong>Your Server</strong> | Expand out <strong>Sites</strong> | Right click on <strong>Default Web Site</strong> and choose <strong>Add Virtual Directory<br />
</strong><div class="img " style="width:415px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/edbda1619a04_800C/clip_image007.png" alt="Figure - Add a Virtual Directory in IIS" width="415" height="320" />
	<div>Figure - Add a Virtual Directory in IIS</div>
</div></li>
<li>Give it the alias <strong>VM </strong>and set its <strong>Physical path</strong> to <strong>C:\Apps\phpvirtualbox<br />
</strong><div class="img " style="width:445px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/edbda1619a04_800C/clip_image008.png" alt="Figure - Configure the VM Virtual Directory" width="445" height="357" />
	<div>Figure - Configure the VM Virtual Directory</div>
</div></li>
</ol>
<li>Open the web browser on the WHS server and browse to <a href="http://localhost/vm">http://localhost/vm</a> use the default username and password <strong>admin </strong>/ <strong>admin<br />
</strong><div class="img " style="width:446px;">
	<a href="http://www.hodgkins.net.au/wp-content/uploads/edbda1619a04_800C/clip_image010.jpg" rel="lightbox[439]"><img src="http://www.hodgkins.net.au/wp-content/uploads/edbda1619a04_800C/clip_image010_thumb.jpg" alt="Figure - Open phpVirtualBox" width="446" height="247" /></a>
	<div>Figure - Open phpVirtualBox</div>
</div></li>
<li>You are now logged in to the web interface and can start managing and creating your virtual machines!<br />
<div class="img " style="width:448px;">
	<a href="http://www.hodgkins.net.au/wp-content/uploads/edbda1619a04_800C/clip_image011.png" rel="lightbox[439]"><img src="http://www.hodgkins.net.au/wp-content/uploads/edbda1619a04_800C/clip_image011_thumb.png" alt="Figure - Manage VirtualBox from the browser" width="448" height="252" /></a>
	<div>Figure - Manage VirtualBox from the browser</div>
</div></li>
<li>You can also access your virtual machine management web page from the internet using SSL thanks to the build in WHS remote web access. Just browse to <a href="https://yourname.homeserver.com/vm">https://yourname.homeserver.com/vm</a> from anywhere:<br />
<div class="img " style="width:569px;">
	<a href="http://www.hodgkins.net.au/wp-content/uploads/edbda1619a04_800C/clip_image012.png" rel="lightbox[439]"><img src="http://www.hodgkins.net.au/wp-content/uploads/edbda1619a04_800C/clip_image012_thumb.png" alt="Figure - Access your Virtual Machines over the internet using SSL" width="569" height="409" /></a>
	<div>Figure - Access your Virtual Machines over the internet using SSL</div>
</div></li>
</ol>
<p>In the next part of this series we cover:</p>
<ul>
<ul>
<li>Login to managing your Virtual Machines using WHS user accounts</li>
<li>Remotely RDP into your Virtual Machines even if they are Linux machines</li>
<li>Shutdown machines automatically upon shutting down your WHS</li>
<li>Start machines automatically up booting up your WHS</li>
</ul>
</ul>
<p><strong> Update:</strong> Part 2 of the series has now been posted <a href="http://www.hodgkins.net.au/software/how-to-run-virtualbox-on-whs-2011-part-2-of-2/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hodgkins.net.au/software/how-to-run-virtualbox-on-whs-2011-part-1/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>How to integrate Windows Phone 7 with WHS 2011</title>
		<link>http://www.hodgkins.net.au/mswindows/how-to-integrate-windows-phone-7-with-whs-2011/</link>
		<comments>http://www.hodgkins.net.au/mswindows/how-to-integrate-windows-phone-7-with-whs-2011/#comments</comments>
		<pubDate>Wed, 21 Mar 2012 11:20:14 +0000</pubDate>
		<dc:creator>Matthew Hodgkins</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Phone]]></category>
		<category><![CDATA[add-in]]></category>
		<category><![CDATA[integrate]]></category>
		<category><![CDATA[manage]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[port forward]]></category>
		<category><![CDATA[port forwarding]]></category>
		<category><![CDATA[streaming]]></category>
		<category><![CDATA[whs 2011]]></category>
		<category><![CDATA[windows home server]]></category>
		<category><![CDATA[windows phone]]></category>
		<category><![CDATA[windows phone 7]]></category>
		<category><![CDATA[winphone]]></category>

		<guid isPermaLink="false">http://www.hodgkins.net.au/?p=428</guid>
		<description><![CDATA[Microsoft has released a connector for Windows Phone 7 which allows you to manage your Windows Home Server 2011 from your mobile phone. What Can It Do? With the My Home Server application you can do a few cool things including: Stream music. pictures and video to your phone Receive alerts from your Windows Home [...]]]></description>
				<content:encoded><![CDATA[<p>Microsoft has released a connector for Windows Phone 7 which allows you to manage your Windows Home Server 2011 from your mobile phone.</p>
<h4>What Can It Do?</h4>
<p>With the My Home Server application you can do a few cool things including:</p>
<ul>
<li>Stream music. pictures and video to your phone </li>
<li>Receive alerts from your Windows Home Server </li>
<li>Administer accounts </li>
<li>View backup statuses of computers on your network </li>
<li>Add a home screen tile to monitor alerts and disk space
<div class="img " style="width:288px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/How-to-ntegrating-Windows-Phone-7-with-W_137A8/478c40e7-d1ec-4338-beca-3bdb2c759402.png" alt="Figure - View your WHS alerts on your Windows Phone" width="288" height="480" />
	<div>Figure - View your WHS alerts on your Windows Phone</div>
</div></li>
</ul>
<h4>Install on your Windows Home Server 2011</h4>
<ol>
<li>Go to <a href="http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=26799" target="_blank">http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;id=26799</a> and download <strong>WSS_PhoneConnector.wssx</strong> </li>
<li>Run <strong>WSS_PhoneConnector.wssx</strong> and follow the prompts to install the add-in </li>
<li>Open the WHS <strong>Dashboard</strong> | In the top navigation pane choose <strong>Add-ins</strong> | Ensure that the <strong>Windows Server Solutions Phone Connecter</strong>listed<div class="img " style="width:554px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/How-to-ntegrating-Windows-Phone-7-with-W_137A8/clip_image001.png" alt="Figure - Ensure the Windows Server Phone Connecter add-in is installed" width="554" height="235" />
	<div>Figure - Ensure the Windows Server Phone Connecter add-in is installed</div>
</div></li>
</ol>
<h4>Install on your Windows Phone 7</h4>
<ol>
<li>Go to the <strong>Marketplace</strong> and install <strong>My Home Server </strong>(or use this link <a href="http://www.windowsphone.com/en-US/apps/b0dbd32b-908c-e011-986b-78e7d1fa76f8" target="_blank">http://www.windowsphone.com/en-US/apps/b0dbd32b-908c-e011-986b-78e7d1fa76f8</a>) </li>
<li>After the application has been installed, open it and click <strong>Add An Account</strong> </li>
<li>Enter in the address of your home server, for example: <em>https://myname.homeserver.com</em> </li>
<li>Enter in your WHS network user name and password, and the WHS server password and select <strong>Sign In</strong> </li>
<li>If you don’t already have set, you will be recommended to setup a lock screen PIN on your phone </li>
</ol>
<p>That’s it &#8211; you can now access your Windows Home Server 2011 from your Windows Phone!</p>
<p><strong>Note: </strong>For streaming to work to your Windows Phone 7 (and other devices), you must have port 80 port forwarded to your Windows Home Server in your router, as streaming is conducted over this port.</p>
<ul>
<li>Updated 22/03/2012 &#8211; Added link to My Home Server in Marketplace (thanks Ahmed) and picture of app.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.hodgkins.net.au/mswindows/how-to-integrate-windows-phone-7-with-whs-2011/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Install Subsonic on WHS 2011</title>
		<link>http://www.hodgkins.net.au/software/how-to-install-subsonic-on-whs-2011/</link>
		<comments>http://www.hodgkins.net.au/software/how-to-install-subsonic-on-whs-2011/#comments</comments>
		<pubDate>Tue, 20 Mar 2012 06:24:10 +0000</pubDate>
		<dc:creator>Matthew Hodgkins</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[control panel]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[media streaming]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[mp3 streaming]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[music streaming]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[port forward]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[streaming]]></category>
		<category><![CDATA[subsonic]]></category>
		<category><![CDATA[whs]]></category>
		<category><![CDATA[whs 2011]]></category>
		<category><![CDATA[whs2011]]></category>
		<category><![CDATA[windows home server]]></category>
		<category><![CDATA[windows mobile]]></category>
		<category><![CDATA[windows mobile 7]]></category>
		<category><![CDATA[wm7]]></category>

		<guid isPermaLink="false">http://www.hodgkins.net.au/?p=420</guid>
		<description><![CDATA[Windows Home Server 2011 makes a great server for hosting your media on. Out of the box it has cool interface for streaming your media over the web, but unfortunately it doesn’t play nicely with mobile devices like the iPhone, iPad or Android. If you want to stream music from your WHS 2011 to an [...]]]></description>
				<content:encoded><![CDATA[<p>Windows Home Server 2011 makes a great server for hosting your media on. Out of the box it has cool interface for streaming your media over the web, but unfortunately it doesn’t play nicely with mobile devices like the iPhone, iPad or Android.</p>
<p>If you want to stream music from your WHS 2011 to an iPhone, iPad or Android, you have to go third-party.</p>
<p>Enter <a href="http://www.subsonic.org/pages/apps.jsp">Subsonic</a>, a free, web-based media streamer which transcodes music on the fly so it can be streamed to pretty much any device. You can find an extensive list of Subsonic mobile Apps <a href="http://www.subsonic.org/pages/apps.jsp">here</a>, but it includes apps iOS, Android, Windows Phone 7 and more.</p>
<ol>
<li>Download Subsonic from <a href="http://www.subsonic.org/pages/download.jsp">http://www.subsonic.org/pages/download.jsp</a></li>
<li>Run the installer, which will automatically install Java</li>
<li>Follow the prompts until the install has finished</li>
<li>You will notice the Subsonic item in your system tray, double click it and verify Subsonic is running:<br /><div class="img " style="width:494px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/Sett_F25B/image.png" alt="Figure - Subsonic Control Panel" width="494" height="485" />
	<div>Figure - Subsonic Control Panel</div>
</div></li>
<li>Switch over to the <strong>Settings </strong>tab and change the port number to something other than 80 (as the Windows Home Server Remote Access web page runs on this port), then switch back over to the <strong>Status </strong>tab and stop and start the Subsonic service<br /><div class="img " style="width:415px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/Sett_F25B/image_3.png" alt="Figure - Change your port number to something other than 80" width="415" height="344" />
	<div>Figure - Change your port number to something other than 80</div>
</div></li>
<li>Open a browser and point it to <a href="http://localhost:port/">http://localhost:port</a> (port being the port you selected earlier</li>
<li>On the home screen click on <strong>here</strong> to change your administrator password straight away<br /><div class="img " style="width:529px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/Sett_F25B/image_4.png" alt="Figure - Change the SubSonic default admin password" width="529" height="326" />
	<div>Figure - Change the SubSonic default admin password</div>
</div></li>
<li>Follow the prompts and change your admin password, and logout then log back in to verify it worked</li>
<li>Once you are in click <strong>Settings</strong> in the top navigation bar</li>
<li>Under <strong>Media Folders</strong>, update the folder path for <strong>Music</strong> and click <strong>Save</strong>. I am sharing an iTunes folder over the network to keep my iTunes library centralized, so I will be sharing my iTunes library<br /><div class="img " style="width:602px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/Sett_F25B/image_5.png" alt="Figure - Specifiy your music folder" width="602" height="317" />
	<div>Figure - Specifiy your music folder</div>
</div></li>
<li>We will do a force update of our library, so head over to the <strong>Search</strong> menu and click <strong><strong>Update search index now<br /><div class="img " style="width:602px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/Sett_F25B/image_6.png" alt="Figure - To update your library straight away, click &quot;Update Search Index Now&quot;" width="602" height="272" />
	<div>Figure - To update your library straight away, click &quot;Update Search Index Now&quot;</div>
</div></strong></strong></li>
<li>Leave the index running for a while, my music library took around 15 minutes to scan</li>
<li>Enjoy your music streaming via the web browser!</li>
<li><strong>Optional</strong> – if you want to stream music while you are not at home over the internet, setup a port forward in your router to the Subsonic port you configured earlier (port 4040 in my example above) and enjoy your music on the road. My internet connection uploads at 100kb/s (1Mbit), and it streamed flawlessly to my iPhone joined to a wireless network on a different internet connection.</li>
</ol>
<p>The good thing about Subsonic is that installs itself as a service, so the next time you reboot your Windows Home Server, Subsonic will start automatically.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hodgkins.net.au/software/how-to-install-subsonic-on-whs-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Fix Timeout While Mounting LUN in NetApp SnapDrive</title>
		<link>http://www.hodgkins.net.au/storage/how-to-fix-timeout-while-mounting-lun-in-netapp-snapdrive/</link>
		<comments>http://www.hodgkins.net.au/storage/how-to-fix-timeout-while-mounting-lun-in-netapp-snapdrive/#comments</comments>
		<pubDate>Mon, 19 Mar 2012 06:23:24 +0000</pubDate>
		<dc:creator>Matthew Hodgkins</dc:creator>
				<category><![CDATA[Storage]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[disk managementpdrive]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[formatted]]></category>
		<category><![CDATA[igroup]]></category>
		<category><![CDATA[initiator]]></category>
		<category><![CDATA[lun]]></category>
		<category><![CDATA[netapp]]></category>
		<category><![CDATA[partition]]></category>
		<category><![CDATA[reformat]]></category>
		<category><![CDATA[san]]></category>
		<category><![CDATA[snanetapp]]></category>
		<category><![CDATA[snapdrive]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[system manager]]></category>
		<category><![CDATA[telnet]]></category>
		<category><![CDATA[timeout]]></category>
		<category><![CDATA[unmap]]></category>
		<category><![CDATA[volume]]></category>

		<guid isPermaLink="false">http://www.hodgkins.net.au/?p=402</guid>
		<description><![CDATA[When you are trying to mount a LUN (by using Connect Disk) in SnapDrive, you may get an error saying “A timeout of 120 secs elapsed while waiting for volume arrival notification from the operating system”. Figure - SnapDrive timeout when connecting to a LUN This generally occurs when you have created a LUN using [...]]]></description>
				<content:encoded><![CDATA[<p>When you are trying to mount a LUN (by using Connect Disk) in SnapDrive, you may get an error saying <strong>“A timeout of 120 secs elapsed while waiting for volume arrival notification from the operating system”</strong>.</p>
<div class="img " style="width:606px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/Timeout-Elapsed-While-Mounting-LUN-in-Ne_EFDB/image.png" alt="Figure - SnapDrive timeout when connecting to a LUN" width="606" height="395" />
	<div>Figure - SnapDrive timeout when connecting to a LUN</div>
</div>
<p>This generally occurs when you have created a LUN using the <strong>NetApp System Manager</strong> first, and then tried to connect to it in <strong>SnapDrive</strong>.</p>
<p>The reason for this error message is that when SnapDrive is connecting to a disk, it expects to see a formatted partition being connected – and when this doesn’t occur, it doesn’t know what to do and times out.</p>
<h4>Clean up the mess</h4>
<p>As the LUN mapping has failed half way through, you need to remove the igroups that have been added to the LUN, otherwise you will receive a <strong>“The specified LUN /vol/xxx is already mapped to at least one initiator”</strong> error.</p>
<ol>
<li>Connect to the filer using telnet</li>
<li>Run the following command:

<div class="wp_syntax"><div class="code"><pre class="t-sql" style="font-family:monospace;">lun unmap /vol/YourLUNName youriGroupName</pre></div></div>

</li>
<li>You will get a message back saying the igroup has been unmapped from the LUN</li>
</ol>
<h4>Connect the LUN again</h4>
<ol>
<li>Open SnapDrive and start connecting to your LUN again, as the process starts to occur you will see the following status messages appearing:<div class="img " style="width:196px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/Timeout-Elapsed-While-Mounting-LUN-in-Ne_EFDB/clip_image001.png" alt="Figure - LUN Status Message" width="196" height="117" />
	<div>Figure - LUN Status Message</div>
</div></li>
<li>At this point, open up <strong>Computer Management</strong> and then<strong> </strong>in the left navigation pane select <strong>Disk Management</strong></li>
<li>You will notice a new, unformatted drive appear. If you don’t see it keep refreshing until it appears<div class="img " style="width:510px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/Timeout-Elapsed-While-Mounting-LUN-in-Ne_EFDB/image_3.png" alt="Figure - In Disk Management you will notice the LUN disk appear " width="510" height="484" />
	<div>Figure - In Disk Management you will notice the LUN disk appear </div>
</div></li>
<li>You will need to be quick (you only have 120 seconds until time out remember), so initialize the disk<div class="img " style="width:283px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/Timeout-Elapsed-While-Mounting-LUN-in-Ne_EFDB/image_4.png" alt="Figure - Right click on the disk and select Initialize Disk" width="283" height="158" />
	<div>Figure - Right click on the disk and select Initialize Disk</div>
</div></li>
<li>After the disk has initialized, right click on the empty drive space and choose <strong>Format</strong> | Follow the prompts to format the disk and specify the drive letter you choose when connecting to the LUN using SnapDrive<div class="img " style="width:413px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/Timeout-Elapsed-While-Mounting-LUN-in-Ne_EFDB/image_5.png" alt="Figure - Specify a drive letter for the new LUN, matching the one in SnapDrive" width="413" height="317" />
	<div>Figure - Specify a drive letter for the new LUN, matching the one in SnapDrive</div>
</div></li>
<li>SnapDrive should now discover the disk and map it correctly</li>
</ol>
<p>To prevent this occurring, create your LUN’s using the SnapDrive interface instead of NetApp System Manager, as SnapDrive will format the LUN on creation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hodgkins.net.au/storage/how-to-fix-timeout-while-mounting-lun-in-netapp-snapdrive/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Resend Reporting Services Email Subscriptions When Troubleshooting</title>
		<link>http://www.hodgkins.net.au/sql-server/how-to-resend-reporting-services-email-subscriptions-when-troubleshooting/</link>
		<comments>http://www.hodgkins.net.au/sql-server/how-to-resend-reporting-services-email-subscriptions-when-troubleshooting/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 03:47:07 +0000</pubDate>
		<dc:creator>Matthew Hodgkins</dc:creator>
				<category><![CDATA[MSSQL Server]]></category>
		<category><![CDATA[fix reporting services email]]></category>
		<category><![CDATA[msql2008]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[mssql2005]]></category>
		<category><![CDATA[relay]]></category>
		<category><![CDATA[report email]]></category>
		<category><![CDATA[report server email]]></category>
		<category><![CDATA[report services subscription]]></category>
		<category><![CDATA[reporting services]]></category>
		<category><![CDATA[reporting services email]]></category>
		<category><![CDATA[reporting services subscription]]></category>
		<category><![CDATA[reports]]></category>
		<category><![CDATA[resend]]></category>
		<category><![CDATA[resend report]]></category>
		<category><![CDATA[resend subscription]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[sql 2005]]></category>
		<category><![CDATA[sql 2008]]></category>
		<category><![CDATA[sql2005]]></category>
		<category><![CDATA[sql2008]]></category>

		<guid isPermaLink="false">http://www.hodgkins.net.au/?p=367</guid>
		<description><![CDATA[Troubleshooting Microsoft Reporting Services email subscriptions can be a pain. How many times have you created a new subscription a few minutes in advance and not received it, then you are unsure if you set the schedule time correctly, or if you pressed the save button, or if the fix you made to reporting services [...]]]></description>
				<content:encoded><![CDATA[<p>Troubleshooting Microsoft Reporting Services email subscriptions can be a pain. How many times have you created a new subscription a few minutes in advance and not received it, then you are unsure if you set the schedule time correctly, or if you pressed the save button, or if the fix you made to reporting services didn’t work? It’s a time consuming process, but thankfully, there is a better way.</p>
<div class="img " style="width:602px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/2010/08/image3.png" alt="Bad Example - Setting the report to run in a few minutes is annoying and can go wrong" width="602" height="484" />
	<div>Bad Example - Setting the report to run in a few minutes is annoying and can go wrong</div>
</div>
<p>Instead, you can run some SQL commands on your reporting services to trigger the running and resending of this report.</p>
<ol>
<li>Use <strong>SQL Server Management Studio</strong> and connect to the <strong>database engine</strong> of your reports server</li>
<li>Click the <strong>New Query</strong> button</li>
<li>Run this SQL query, which gives you a list of all the reports with schedules:

<div class="wp_syntax"><div class="code"><pre class="t-sql" style="font-family:monospace;">SELECT
sj.[name] AS [Job Name],
c.[Name] AS [Report Name],
c.[Path],
su.Description,
su.EventType,
su.LastStatus,
su.LastRunTime
FROM msdb..sysjobs AS sj INNER JOIN ReportServer..ReportSchedule AS rs
ON sj.[name] = CAST(rs.ScheduleID AS NVARCHAR(128)) INNER JOIN
ReportServer..Subscriptions AS su
ON rs.SubscriptionID = su.SubscriptionID INNER JOIN
ReportServer..[Catalog] c
ON su.Report_OID = c.ItemID</pre></div></div>

</li>
<li>From the <strong>Results</strong> pane, determine the job name of the report you want to trigger. Right click on the job name and click copy<br /><div class="img " style="width:644px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/2010/08/image4.png" alt="Running the SQL query will give you a list of jobs with subscriptions" width="644" height="395" />
	<div>Running the SQL query will give you a list of jobs with subscriptions</div>
</div></li>
<li>Click the <strong>New Query</strong> button again to open a blank query window</li>
<li>Run this SQL query, replacing <strong>YourJobNameHere </strong>with your <strong>Job Name</strong>retrieved from the last step

<div class="wp_syntax"><div class="code"><pre class="t-sql" style="font-family:monospace;">USE [msdb]
EXEC sp_start_job @job_name = ‘YourJobNameHere’</pre></div></div>

</li>
<li>When you execute the query, the <strong>Message</strong> window should say <strong>Job ‘YourJobNmae’ started successfully.</strong><div class="img " style="width:591px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/2010/08/image2.png" alt="Good Example - Using a SQL query to resend the report" width="591" height="141" />
	<div>Good Example - Using a SQL query to resend the report</div>
</div></li>
</ol>
<p>If you don’t receive the report – then you know you didn’t fix the initial problem, but now at least, you have a fast way to resend the report each time you change a Reporting Services / SMTP setting.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hodgkins.net.au/sql-server/how-to-resend-reporting-services-email-subscriptions-when-troubleshooting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Setup Hyper-V Dynamic Memory with Windows 2008 R2 SP1</title>
		<link>http://www.hodgkins.net.au/hyper-v/setup-hyper-v-dynamic-memory-with-windows-2008-r2-sp1/</link>
		<comments>http://www.hodgkins.net.au/hyper-v/setup-hyper-v-dynamic-memory-with-windows-2008-r2-sp1/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 04:43:48 +0000</pubDate>
		<dc:creator>Matthew Hodgkins</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[beta upgrade]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[disk i/o]]></category>
		<category><![CDATA[dynamic]]></category>
		<category><![CDATA[dynamic memory]]></category>
		<category><![CDATA[Fixes]]></category>
		<category><![CDATA[live migrate]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[memory overcommit]]></category>
		<category><![CDATA[over commit]]></category>
		<category><![CDATA[paging]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[service pack]]></category>
		<category><![CDATA[service pack 1]]></category>
		<category><![CDATA[sp1]]></category>
		<category><![CDATA[sp1 beta]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[virtual machines]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[Windows 2008]]></category>
		<category><![CDATA[windows 2008 r2]]></category>

		<guid isPermaLink="false">http://www.hodgkins.net.au/?p=337</guid>
		<description><![CDATA[I was very excited with the announcement that Windows 2008 R2 Service Pack 1 would bring memory over-commit (dynamic memory) to Hyper-V, something that has been available in VMWare for a while now. Although I wouldn’t use this feature in a production environment (read this blog post for an explanation why: Memory over commitment, not [...]]]></description>
				<content:encoded><![CDATA[<p>I was very excited with the announcement that Windows 2008 R2 Service Pack 1 would bring memory over-commit (dynamic memory) to Hyper-V, something that has been available in VMWare for a while now. Although I wouldn’t use this feature in a production environment (read this blog post for an explanation why: <a href="http://www.jonathancusson.com/2010/03/08/vmware-memory-overcommitment-why-its-not-for-production-servers/" target="_blank">Memory over commitment, not for production servers</a>), this new technology is perfect for use in the development and testing Hyper-V environment at <a href="http://www.ssw.com.au" target="_blank">SSW</a>.</p>
<p>The explanation on how to setup Dynamic Memory In Windows 2008 R2 is below, but before you try it out – be aware that it is currently in Beta, and there is no word if you will be able to update to Service Pack 1 RTM, or if the Hyper-V integration components that need to be installed to use the Dynamic memory features can be upgraded. For this reason I recommend you only use “disposable” VM’s.</p>
<h4>The Setup Process</h4>
<ol>
<li>Downloaded the ISO from the <a href="http://technet.microsoft.com/en-au/evalcenter/ff183870.aspx" target="_blank">Microsoft TechNet Evaluation Center</a></li>
<li>Back up all of the development Hyper-V images from a Windows 2008 Hyper-V Server. I simply copied the .vhd files.<br />
Note: In my environment, the server is an Intel Core2Quad with 8GB of DDR2 RAM</li>
<li>(If required – in my case, the server only had Windows 2008) Reformat the server and installed Windows 2008 R2 Enterprise</li>
<li>Install all available Windows Updates</li>
<li>Run <a href="http://www.ssw.com.au/ssw/Diagnostics/Default.aspx" target="_blank">SSW Diagnostics</a> to check for all green ticks (latest version of all software)</li>
<li>Extract Service Pack 1 from the ISO file to the C:\ drive and ran <strong>setup.exe</strong> to begin the Service Pack 1 Beta installation.<br />
<div class="img " style="width:512px;">
	<a href="http://www.hodgkins.net.au/wp-content/uploads/2010/07/image.png" rel="lightbox[337]"><img src="http://www.hodgkins.net.au/wp-content/uploads/2010/07/image_thumb.png" alt="After installing you will see Service Pack 1 Beta Installed - v.178" width="512" height="249" /></a>
	<div>After installing you will see Service Pack 1 Beta Installed - v.178</div>
</div></li>
<li>(If required) Join the server to your separate Hyper-V domain and install the Hyper-V Server role.<br />
Note: At <a href="http://www.ssw.com.au" target="_blank">SSW</a> we have a separate Hyper-V domain which all of the Hyper-V servers are joined to. This allows all the Hyper-V servers to continue functioning and allows them to be managed in the case the primary domain was to go down.</li>
<li>Open the Hyper-V Manager and click on <strong>New | Virtual Machine </strong>(I could have chosen to do an import / export, but I used this method as it was faster and the machines are very basic, just 1 drive and network adapter).Attach the old VHD file were backed up before the format. The Virtual Machine creation process is exactly the same with the new service pack.</li>
<li>After the new virtual machine has been created, right click on it and click on <strong>Settings…</strong></li>
<li>In the settings for the Virtual Machine click on <strong>Memory</strong></li>
<li>This is where the changes have been made:<br /><div class="img " style="width:512px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/2010/07/image_thumb1.png" alt="In the new Hyper-V Memory Options Screen We Now Have The 2nd &quot;Dynamic&quot; Option! Awesome!" width="512" height="480" />
	<div>In the new Hyper-V Memory Options Screen We Now Have The 2nd &quot;Dynamic&quot; Option! Awesome!</div>
</div></li>
<li>When you choose the <strong>Dynamic </strong>option, there are several settings which you will have to understand:
<div>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tbody>
<tr>
<td width="140" valign="top">
<ul>
<li><strong>Startup RAM</strong></li>
</ul>
</td>
<td width="359" valign="top">This is the lowest amount of RAM that virtual machine needs to start up. For a Windows 7, Vista and Server 2008 this is 512mb. For Windows 2003 this is 128mb. This should be as low as possible for optimal memory utilization and potentially higher consolidation ratios.</td>
</tr>
<tr>
<td width="140" valign="top">
<ul>
<li><strong>Maximum RAM</strong></li>
</ul>
</td>
<td width="359" valign="top">The maximum amount of memory the virtual machine is allowed to use. I recommend using the old static memory values from your VM’s for this.</td>
</tr>
<tr>
<td width="140" valign="top">
<ul>
<li><strong>Memory Buffer (the first slider)</strong></li>
</ul>
</td>
<td width="359" valign="top">Specifies how much memory Hyper-V will attempt to assign to the machine compared to the amount of memory that is actually needed. The memory buffer will not be maintained if there is not enough physical memory available in the computer. For example if this setting was <strong>10%</strong>:<strong> </strong>A virtual machine has a maximum memory level of 2048mb, and it is actually needs 1000mb of RAM, Hyper-V will attempt to give this VM 1100mb of RAM (1000mb + 10%).</td>
</tr>
<tr>
<td width="140" valign="top">
<ul>
<li><strong>Memory Priority</strong></li>
</ul>
</td>
<td width="359" valign="top">Provides Hyper-V a way to determine how to distribute memory amount Virtual Machines if there is not enough physical memory available.</td>
</tr>
</tbody>
</table>
</div>
</li>
<li>These are the settings I used for my VM, as I want to get as many VM’s as possible on this development server:<br />
<div class="img " style="width:512px;">
	<a href="http://www.hodgkins.net.au/wp-content/uploads/2010/07/image1.png" rel="lightbox[337]"><img src="http://www.hodgkins.net.au/wp-content/uploads/2010/07/image_thumb2.png" alt="The Changed Memory Settings for the Development VM.  The Startup and Maxium RAM have been specified, and the buffer taken down to 5%" width="512" height="480" /></a>
	<div>The Changed Memory Settings for the Development VM.  The Startup and Maxium RAM have been specified, and the buffer taken down to 5%</div>
</div></li>
<li>To make use of the new dynamic memory features you need to install a new version of <strong>Integration</strong> <strong>Services.</strong> Start the VM and from the <strong>Action</strong> pane of the VM click <strong>Install Integration Services Setup Disk</strong></li>
<li>In the VM the CD auto run dialog should pop up. Install <strong>Integration Services</strong> then restart your VM.</li>
<li>If you go back to the <strong>Hyper-V Manager </strong>you will notice 2 new columns that now have values in them:
<div>
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tbody>
<tr>
<td width="140" valign="top">
<ul>
<li><strong>Current Memory</strong></li>
</ul>
</td>
<td width="359" valign="top">This is how much memory is currently allocated to this Virtual Machine. You will see this value change depending on how much memory the VM is using.</td>
</tr>
<tr>
<td width="140" valign="top">
<ul>
<li><strong>Memory Available </strong></li>
</ul>
</td>
<td width="359" valign="top">The amount of memory allocated to the memory buffer, as a percentage of the committed memory in the virtual machine. This value can be negative. For example, a negative value is displayed when there is not enough available memory to give the virtual machine its buffer. A negative value also indicates that there is not enough available memory for Hyper-V to provide the virtual machine with as much memory as it currently needs. This value will not appear unless you install the new integration services</td>
</tr>
</tbody>
</table>
</div>
<div class="img " style="width:512px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/2010/07/image_thumb3.png" alt="The new Current Memory &amp; Memory Avaliable Columns" width="512" height="112" />
	<div>The new Current Memory &amp; Memory Avaliable Columns</div>
</div></li>
<li>Now for the best practices.
<ul>
<li>Remember – only use disposable VM’s in the beta</li>
<li>Use static memory first before installing integration components. After you have installed integration components, then switch to dynamic memory. If you don’t do this, your VM’s will only be able to use their <strong>Startup Memory</strong> until the integration components have been installed, which causes huge disk paging as the VM’s have to use their page file for their memory. This makes it EXTREAMLY slow to install integration components</li>
</ul>
<div class="img " style="width:640px;">
	<a href="http://www.hodgkins.net.au/wp-content/uploads/2010/07/image5.png" rel="lightbox[337]"><img src="http://www.hodgkins.net.au/wp-content/uploads/2010/07/image_thumb8.png" alt="Bad Example: VM's without the new integration compoents will need to page memory - leading to disk I/O problems" width="640" height="224" /></a>
	<div>Bad Example: VM's without the new integration compoents will need to page memory - leading to disk I/O problems</div>
</div></li>
</ol>
<ol><div class="img " style="width:640px;">
	<a href="http://www.hodgkins.net.au/wp-content/uploads/2010/07/image6.png" rel="lightbox[337]"><img src="http://www.hodgkins.net.au/wp-content/uploads/2010/07/image_thumb9.png" alt="Good Example: The disk queue length is much better as the VM's aren't paging. Please note the change in scale between the 2 images - unfortunately this depends on the current values being read from the disk can't be changed in Resource Monitor." width="640" height="278" /></a>
	<div>Good Example: The disk queue length is much better as the VM's aren't paging. Please note the change in scale between the 2 images - unfortunately this depends on the current values being read from the disk can't be changed in Resource Monitor.</div>
</div></ol>
<p>Congratulations – you have installed and configured Hyper-V Dynamic memory.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hodgkins.net.au/hyper-v/setup-hyper-v-dynamic-memory-with-windows-2008-r2-sp1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SysAdmin&#8217;s Mind &#8211; How I Setup My Home Desktop PC : Hardware</title>
		<link>http://www.hodgkins.net.au/hardware/sysadmins-mind-how-i-setup-my-home-desktop-pc-hardware/</link>
		<comments>http://www.hodgkins.net.au/hardware/sysadmins-mind-how-i-setup-my-home-desktop-pc-hardware/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 12:06:51 +0000</pubDate>
		<dc:creator>Matthew Hodgkins</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[120mm]]></category>
		<category><![CDATA[80mm]]></category>
		<category><![CDATA[airflow]]></category>
		<category><![CDATA[atomic]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[cable tidy]]></category>
		<category><![CDATA[cable ties]]></category>
		<category><![CDATA[case]]></category>
		<category><![CDATA[cases]]></category>
		<category><![CDATA[chasis]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[cooler]]></category>
		<category><![CDATA[coolermaster]]></category>
		<category><![CDATA[cooling]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[drive bay]]></category>
		<category><![CDATA[drives]]></category>
		<category><![CDATA[fans]]></category>
		<category><![CDATA[gaps]]></category>
		<category><![CDATA[hard]]></category>
		<category><![CDATA[hard drive]]></category>
		<category><![CDATA[high]]></category>
		<category><![CDATA[home setup]]></category>
		<category><![CDATA[priorties]]></category>
		<category><![CDATA[quality]]></category>
		<category><![CDATA[stacker]]></category>
		<category><![CDATA[study]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[system adminstrator]]></category>
		<category><![CDATA[temp]]></category>
		<category><![CDATA[temperatures]]></category>
		<category><![CDATA[thumb-screw]]></category>
		<category><![CDATA[thumbscrew]]></category>
		<category><![CDATA[tidy]]></category>
		<category><![CDATA[tool-less]]></category>
		<category><![CDATA[toolless]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[whels]]></category>

		<guid isPermaLink="false">http://www.hodgkins.net.au/?p=299</guid>
		<description><![CDATA[What goes on in a System Administrators mind? When they are in the office our priorities are Servers, Virtual Machines, VLANs, iSCSI Targets and all sorts of business level IT. The question is, how much of this knowledge do us System Administrator’s take home with us? How much to we apply to our own personal [...]]]></description>
				<content:encoded><![CDATA[<p>What goes on in a System Administrators mind? When they are in the office our priorities are Servers, Virtual Machines, VLANs, iSCSI Targets and all sorts of business level IT. The question is, how much of this knowledge do us System Administrator’s take home with us? How much to we apply to our own personal setups? With my “SysAdmin’s Mind” posts you will get an insight into how I do things at home – and along the way you may learn a thing or two that you can apply to your own setup.</p>
<p>I have just started setting up a new desktop computer for myself so in my first post will cover the hardware side of the system.</p>
<p>If you are interested in building your own computer system I recommend you try out one of the following resources as I will not be going into any depth on how to build computers or select hardware.</p>
<ul>
<li><a title="http://www.maximumpc.com/article/build_your_own_nocompromises_1500_pc" href="http://www.maximumpc.com/article/build_your_own_nocompromises_1500_pc" target="_blank">http://www.maximumpc.com/article/build_your_own_nocompromises_1500_pc</a> – PC building walkthrough with pictures</li>
<li><a title="http://www.atomicmpc.com.au" href="http://www.atomicmpc.com.au" target="_blank">http://www.atomicmpc.com.au</a> – Magazine and enthusiast forum for building PC’s and hardware reviews</li>
</ul>
<h3>The Case</h3>
<p>To me, a high quality case is one of the most important pieces of hardware to have. Purchasing a high quality case is an investment – it will last you years. My current case has been through 3 new systems. It has a few war scars (scratches) but I know it will last me a long time. When I purchase a case I look for the following:</p>
<table border="0" cellspacing="10" cellpadding="10" width="100%">
<tbody>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%"><strong>Sturdy, high quality materials</strong> &#8211; I have seen countless times where people have purchased cheap cases which warp and bend when you pick them up. I have seen this cause fractured motherboards</td>
</tr>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%"><strong>Spots for fans – </strong>Having several places to mount fans is a must. Look for cases that support 120mm fans as these are generally quieter than 80mm fans. A fan on the top of the case blowing hot air out the top is a bonus</td>
</tr>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%"><strong>Fans in front of the hard drive bay – </strong>Fans blowing cool air onto your hard drives will make them last much longer and keep your data safe</td>
</tr>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%"><strong>Gaps between the hard drives</strong> – Having a gap between hard drives so air can get through will mean the difference between a drive that lasts a long time and one that doesn’t. <strong>NEVER</strong> sit hard drives physically on top of each other – your asking for heat problems</td>
</tr>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%"><strong>Tool-less design</strong> – Being a System Administrator I like to tinker a lot. Having thumb-screws on the side panel and screw-less hard drive and optical drive mounts save me having to rummage for a screw driver</td>
</tr>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%"><strong>Front USB Ports</strong> – who likes bending down unnecessarily?</td>
</tr>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%"><strong>Wheels</strong> <strong>(Optional) </strong>– This is a life saver if you ever take your case to LAN’s</td>
</tr>
</tbody>
</table>
<p>The case I am using is a CoolerMaster Stacker 810, which is now discontinued. If I was going to purchase a new one I would probably go for a <a href="http://www.coolermaster.com/product.php?product_id=6600" target="_blank">CoolerMaster Cosmos Pure</a>.</p>
<p style="text-align: center;"> <div class="img aligncenter" style="width:208px;">
	<a href="http://www.hodgkins.net.au/wp-content/uploads/2010/04/IMG_08632.jpg" rel="lightbox[299]"><img src="http://www.hodgkins.net.au/wp-content/uploads/2010/04/IMG_0863_thumb2.jpg" alt="My CoolerMaster Stacker 810" width="208" height="240" /></a>
	<div>My CoolerMaster Stacker 810</div>
</div>
<p style="text-align: center;"><div class="img aligncenter" style="width:213px;">
	<a href="http://www.hodgkins.net.au/wp-content/uploads/2010/04/IMG_0870.jpg" rel="lightbox[299]"><img src="http://www.hodgkins.net.au/wp-content/uploads/2010/04/IMG_0870_thumb.jpg" alt="Front case grills removed showing hard drive bay fans" width="213" height="331" /></a>
	<div>Front case grills removed showing hard drive bay fans</div>
</div>
<p style="text-align: center;"> </p>
<h3>Cable Mess Inside The Case</h3>
<p>Having a good case is only half the battle. After installing the hardware inside the case its time to make it neat and tidy. This not only makes the computer more pleasant to tinker with, but it allows for maximum airflow and minimum temperatures:</p>
<table border="0" cellspacing="10" cellpadding="10" width="100%">
<tbody>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%"><strong>Modular Power Supplies</strong> – A modular power supply allows you to disconnect the power cables you don’t need which reduces cluster inside the case.<br />
Link : <a href="http://www.pccasegear.com/index.php?main_page=advanced_search_result&amp;search_in_description=1&amp;keyword=modular+power" target="_blank">Modular Power Supplies on PC Case Gear</a> (Australian Online PC Store)</td>
</tr>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%"><strong>Cable ties are your friend</strong> – Cable ties are a System Administrators best friend. They can be used to hold, tie and fasten anything!<br />
Link : <a href="http://www.jaycar.com.au/productResults.asp?keywords=cable+ties&amp;keyform=KEYWORD" target="_blank">Cable Ties on Jaycar</a></td>
</tr>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%"><strong>Cable tidy&#8217;s </strong>– Cable ties can be used to group cables inside your case into one loom. Try and tuck the cables away inside your case and leave plenty of room around the video card, CPU and hard drives<br />
Link : <a title="http://www.amazon.co.uk/JML-Cable-Tidy-metres-Black/dp/B0001PY4FG" href="http://www.amazon.co.uk/JML-Cable-Tidy-metres-Black/dp/B0001PY4FG" target="_blank">JML Cable Tidy on Amazon</a></td>
</tr>
</tbody>
</table>
<p style="text-align: center;"><div class="img aligncenter" style="width:240px;">
	<a href="http://www.hodgkins.net.au/wp-content/uploads/2010/04/IMG_0866.jpg" rel="lightbox[299]"><img src="http://www.hodgkins.net.au/wp-content/uploads/2010/04/IMG_0866_thumb.jpg" alt="The cable tidy job inside the case" width="240" height="201" /></a>
	<div>The cable tidy job inside the case</div>
</div>
<p style="text-align: center;"> <div class="img aligncenter" style="width:180px;">
	<a href="http://www.hodgkins.net.au/wp-content/uploads/2010/04/IMG_0867.jpg" rel="lightbox[299]"><img src="http://www.hodgkins.net.au/wp-content/uploads/2010/04/IMG_0867_thumb.jpg" alt="The 5mm gap between the drives allowing for airflow - also shows the cable tidys " width="180" height="240" /></a>
	<div>The 5mm gap between the drives allowing for airflow - also shows the cable tidy's </div>
</div>
<p style="text-align: center;"><div class="img aligncenter" style="width:240px;">
	<a href="http://www.hodgkins.net.au/wp-content/uploads/2010/04/IMG_0868.jpg" rel="lightbox[299]"><img src="http://www.hodgkins.net.au/wp-content/uploads/2010/04/IMG_0868_thumb.jpg" alt="The modular powersupply" width="240" height="180" /></a>
	<div>The modular powersupply</div>
</div>
<p>The combination for a good quality case and a tidy inside allowing for maximum airflow and cooling will allow your components to be more stable and have a longer lifespan. This means I spend less time fixing hardware issues – no System Administrator likes coming home and having to troubleshoot their own hardware!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hodgkins.net.au/hardware/sysadmins-mind-how-i-setup-my-home-desktop-pc-hardware/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Enabling Serialized Hyper-V Virtual Machine Backups in DPM 2010 RC</title>
		<link>http://www.hodgkins.net.au/dpm/enabling-serialized-hyper-v-virtual-machine-backups-in-dpm-2010-rc/</link>
		<comments>http://www.hodgkins.net.au/dpm/enabling-serialized-hyper-v-virtual-machine-backups-in-dpm-2010-rc/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 03:43:31 +0000</pubDate>
		<dc:creator>Matthew Hodgkins</dc:creator>
				<category><![CDATA[DPM]]></category>
		<category><![CDATA[2008 sp1]]></category>
		<category><![CDATA[Backup]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[clustering]]></category>
		<category><![CDATA[data protection manager 2010 rc]]></category>
		<category><![CDATA[data protection manager upgarde rc]]></category>
		<category><![CDATA[dpm 2010]]></category>
		<category><![CDATA[dpm 2010 beta]]></category>
		<category><![CDATA[dpm 2010 rc]]></category>
		<category><![CDATA[dpm agent]]></category>
		<category><![CDATA[dpm beta to rc upgrade]]></category>
		<category><![CDATA[dpm upgrade]]></category>
		<category><![CDATA[dpm2010beta]]></category>
		<category><![CDATA[dpm2010rc]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[Fixes]]></category>
		<category><![CDATA[how]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[hyper-v cluster]]></category>
		<category><![CDATA[hyper-v fail over]]></category>
		<category><![CDATA[hyper-v live migration]]></category>
		<category><![CDATA[hyper-v migration failed]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[live]]></category>
		<category><![CDATA[live migrate]]></category>
		<category><![CDATA[live migration]]></category>
		<category><![CDATA[live migration attempt failed]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[micrsoft dpm]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[notes]]></category>
		<category><![CDATA[quick migration]]></category>
		<category><![CDATA[restart pending]]></category>
		<category><![CDATA[san]]></category>
		<category><![CDATA[scdpm 2010]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[sql 2008 sp1]]></category>
		<category><![CDATA[sql sp1 restart pending]]></category>
		<category><![CDATA[sql2008]]></category>
		<category><![CDATA[system center dpm]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[virtual machine event logs]]></category>
		<category><![CDATA[virtual machines]]></category>
		<category><![CDATA[vm clustering]]></category>
		<category><![CDATA[vm migration]]></category>
		<category><![CDATA[Windows 2008]]></category>
		<category><![CDATA[windows 2008 r2]]></category>

		<guid isPermaLink="false">http://www.hodgkins.net.au/2010/03/enabling-serialized-hyper-v-virtual-machine-backups-in-dpm-2010-rc/</guid>
		<description><![CDATA[How to serialize backups of Hyper-V Virtual Machines in DPM 2010.]]></description>
				<content:encoded><![CDATA[<p>There are two reasons you may want to enable serialized (one at a time) backups of Hyper-V Virtual Machines on your DPM server:</p>
<ol>
<li>You have all your Hyper-V Virtual Machines stored on a Clustered Shared Volume (CSV) and do not have a hardware VSS provider. You will notice that some of your VM’s often get a <strong>Recovery Point Creation Failed</strong> error. If you look at the DPM error log you will notice an error which says:<br />
<blockquote><p>Failed to prepare a Cluster Shared Volume (CSV) for backup as another backup using the same CSV is in progress. (ID 32612 Details: Back up is in progress. Please wait for backup completion before trying this operation again (0x8007173D)</p></blockquote>
<p style="text-align: center;"><div class="img aligncenter" style="width:494px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/image_thumb1.png" alt="" width="494" height="496" />
	<div>The Backup error when trying to do backup multiple=</div>
</div><strong><br />
</strong></p>
</li>
<li>You are concerned about VM and network performance if you are backing up multiple VM’s at the same time.</li>
<li>You are using a Microsoft Storage Server to host your SAN. The VSS hardware providers for the iSCSI Targets do not support auto-recoverable snapshots.</li>
</ol>
<p>To enable serialized Hyper-V backups you can change a registry key on the DPM server which is directly backing up your Hyper-V servers:</p>
<ol>
<li>Go to <strong>Start</strong> <strong>&gt; Run </strong>and type in <strong>regedit</strong></li>
<li>Navigate to <strong>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Data Protection Manager\2.0\Configuration\MaxAllowedParallelBackups</strong></li>
<li>Edit the <strong>Microsoft Hyper-V </strong>key and change the <strong>Value data</strong> to 1 (if you do not have this key, make a <strong>DWord (32-bit) Value </strong>with the details mentioned)<div class="img aligncenter" style="width:501px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/image20.png" alt="The Microsoft Hyper-V DWord should now have the value of 1,  allowing only 1 backup at a time " width="501" height="152" />
	<div>The Microsoft Hyper-V  DWord should now have the value of 1, allowing only 1 backup at a time</div>
</div></li>
<li>Now we need to make a shared folder on the DPM server so the PowerShell script run on a clustered node can drop an XML file into the share. Share the <strong>C:\Program Files\Microsoft DPM\DPM\Config </strong>folder on with a share name of <strong>DPMConfig. </strong>Give your domain services account full permission to this folder. We are using<strong> SSW-VM\WindowsService </strong>as our domain service account (the name of this service account is important for when we schedule the PowerShell script)</li>
<p style="text-align: center;"><div class="img aligncenter" style="width:487px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/image_thumb4.png" alt="Configure a shared folder called DPMConfig and give your domain services account access" width="487" height="323" />
	<div>Configure a shared folder called DPMConfig and give your domain services account access</div>
</div>
</ol>
<p>You then need to setup a PowerShell script on one of your cluster nodes:</p>
<ol>
<li>Take this PowerShell Script <a href="/wp-content/plugins/download-monitor/download.php?id=1">ListVMsOnClusterForDPM</a>, extract it and put it in a folder a node in your Hyper-V cluster. This script was taken from the DPM2010BetaProtectingHyperV.docx file that came with the DPM Beta. I edited it to allow the script to place the list of VMs in the xml file directly onto the DPM server. Please enter a DPM server name at the top of the PowerShell script after the variable <strong>$DPMServerName </strong>in the quotation marks. It should read similar to:<br />
<strong>$DPMServerName = “dpmserver.yourdomain.local”</strong></li>
<li>Open up PowerShell with administrator rights on the node you copied the script to and run the following command: <strong>Set-ExecutionPolicy RemoteSigned</strong><br />
This will allow you to run the PowerShell script on this server</li>
<li>From the same PowerShell console, <strong>cd </strong>into the directory where you stored the script and run it using <strong>.\ListVMsOnClusterForDPM.ps1</strong></li>
<li>Make sure the <strong>DataSourceGroups.xml</strong> file was created in your DPM servers <strong>C:\Program Files\Microsoft DPM\DPM\Config</strong> folder</li>
<li>Now we need to schedule the PowerShell script so that it runs every few hours so that DPM knows about new or removed VM’s on the cluster. Open <strong>Task Scheduler</strong> on the node you put the PowerShell script on.</li>
<li>Click on <strong>Create Task</strong> and follow the steps in this image:<br />
<strong><br />
</strong></li>
<p style="text-align: center;"><div class="img aligncenter" style="width:491px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/image_thumb5.png" alt="Configure the Scheduled Task with the specified options" width="491" height="375" />
	<div>Configure the Scheduled Task with the specified options</div>
</div>
<li>Click on the <strong>Triggers</strong> tab and click on <strong>New… </strong>then follow the steps in this image:</li>
<p style="text-align: center;"><div class="img aligncenter" style="width:497px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/image_thumb6.png" alt="Configure the Trigger with the specified options" width="497" height="435" />
	<div>Configure the Trigger with the specified options</div>
</div>
<li>Click on the <strong>Actions</strong> tab and click on <strong>New&#8230; </strong>then follow the steps in this image:<strong><br />
</strong></li>
<p style="text-align: center;"><div class="img aligncenter" style="width:462px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/image_thumb7.png" alt="Configure the New Action with the specified settings" width="462" height="497" />
	<div>Configure the New Action with the specified settings</div>
</div>
<li>When you press <strong>OK </strong>on the <strong>Create Task</strong> window you will be asked for the service account password. Enter the password.</li>
<li>Right click on the new task and click on <strong>Run</strong> and then your <strong>Last Run Result</strong> is <strong>(0&#215;0)</strong> and that the <strong>DataSourceGroups.xml</strong> has been created on the DPM server.</li>
<li>If a protection group has already been created for the virtual machines, run through the Modify Protection Group Wizard. If a protection group has not been created, create a new protection group and the above job serialization will come into effect.</li>
</ol>
<p>Now the DPM server will only backup one Hyper-V server at a time, allowing for successful, non-network flooding backups.</p>
<div class="img aligncenter" style="width:484px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/image33.png" alt="There’s nothing like a bunch of green ticks to let you know that your VM’s are backed up safely" width="484" height="291" />
	<div>There’s nothing like a bunch of green ticks to let you know that your VM’s are backed up safely</div>
</div>
<p><strong>UPDATES:</strong></p>
<ul>
<li>23/03/2010 &#8211; Added custom PowerShell Script and how to set this up on the cluster. Serialized backups don&#8217;t work with just the registry entry.</li>
<li>03/04/2010 &#8211; Fixed up error in the PowerShell Set-ExecutionPolicy command (thanks Hans)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.hodgkins.net.au/dpm/enabling-serialized-hyper-v-virtual-machine-backups-in-dpm-2010-rc/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>How To Fix Hyper-V “Migration Attempt Failed” When Live Migrating</title>
		<link>http://www.hodgkins.net.au/hyper-v/how-to-fix-hyper-v-migration-attempt-failed/</link>
		<comments>http://www.hodgkins.net.au/hyper-v/how-to-fix-hyper-v-migration-attempt-failed/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 05:56:33 +0000</pubDate>
		<dc:creator>Matthew Hodgkins</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[clustering]]></category>
		<category><![CDATA[Fixes]]></category>
		<category><![CDATA[hyper-v cluster]]></category>
		<category><![CDATA[hyper-v fail over]]></category>
		<category><![CDATA[hyper-v live migration]]></category>
		<category><![CDATA[hyper-v migration failed]]></category>
		<category><![CDATA[live]]></category>
		<category><![CDATA[live migrate]]></category>
		<category><![CDATA[live migration]]></category>
		<category><![CDATA[live migration attempt failed]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[notes]]></category>
		<category><![CDATA[quick migration]]></category>
		<category><![CDATA[san]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[virtual machine event logs]]></category>
		<category><![CDATA[virtual machines]]></category>
		<category><![CDATA[vm clustering]]></category>
		<category><![CDATA[vm migration]]></category>
		<category><![CDATA[Windows 2008]]></category>
		<category><![CDATA[windows 2008 r2]]></category>

		<guid isPermaLink="false">http://www.hodgkins.net.au/2010/03/how-to-fix-hyper-v-migration-attempt-failed/</guid>
		<description><![CDATA[If you are running Windows Server 2008 R2 with Hyper-V and have a SAN available, Hyper-V Live migration is a great way to make your Virtual Machines highly available. There is nothing like being able to migrate your VM’s to another node in the cluster and shutdown a host to perform maintenance – I still [...]]]></description>
				<content:encoded><![CDATA[<p>If you are running Windows Server 2008 R2 with Hyper-V and have a SAN available, Hyper-V Live migration is a great way to make your Virtual Machines highly available. There is nothing like being able to migrate your VM’s to another node in the cluster and shutdown a host to perform maintenance – I still get excited every time I live migrate a machine!</p>
<p>In some cases though, your Live Migration attempt may fail. Unfortunately the Failover Cluster Manager nor the event viewer sheds much light on the reason in most cases.</p>
<p style="text-align: center;"><div class="img aligncenter" style="width:536px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/image.png" alt="A failed Live Migration attempt " width="536" height="233" />
	<div>A failed Live Migration attempt </div>
</div><strong><br />
</strong></p>
<p><strong><br />
</strong></p>
<p style="text-align: center;"><div class="img aligncenter" style="width:490px;">
	<img src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/image1.png" alt="Unfortunately the cluster event viewer doesn't shed much light on the reason" width="490" height="300" />
	<div>Unfortunately the cluster event viewer doesn't shed much light on the reason</div>
</div><strong><br />
</strong></p>
<p><strong><br />
</strong></p>
<p>To troubleshoot a problem with virtual no error message is difficult, and my process was to do a Google on the event log error and try my luck with the different forum posts from the <a href="http://social.technet.microsoft.com" target="_blank">TechNet Forums</a> and other such sites. For this reason I decided to make a checklist to go through to try and work out the reason behind the failed live migration. Good luck!</p>
<h4><span style="text-decoration: underline;">The “None Of My Hyper-V Servers Are Live Migrating” Checklist</span></h4>
<table border="0" cellspacing="10" cellpadding="10" width="100%">
<tbody>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%">In the <strong>Failover Cluster Manager</strong> do your clustered networks have a status of <strong>Up</strong>?</td>
</tr>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%">Do you have enough RAM free on the server you are trying to Live Migrate to? The best way to check this is System Center Virtual Machine Manager. If you do not have this, checking task manager on the destination server will show you how much RAM you have free.</td>
</tr>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%">In the <strong>Failover Cluster Manager</strong> do your<strong> Clustered Shared Volume(s) </strong>has a status of <strong>Online</strong>?</td>
</tr>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%">In the <strong>Failover Cluster Manager</strong> do your clustered <strong>Storage</strong> volumes have a status of <strong>Online</strong>?</td>
</tr>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%">Are you able to ping the node you are trying to Live Migrate to and visa-versa?</td>
</tr>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%">Did you create the Hyper-V network adapters <strong>BEFORE </strong>creating a cluster? If not you should destroy your cluster and start again reading the Microsoft guide <a href="http://technet.microsoft.com/en-us/library/cc732181%28WS.10%29.aspx" target="_blank">Using Hyper-V and Failover Clustering</a></td>
</tr>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%">Are the names of your Hyper-V Virtual Adapters all the same?</td>
</tr>
</tbody>
</table>
<h4><span style="text-decoration: underline;">The Hyper-V “Migration Attempt Failed but other VM’s migrate fine” Checklist</span></h4>
<p><strong> </strong></p>
<p><strong><span style="color: #000000;">NOTE: This post is meant for people that are having a SINGLE Virtual Machine failing to Live Migrate for example:</span> </strong>VM1 and VM2 are hosted on NODE1. VM1 is successfully Live Migrated to NODE2 but VM2 says “Migration Attempt Failed”.</p>
<table border="0" cellspacing="10" cellpadding="10" width="100%">
<tbody>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%">Make sure no CD/DVD or image file is mounted in the Virtual Machine you are trying to migrate.</td>
</tr>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%">Reset the permission on the folder on the SAN that your Virtual Machine resides in to <strong>Everyone</strong> has full permission (this is not a security issue as the SAN network should be on a separate IP to your workstations and only Hyper-V administrators should have permission to access the cluster and its nodes)</td>
</tr>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%">This is a weird one: Do you have any notes in the <strong>Name</strong> field under the <strong>Management</strong> section of the settings for the Virtual Machine? If so remove it and try Live Migration again. I personally have had this issue and removing the notes in here (that I never entered) worked.</td>
</tr>
<tr>
<td width="1%"><img style="display: inline; margin-left: 0px; margin-right: 0px; border-width: 0px;" src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/tick_thumb.png" border="0" alt="tick" /></td>
<td width="99%">If you have Anti-Virus software installed on one of your nodes, ensure it is set not to scan the <b>C:\ClusterStorage</b> folder</td>
</tr>
</tbody>
</table>
<p style="text-align: center;"><div class="img aligncenter" style="width:536px;">
	<a href="http://www.hodgkins.net.au/wp-content/uploads/2010/03/image2.png" rel="lightbox[176]"><img src="http://www.hodgkins.net.au/wp-content/uploads/2010/03/image_thumb.png" alt="Notes in the Name field in the Settings of the Virtual Machine which was strangely preventing Live Migration in my case. As soon as it was removed Live Migration was successful" width="536" height="141" /></a>
	<div>Notes in the Name field in the Settings of the Virtual Machine which was strangely preventing Live Migration in my case. As soon as it was removed Live Migration was successful</div>
</div>
<p>Hopefully using these checklists assists you in fixing your Hyper-V Live Migration problems. I will endeavour to update this list as I discover more reasons that Live Migration might fail.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hodgkins.net.au/hyper-v/how-to-fix-hyper-v-migration-attempt-failed/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
