<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Rich's Blog</title>
	
	<link>http://richardhorwood.com</link>
	<description>Rich has a blog, and this is it.</description>
	<lastBuildDate>Tue, 13 Sep 2011 11:44:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/richardhorwood" /><feedburner:info uri="richardhorwood" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>The COMSTAR way of creating Solaris iSCSI targets</title>
		<link>http://feedproxy.google.com/~r/richardhorwood/~3/J4_Y9HIAJWs/</link>
		<comments>http://richardhorwood.com/175/the-comstar-way-of-creating-solaris-iscsi-targets/#comments</comments>
		<pubDate>Sun, 07 Aug 2011 08:02:04 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[opensolaris]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[comstar]]></category>
		<category><![CDATA[iscsi]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://richardhorwood.com/?p=175</guid>
		<description><![CDATA[If you&#8217;re used to the streamlined, straightforward method of creating iSCSI targets with Solaris you may have been a little perplexed to see an error something like this: # cannot set property for &#8216;tank/iscsi/vol001&#8242;: invalid property &#8216;shareiscsi&#8217; This is because &#8230; <a href="http://richardhorwood.com/175/the-comstar-way-of-creating-solaris-iscsi-targets/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you&#8217;re used to the streamlined, straightforward method of creating iSCSI targets with Solaris you may have been a little perplexed to see an error something like this:</p>
<p><em><strong>#</strong> cannot set property for &#8216;tank/iscsi/vol001&#8242;: invalid property &#8216;shareiscsi&#8217;</em></p>
<p>This is because the mechanism for creating and manipulating iSCSI has changed significantly in recent versions of Solaris.  I&#8217;m not sure why the original syntax wasn&#8217;t retained, but nevertheless, you can still achieve the same result with the following sequence:</p>
<ul>
<li>Install the new COMSTAR package:</li>
</ul>
<pre># pkg install pkg:/storage-server</pre>
<ul>
<li>Create your zfs volume as usual</li>
</ul>
<pre># zfs create -V 200G tank/iscsi/vol001</pre>
<p><em>This will create a 200Gb volume in the &#8220;tank&#8221; pool of type &#8216;volume&#8217; (not &#8216;filesystem&#8217;)</em></p>
<ul>
<li>Using the new <em>sbdadm(1M)</em> command, create a new logical unit based on the volume you just created:</li>
</ul>
<pre># sbdadm create-lu /dev/zvol/rdsk/tank/iscsi/v001
Created the following LU:

GUID                              DATA SIZE            SOURCE
--------------------------------  -------------------  ----------------
<span style="color: #0000ff;">600144f01cfe070000004e3df8200001</span>  214748364800         /dev/zvol/rdsk/tank/iscsi/v001</pre>
<ul>
<li>Using the new <em>stmfadm(1M)</em> command, verify that you now have a logical unit available:</li>
</ul>
<pre># stmfadm list-lu -v <span style="color: #0000ff;">600144F01CFE070000004E3DF8200001</span>
LU Name: <span style="color: #0000ff;">600144F01CFE070000004E3DF8200001</span>
    Operational Status: Online
    Provider Name     : sbd
    Alias             : /dev/zvol/rdsk/tank/iscsi/v001
    View Entry Count  : 1
    Data File         : /dev/zvol/rdsk/tank/iscsi/v001
    Meta File         : not set
    Size              : 214748364800
    Block Size        : 512
    Management URL    : not set
    Vendor ID         : OI
    Product ID        : COMSTAR
    Serial Num        : not set
    Write Protect     : Disabled
    Writeback Cache   : Enabled
    Access State      : Active</pre>
<ul>
<li>Add a view to the newly created object, otherwise we won&#8217;t be able to do anything with it <img src='http://richardhorwood.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
<pre># stmfadm add-view <span style="color: #0000ff;">600144F01CFE070000004E3DF8200001</span></pre>
<ul>
<li>Turn on the required service, if you haven&#8217;t already.</li>
</ul>
<pre>
svcadm enable -r svc:/network/iscsi/target:default
</pre>
<ul>
<li><em>FINALLY</em> you can now create the iSCSI target:</li>
</ul>
<pre>
# itadm  create-target
Target iqn.1986-03.com.sun:02:1cfef154-fa27-4f03-de2d-946adda9eea4 successfully created
</pre>
<p>So there you go.  Nowhere near as simple as setting a property on a ZFS filesystem, but you can eventually achieve the same result.</p>
<p>Summary:</p>
<ul>
<li>Create volume</li>
<li>Create a scsi block device, using the newly-created volume as a backing store.</li>
<li>Create a logical unit using the previously created block device</li>
<li>Add a &#8216;view&#8217; to the logical unit (think of this as making it visible to outsiders &#8211; giving them a &#8216;view&#8217;)</li>
<li>Create an iSCSI target</li>
</ul>
<p>Simple, eh?  :/</p>
<div class="shr-publisher-175"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/richardhorwood?a=J4_Y9HIAJWs:G8CJKweZzX0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=J4_Y9HIAJWs:G8CJKweZzX0:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=J4_Y9HIAJWs:G8CJKweZzX0:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=J4_Y9HIAJWs:G8CJKweZzX0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=J4_Y9HIAJWs:G8CJKweZzX0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=J4_Y9HIAJWs:G8CJKweZzX0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=J4_Y9HIAJWs:G8CJKweZzX0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=J4_Y9HIAJWs:G8CJKweZzX0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=J4_Y9HIAJWs:G8CJKweZzX0:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=J4_Y9HIAJWs:G8CJKweZzX0:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=J4_Y9HIAJWs:G8CJKweZzX0:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/richardhorwood/~4/J4_Y9HIAJWs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhorwood.com/175/the-comstar-way-of-creating-solaris-iscsi-targets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://richardhorwood.com/175/the-comstar-way-of-creating-solaris-iscsi-targets/</feedburner:origLink></item>
		<item>
		<title>SNMP OIDs: Billion BiPAC 7800N ADSL modem</title>
		<link>http://feedproxy.google.com/~r/richardhorwood/~3/9mgCQy-pof8/</link>
		<comments>http://richardhorwood.com/151/snmp-oids-billion-bipac-7800n/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 02:38:11 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[technology]]></category>
		<category><![CDATA[billion]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[snmp]]></category>

		<guid isPermaLink="false">http://richardhorwood.com/?p=151</guid>
		<description><![CDATA[The problem: I wanted to monitor my Billion BiPAV 7800N ADSL modem with my SNMP monitoring tool of choice, cacti. Unfortunately the OIDs in the SNMP MIB were not readily documented anywhere, officially or otherwise. I did a bit of &#8230; <a href="http://richardhorwood.com/151/snmp-oids-billion-bipac-7800n/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>
The problem:<br />
I wanted to monitor my Billion BiPAV 7800N ADSL modem with my SNMP monitoring tool of choice, <a title="cacti" href="http://cacti.net/">cacti</a>.</p>
<div>Unfortunately the OIDs in the SNMP MIB were not readily documented anywhere, officially or otherwise.</div>
<div>I did a bit of hunting and came up with the following information.  Maybe someone else will find it useful.</div>
<div>
<p><strong>Upstream Line Attenuation</strong> (Gauge32)<br />
<em>.1.3.6.1.2.1.10.94.1.1.2.1.5.2<br />
</em><strong>Downstream Line Attenuation</strong> (Gauge32)<br />
<em>.1.3.6.1.2.1.10.94.1.1.3.1.5.2<br />
</em></p>
<p><strong>Upstream Speed</strong> (Gauge32)<br />
<em>.1.3.6.1.2.1.10.94.1.1.2.1.8.2</em><br />
<strong>Downstream Speed</strong> (Gauge32)<br />
<em>.1.3.6.1.2.1.10.94.1.1.3.1.8.2</em></p>
<p><strong>Upstream SNR Margin</strong> (Integer)<br />
<em>.1.3.6.1.2.1.10.94.1.1.2.1.4.2</em><br />
<strong>Downstream SNR Margin</strong> (Integer)<br />
<em>.1.3.6.1.2.1.10.94.1.1.3.1.4.2</em></div></p>
<div class="shr-publisher-151"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/richardhorwood?a=9mgCQy-pof8:Tf0q_mkd0ng:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=9mgCQy-pof8:Tf0q_mkd0ng:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=9mgCQy-pof8:Tf0q_mkd0ng:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=9mgCQy-pof8:Tf0q_mkd0ng:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=9mgCQy-pof8:Tf0q_mkd0ng:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=9mgCQy-pof8:Tf0q_mkd0ng:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=9mgCQy-pof8:Tf0q_mkd0ng:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=9mgCQy-pof8:Tf0q_mkd0ng:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=9mgCQy-pof8:Tf0q_mkd0ng:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=9mgCQy-pof8:Tf0q_mkd0ng:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=9mgCQy-pof8:Tf0q_mkd0ng:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/richardhorwood/~4/9mgCQy-pof8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhorwood.com/151/snmp-oids-billion-bipac-7800n/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://richardhorwood.com/151/snmp-oids-billion-bipac-7800n/</feedburner:origLink></item>
		<item>
		<title>Hitler reacts to the Australian Federal Election result</title>
		<link>http://feedproxy.google.com/~r/richardhorwood/~3/SfflC_LQKxI/</link>
		<comments>http://richardhorwood.com/145/hitler-and-the-australian-federal-election-2010/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 05:39:30 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[Australia]]></category>
		<category><![CDATA[Politics]]></category>

		<guid isPermaLink="false">http://richardhorwood.com/?p=145</guid>
		<description><![CDATA[Hitler Reacts to the Australian 2010 federal election result Uploaded by justrich. &#8211; Watch more comedy videos and sitcoms. In case you missed it, Australians went to the polls on the weekend in an attempt to decide which of the &#8230; <a href="http://richardhorwood.com/145/hitler-and-the-australian-federal-election-2010/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div style="text-align: center; margin: 0px auto;"><object width="490" height="275"><param name="movie" value="http://www.dailymotion.com/swf/video/xejood?width=490&amp;theme=none&amp;foreground=%23F7FFFD&amp;highlight=%23FFC300&amp;background=%23171D1B&amp;autoPlay=1&amp;start=&amp;animatedTitle=&amp;additionalInfos=0&amp;hideInfos=0" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><embed type="application/x-shockwave-flash" width="490" height="275" src="http://www.dailymotion.com/swf/video/xejood?width=490&amp;theme=none&amp;foreground=%23F7FFFD&amp;highlight=%23FFC300&amp;background=%23171D1B&amp;autoPlay=0&amp;start=&amp;animatedTitle=&amp;additionalInfos=0&amp;hideInfos=0" allowscriptaccess="always" allowfullscreen="true"></embed></object><br />
<strong><a href="http://www.dailymotion.com/video/xejood_hitler-reacts-to-the-australian-201_fun">Hitler Reacts to the Australian 2010 federal election result</a></strong><br />
<em>Uploaded by <a href="http://www.dailymotion.com/justrich">justrich</a>. &#8211; <a href="http://www.dailymotion.com/en/channel/fun">Watch more comedy videos and sitcoms. </a></em></div>
<p>In case you missed it, Australians went to the polls on the weekend in an attempt to decide which of the two candidates for Prime Minister was likely to do the least amount of damage to the country.</p>
<p>In response, the Australian public delivered the first <a href="http://en.wikipedia.org/wiki/Hung_parliament">hung parliament</a> in 70 years.</p>
<p>This election is notable for a number of reasons.  One of the more interesting things is the complete failure of either party to offer anything approaching a vision for the future.</p>
<p>Back in 2007, <a href="http://en.wikipedia.org/wiki/Kevin_rudd">Kevin Rudd</a> was elected on a tide of public enthusiasm.  Australia gave him a mandate to address Climate Change, apologise to the Stolen Generation, and abolish what many saw as draconian workplace relations laws.</p>
<p>Back then, people seemed genuinely enthusiastic about having a government that looked to be &#8220;in touch&#8221; with the voters.</p>
<p>Three years later and Australia was faced with two of the most bland and uninspired choices for the top job in the country imaginable.  I&#8217;m not even exactly sure how it happened.  Someone fell asleep at the wheel, I guess.</p>
<p>Come election time, on the face of it, defeating either party should have been a cakewalk.</p>
<p>Unfortunately both the major parties seem to have spent so much time and effort on doing just that that they neglected to focus on any type of positive message.  Election fatigue quickly set in throughout most of the country</p>
<p>As the result unfolded during the course of election night, I put together this video.  The election result screamed &#8220;downfall parody&#8221; to me.</p>
<p>I think Hitler got it right here.</p>
<div class="shr-publisher-145"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/richardhorwood?a=SfflC_LQKxI:ouLtRPKuCXc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=SfflC_LQKxI:ouLtRPKuCXc:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=SfflC_LQKxI:ouLtRPKuCXc:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=SfflC_LQKxI:ouLtRPKuCXc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=SfflC_LQKxI:ouLtRPKuCXc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=SfflC_LQKxI:ouLtRPKuCXc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=SfflC_LQKxI:ouLtRPKuCXc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=SfflC_LQKxI:ouLtRPKuCXc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=SfflC_LQKxI:ouLtRPKuCXc:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=SfflC_LQKxI:ouLtRPKuCXc:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=SfflC_LQKxI:ouLtRPKuCXc:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/richardhorwood/~4/SfflC_LQKxI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhorwood.com/145/hitler-and-the-australian-federal-election-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://richardhorwood.com/145/hitler-and-the-australian-federal-election-2010/</feedburner:origLink></item>
		<item>
		<title>Run vanilla Snow Leopard in a VirtualBox VM</title>
		<link>http://feedproxy.google.com/~r/richardhorwood/~3/xaVEUOz6ZVs/</link>
		<comments>http://richardhorwood.com/128/run-vanilla-snow-leopard-in-virtualbox-vm/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 14:00:01 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[hackintosh]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[Virtualbox]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[mac os X]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://richardhorwood.com/?p=128</guid>
		<description><![CDATA[Discover how to install a retail (vanilla) version of Mac OS X Snow Leopard in a VirtualBox Virtual machine (vm) using EmpireEFI and a retail DVD. <a href="http://richardhorwood.com/128/run-vanilla-snow-leopard-in-virtualbox-vm/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Running (vanilla) Snow Leopard in a virtualbox VM is now a piece of cake.</p>
<p>If for some reason this doesn&#8217;t work (like, you don&#8217;t have a compatible processor) you might try </p>
<ul style="display: inline !important;"><a href="/113/mac-os-x-virtualbox-guest/#skipsolaris" target="_blank">this method</a></ul>
<p> instead.</p>
<h2><strong>What you&#8217;re going to need:</strong></h2>
<ol>
<li>An Empire EFI ISO image.  <a href="http://prasys.info/2010/07/empireefi-1-085-for-osx-10-6-3-is-out/" target="_blank">Download it from Prasys&#8217; blog</a>.</li>
<li>An ISO image of Snow Leopard.  (NOT a .dmg).  Take an image of a retail copy, available from your friendly retailer.</li>
<li>VirtualBox 3.2.6, which you can get from the <a href="http://www.virtualbox.org/wiki/Downloads" target="_blank">VirtualBox website</a>.</li>
</ol>
<p>We&#8217;re going to set up the virtual machine from the command line once again.  You&#8217;ll only need a total of 10 commands to get your VM installed and booted.</p>
<p>I&#8217;m assuming that your VM will be called &#8220;<strong><span style="color: #008000;">osx</span></strong>&#8220;.  The base folder will be /<strong><span style="color: #ff0000;">vbox</span></strong>, you&#8217;ll store your ISO images in /<strong><span style="color: #ff0000;">vbox</span></strong>/<strong><span style="color: #993366;">iso</span></strong> and you&#8217;ll create a hard drive image for your virtual machine called &#8220;<strong><span style="color: #0000ff;">disk01.vdi</span></strong>&#8220;.  These items are color coded below so you can see where you need to change them to suit your setup.</p>
<h2><strong>Virtual Machine initialization:</strong></h2>
<blockquote><p>VBoxManage createvm &#8211;name <strong><span style="color: #008000;">osx</span></strong> &#8211;ostype MacOS_64 &#8211;register &#8211;basefolder <span style="color: #ff0000;">/<strong>vbox</strong></span><br />
VBoxManage modifyvm <strong><span style="color: #008000;">osx</span></strong> &#8211;memory 1536<br />
VBoxManage modifyvm <strong><span style="color: #008000;">osx</span></strong> &#8211;accelerate3d on &#8211;vram 32<br />
VBoxManage storagectl <strong><span style="color: #008000;">osx</span></strong> &#8211;add sata &#8211;controller IntelAHCI &#8211;name &#8220;SATA Controller&#8221;<br />
VBoxManage storagectl <strong><span style="color: #008000;">osx</span></strong> &#8211;add ide &#8211;controller PIIX4 &#8211;name &#8220;IDE Controller&#8221;<br />
VBoxManage storagectl <strong><span style="color: #008000;">osx</span></strong> &#8211;name &#8220;SATA Controller&#8221; &#8211;hostiocache on<br />
VBoxManage storagectl <strong><span style="color: #008000;">osx</span></strong> &#8211;name &#8220;IDE Controller&#8221; &#8211;hostiocache on<br />
VBoxManage createhd &#8211;filename <span style="color: #ff0000;">/<strong>vbox/</strong></span><strong><span style="color: #008000;">osx</span>/<span style="color: #0000ff;">disk01.vdi</span></strong> &#8211;size 40960 &#8211;variant Split2G &#8211;remember<br />
VBoxManage storageattach <strong><span style="color: #008000;">osx</span></strong> &#8211;storagectl &#8220;SATA Controller&#8221; &#8211;type hdd &#8211;port 0 &#8211;device 0 &#8211;medium <strong>/<span style="color: #ff0000;">vbox</span>/<span style="color: #008000;">osx</span>/<span style="color: #000080;">disk01.vdi</span></strong><br />
VBoxManage storageattach <strong><span style="color: #008000;">osx</span></strong> &#8211;storagectl &#8220;IDE Controller&#8221; &#8211;type dvddrive &#8211;port 0 &#8211;device 0 &#8211;medium /<strong><span style="color: #ff0000;">vbox</span>/<span style="color: #993366;">iso</span></strong>/empireEFI.iso</p></blockquote>
<h2><strong>Snow Leopard installation:</strong></h2>
<p>At this point, you can power on your virtual machine:</p>
<blockquote><p>VBoxManage startvm <strong><span style="color: #008000;">osx</span></strong> &#8211;type vrdp</p></blockquote>
<p><em>Note: I use vrdp because I like to run my VMs on servers,  You can omit the &#8220;&#8211;type vrdp&#8221; and the reguar GUI will pop up.</em></p>
<p>At this point, the system will boot from the EmpireEFI image.  You&#8217;ll see the chameleon logo and an image of a CDROM.  Now you need to attach your Snow Leopard ISO to the Virtualbox VM:</p>
<blockquote><p>VBoxManage storageattach <strong><span style="color: #008000;">osx</span></strong> &#8211;storagectl &#8220;IDE Controller&#8221; &#8211;port 0 &#8211;device 0 &#8211;type dvddrive &#8211;medium /<strong><span style="color: #ff0000;">vbox</span>/<span style="color: #993366;">iso</span></strong>/snowleopard.iso</p></blockquote>
<p>Once you&#8217;ve done that, go back to the VM and hit the F5 key to rescan, Chameleon will pick up the Snow Leopard image.  From here you can hit Enter and watch as the system boots into OSX.</p>
<p>At that point you can follow the regular OS X install procedure:  Partition your drive, and let the installer run to completion.</p>
<h2><strong>Post OS Installation precedure:</strong></h2>
<p>Once the installer complete, you&#8217;ll see a message &#8220;Install Failed&#8221;.  Don&#8217;t panic, it didn&#8217;t really.  We just need to give it a helping hand.</p>
<p>Switch the EmpireEFI image back again:</p>
<blockquote><p>VBoxManage storageattach <strong><span style="color: #008000;">osx</span></strong> &#8211;storagectl &#8220;IDE Controller&#8221; &#8211;port 0 &#8211;device 0 &#8211;type dvddrive &#8211;medium /<strong><span style="color: #ff0000;">vbox</span>/<span style="color: #993366;">iso</span></strong>/empireEFI.iso</p></blockquote>
<p>﻿Then reboot:</p>
<blockquote><p>VBoxManage controlvm <strong><span style="color: #008000;">osx</span></strong> reset</p></blockquote>
<p>Once this happens, you&#8217;ll see Chameleon come up with two choices to boot from.  Use your arrow key to select the disk you just installed OSX onto, and then type &#8220;-v&#8221; and hit enter.</p>
<p>OS X should boot (in verbose mode).  You&#8217;ll then be able to run through the account setup process, and eventually you&#8217;ll get your fresh, shiny OSX desktop.</p>
<p>Once you&#8217;re booted, you should run the &#8220;MyHack Installer&#8221;.  You can find an earlier version on the EmpireEFI CD in the folder &#8220;Extra/post-installation&#8221;. Since your networking already works, (assuming your host machine has internet connectivity)&#8230;</p>
<p>From the Virtual Machine, browse to <a href="/http://blog.nawcom.com/?p=242" target="_blank">http://blog.nawcom.com/?p=242</a> and download the latest, custom version (ready for 10.6.4 upgrade).  Install the package and reboot.</p>
<div class="shr-publisher-128"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/richardhorwood?a=xaVEUOz6ZVs:h5LdALLoQUA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=xaVEUOz6ZVs:h5LdALLoQUA:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=xaVEUOz6ZVs:h5LdALLoQUA:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=xaVEUOz6ZVs:h5LdALLoQUA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=xaVEUOz6ZVs:h5LdALLoQUA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=xaVEUOz6ZVs:h5LdALLoQUA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=xaVEUOz6ZVs:h5LdALLoQUA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=xaVEUOz6ZVs:h5LdALLoQUA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=xaVEUOz6ZVs:h5LdALLoQUA:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=xaVEUOz6ZVs:h5LdALLoQUA:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=xaVEUOz6ZVs:h5LdALLoQUA:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/richardhorwood/~4/xaVEUOz6ZVs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhorwood.com/128/run-vanilla-snow-leopard-in-virtualbox-vm/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://richardhorwood.com/128/run-vanilla-snow-leopard-in-virtualbox-vm/</feedburner:origLink></item>
		<item>
		<title>Mac OS X running as Virtualbox guest – inside Opensolaris container.</title>
		<link>http://feedproxy.google.com/~r/richardhorwood/~3/bVdEklgZJB4/</link>
		<comments>http://richardhorwood.com/113/mac-os-x-virtualbox-guest/#comments</comments>
		<pubDate>Fri, 07 May 2010 11:20:06 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[hackintosh]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[opensolaris]]></category>
		<category><![CDATA[OSX]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[Virtualbox]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[geekery]]></category>
		<category><![CDATA[mac os X]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://richardhorwood.com/?p=113</guid>
		<description><![CDATA[With the release of Virtualbox 3.2 beta Mac OS X &#8220;guests&#8221; are now supported.  The following guide will show you how to get OS X running inside virtualbox using the command line interface.  It applies to any host operating system, &#8230; <a href="http://richardhorwood.com/113/mac-os-x-virtualbox-guest/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>With the release of Virtualbox 3.2 beta Mac OS X &#8220;guests&#8221; are now supported.  <em> </em></p>
<p><em>The following guide will show you how to get OS X running inside virtualbox using the command line interface.  It applies to any host operating system, but in this case we&#8217;re adding an additional virtualization layer on top of opensolaris.</em></p>
<p>Officially, so as not to run afoul of the Apple EULA, if you want to <em>run OS X as a Virtualbox Guest </em>you need to be running Virtualbox on Apple hardware.</p>
<p>So, let&#8217;s imagine that instead of a nice, 64 core Intel nehalem server I actually have a Mac Pro on which I am &#8211; for the sake of argument and somewhat inexplicably &#8211; running Opensolaris.</p>
<p>Today we&#8217;re not only going to show you how to get Mac OS X running in Virtualbox, but also how to run it on Virtualbox running inside an Opensolaris container, or zone.  Just in case you had, for example, a need to add resource controls, or clone multiple versions of your resulting OS X virtual machine, teleport running VMs to another server&#8230;</p>
<p>You will need a copy of a <em>modified</em> version of the OS X install  DVD.  If you search around you might locate something called &#8220;<em>iDeneb_v1.6_1058_Lite_Edition.iso</em>&#8221;  which is what I used for this example.</p>
<p>If you don&#8217;t care about the Opensolaris container (or indeed the opernsolaris host OS) part of this tutorial, <strong>you can use the same sequence to run Mac OSX as a Virtualbox guest on any OS</strong>, provided you&#8217;ve installed the 3.2 beta version (or later).  You just need to ensure that whatever machine you&#8217;re using has a CPU that  supports VMX.  Otherwise the OS X Install CD won&#8217;t load the Operating  system properly.  (Other guests will be fine)</p>
<p>[<a href="http://download.virtualbox.org/virtualbox/3.2.0_BETA1/" target="_blank">Grab the beta here</a>]</p>
<p><a href="#skipsolaris">Click here to skip to the Mac OS X guest configuration section.</a></p>
<h2><strong>Step 1:  Create the opensolaris container</strong></h2>
<p>At the time of writing, I was using Opensolaris b133.  The bits I typed are <strong>in bold</strong>.</p>
<p>1.a.  Define a new zone.</p>
<pre>root@nehalem:/# <strong>zonecfg -z vbox</strong>
vbox: No such zone configured
Use 'create' to begin configuring a new zone.</pre>
<pre>zonecfg:vbox&gt;<strong> create</strong>
zonecfg:vbox&gt; <strong>set autoboot=true</strong></pre>
<p>1.b.  Deciide where it will live.  In this case I chose /zones/vbox.</p>
<pre>zonecfg:vbox&gt; <strong>set zonepath=/zones/vbox</strong></pre>
<p>1.c Add some networking so that you can talk to the world.  In this case I have ipmp set up for redundancy.  Change to suit your actual network interface.  Here, mine is ipmp0, and I&#8217;ve given it the address 1.2.3.4.</p>
<pre>zonecfg:vbox&gt; <strong>add net</strong>
zonecfg:vbox:net&gt; <strong>set physical=<span style="color: #339966;">ipmp0</span></strong>
zonecfg:vbox:net&gt; <strong>set address=<span style="color: #339966;">1.2.3.4</span></strong>
zonecfg:vbox:net&gt; <strong>end</strong></pre>
<p>1.d.  This is the important part.  Add the two virtualbox drivers from the <strong>global zone.</strong> You can&#8217;t install devices in a container, so you need to make sure that the ones that the global zone uses are available to your container.</p>
<pre>zonecfg:vbox&gt; <strong>add device</strong>
zonecfg:vbox:device&gt; <strong>set match=/dev/vboxdrv</strong>
zonecfg:vbox:device&gt; <strong>end</strong>
zonecfg:vbox&gt; <strong>add device</strong>
zonecfg:vbox:device&gt; <strong>set match=/dev/vboxusbmon</strong>
zonecfg:vbox:device&gt; <strong>end</strong></pre>
<p>Then all you need to do is create the zone.  This will take a few minutes.</p>
<pre>zonecfg:vbox&gt; <strong>commit</strong>
zonecfg:vbox&gt; <strong>exit</strong></pre>
<pre>root@nehalem:/# <strong>zoneadm -z vbox install</strong>
A ZFS file system has been created for this zone.
 Publisher: Using opensolaris.org (http://pkg.opensolaris.org/dev/ ).
 Publisher: Using contrib.opensolaris.org (http://pkg.opensolaris.org/contrib/).
 Image: Preparing at /zones/vbox/root.
[...]</pre>
<h2><strong>Step 2:  Install the Virtualbox package.</strong></h2>
<p>This needs to be done in the <em>global</em> zone as well as your newly-created container.  So while our new container is installing, go ahead and grab the latest beta, and install it in the <em>global zone</em>:</p>
<pre>root@nehalem:/var/tmp# <strong>pkgadd -d VirtualBox-3.2.0_BETA1-SunOS-r60785.pkg</strong></pre>
<pre>The following packages are available:</pre>
<pre> 1  SUNWvbox     Oracle VM VirtualBox
 (i386) 3.2.0_BETA1,REV=2010.04.27.22.46.60785</pre>
<pre>Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:</pre>
<p>Once that&#8217;s done and your new container is ready, boot it and you&#8217;ll need to install <em>the exact same Virtualbox package</em> in the container, as well as some other packages.</p>
<p><strong>inside the new container:</strong></p>
<pre>root@vbox:/# pkg install SUNWuiu8 SUNWgccruntime
[.. output omitted ..]
root@nehalem:/var/tmp# <strong>pkgadd -d VirtualBox-3.2.0_BETA1-SunOS-r60785.pkg</strong></pre>
<p>At this point, we&#8217;re ready to create our Guest.  We&#8217;re going to do this using the command line interface, so this will work on any operating system.  It isn&#8217;t Solaris specific.</p>
<h2><a name="skipsolaris"></a></h2>
<p>If you&#8217;re following along from the top, make sure you&#8217;ve logged into the Opensolaris container (use &#8220;zlogin &lt;container&gt;&#8221;).</p>
<p>You don&#8217;t need to be root.  Cut and paste the following lines, being sure to <strong><span style="color: #339966;">change the green parts</span></strong> as appropriate for your system.</p>
<p>[<em>Note: Since this post was written creating a Snow Leopard capable VM is now a lot simpler.  If you have compatible hardware, you might be interested to check out </em><a href="/128/run-vanilla-snow-leopard-in-virtualbox-vm/" target="_blank"><em>this post</em></a><em> instead.</em> ]</p>
<pre>VBoxManage createvm -name <strong><span style="color: #339966;">OSX</span></strong> -ostype MacOS_64 -basefolder<strong> <span style="color: #339966;">/vbox</span></strong> -register
VBoxManage createhd ---filename <strong><span style="color: #339966;">/vbox/OSX/OSX.vmdk</span></strong> --size <strong><span style="color: #339966;">10240</span></strong>
VBoxManage modifyvm <strong><span style="color: #339966;">OSX</span></strong> --cpus<span style="color: #339966;"> <strong>8</strong></span>
VBoxManage modifyvm <strong><span style="color: #339966;">OSX</span></strong> --memory <span style="color: #339966;"><strong>8192</strong></span>
VBoxManage modifyvm <span style="color: #339966;"><strong>OSX</strong></span> --usb on --usbehci on
VBoxManage modifyvm <strong><span style="color: #339966;">OSX</span></strong> --acpi on --ioapic on
VBoxManage storagectl <strong><span style="color: #339966;">OSX</span></strong> --name "SATA Controller" --add sata \
  --controller IntelAHCI
VBoxManage storageattach <strong><span style="color: #339966;">OSX</span></strong> --storagectl "SATA Controller" \
  --type hdd --port 0 --device 0 --medium <strong><span style="color: #339966;">/vbox/OSX/OSX.vmdk</span></strong>
VBoxManage storagectl <strong><span style="color: #339966;">OSX</span></strong> --name "IDE Controller" --add ide \
  --controller PIIX4
VBoxManage storageattach <strong><span style="color: #339966;">OSX</span></strong> --storagectl "IDE Controller" --port 0 \
 --device 1 --type dvddrive --medium <strong><span style="color: #339966;">/misc/iDeneb_v1.6_1058_Lite_Edition.iso</span></strong></pre>
<p>Now a well-known issue with <em>earlier</em> versions of Virtualbox was that if you managed to install OS X you might have the guest os complaining that no keyboard was connected.  Indeed, this is what happened to me.  In order to get a Mac OS X guest to run with a keyboard and mouse inside Virtualbox, you need to add the following lines to your configuration:</p>
<pre>VBoxManage modifyvm <strong><span style="color: #339966;">OSX</span></strong> --mouse usb
VBoxManage modifyvm <strong><span style="color: #339966;">OSX</span></strong> --keyboard usb</pre>
<p>Now you can go ahead and boot it up, and install Mac OS X.  You don&#8217;t need to change any package selections for the iDeneb CD.  Once you&#8217;re done just, reboot and voila!</p>
<pre>VBoxManage startvm <strong><span style="color: #339966;">OSX</span></strong> --type vrdp</pre>
<p>To access your OSX console, use VRDP.  Point your RDP client at the IP address you gave your <em>container</em> (or whatever IP address is running Virtualbox as the <em>host</em> if you skipped the Opensolaris part).</p>
<p>[ One thing worth noting - sometimes Mac OS X struggles if you give it more than 1 virtual CPU.  If this happens, set the number of CPUs to 1, and reboot and it should be fine.]</p>
<div class="shr-publisher-113"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/richardhorwood?a=bVdEklgZJB4:Zl7SGl3Dsc4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=bVdEklgZJB4:Zl7SGl3Dsc4:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=bVdEklgZJB4:Zl7SGl3Dsc4:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=bVdEklgZJB4:Zl7SGl3Dsc4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=bVdEklgZJB4:Zl7SGl3Dsc4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=bVdEklgZJB4:Zl7SGl3Dsc4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=bVdEklgZJB4:Zl7SGl3Dsc4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=bVdEklgZJB4:Zl7SGl3Dsc4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=bVdEklgZJB4:Zl7SGl3Dsc4:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=bVdEklgZJB4:Zl7SGl3Dsc4:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=bVdEklgZJB4:Zl7SGl3Dsc4:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/richardhorwood/~4/bVdEklgZJB4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhorwood.com/113/mac-os-x-virtualbox-guest/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://richardhorwood.com/113/mac-os-x-virtualbox-guest/</feedburner:origLink></item>
		<item>
		<title>VirtualBox USB from the command line</title>
		<link>http://feedproxy.google.com/~r/richardhorwood/~3/l3j6jbzVd6E/</link>
		<comments>http://richardhorwood.com/108/virtualbox-usb-from-the-command-line/#comments</comments>
		<pubDate>Tue, 06 Apr 2010 05:29:03 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[Virtualbox]]></category>

		<guid isPermaLink="false">http://richardhorwood.com/?p=108</guid>
		<description><![CDATA[Howto: Adding and removing USB devices to VirtualBox from the command line. <a href="http://richardhorwood.com/108/virtualbox-usb-from-the-command-line/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you&#8217;re one of those fancy-pants GUI users, this post probably isn&#8217;t for you.</p>
<p>On the other hand, if you can see the potential that awaits once you learn to control VirtualBox from the <em>command line</em>, you may be interested to know how to add and remove USB devices to your running VM.</p>
<p>Here&#8217;s the quick and dirty version:</p>
<ol>
<li>Ensure you actually have USB support for your target VM:
<pre># <strong>VBoxManage showvminfo "somevm" | grep USB</strong>
USB:             <span style="color: #0000ff;">enabled</span></pre>
</li>
<li><span style="color: #0000ff;"><span style="color: #000000;">If it&#8217;s not set to &#8220;enabled&#8221; you&#8217;ll have to add USB support to your VM.  You&#8217;ll need to power off the VM to do this:<br />
</span></span></p>
<pre># <strong>VBoxManage modifyvm "somevm"<span style="color: #0000ff;"> --usb on --usbehci on</span></strong></pre>
</li>
<li>To attach a device that&#8217;s <span style="text-decoration: underline;"><em>plugged into the same system as your VM</em></span> (in my case, a Sony USB memory stick), grab its UID as follows:
<pre># <strong>VBoxManage list usbhost</strong>
Sun VirtualBox Command Line Management Interface Version 3.1.4
(C) 2005-2010 Sun Microsystems, Inc.
All rights reserved.

Host USB Devices:
[...]
UUID:               <span style="color: #000000;">2a2c7255-3b90-448e-aa7a-b1c5710ddd79</span>
VendorId:           0x054c (<strong><span style="color: #0000ff;">054C</span></strong>)
ProductId:          0x0243 (<strong><span style="color: #0000ff;">0243</span></strong>)
Revision:           1.0 (0100)
Manufacturer:       Sony
Product:            Storage Media
SerialNumber:       6A08102832911
Address:            0x54c:0x243:256:/pci@0,0/pci108e,5347@2,1
Current State:      Busy
</pre>
</li>
<li>Create a <em>usb filter</em> which will tell VirtualBox to provide the USB device to your virtual machine when it&#8217;s detected as plugged in on the host:
<pre># <strong>VBoxManage usbfilter add <span style="color: #339966;">0</span> --target "somevm" --name <span style="color: #339966;">usbstick</span> \
               --vendorid <span style="color: #0000ff;">054C</span> --productid <span style="color: #0000ff;">0243</span></strong></pre>
</li>
<li>Go ahead and power on your Virtual Machine.  You&#8217;ll notice that the USB device (if it&#8217;s currently plugged in) immediately becomes unavailable on the host.  You can confirm that it&#8217;s attached and that you didn&#8217;t make a typo with the vendor and/or product IDs:
<pre>#<strong> VBoxManage showvminfo "somevm"</strong>
[...]
Currently Attached USB Devices:

UUID:               582313d4-1d51-41ea-a053-ba5ac552d2e5
VendorId:           0x054c (054C)
ProductId:          0x0243 (0243)
Revision:           1.0 (0100)
Manufacturer:       Sony
Product:            Storage Media
SerialNumber:       6A08102832911
Address:            0x54c:0x243:256:/pci@0,0/pci108e,5347@2,1</pre>
</li>
</ol>
<p>That&#8217;s it.  You can mount and unmount this device now inside your VM.</p>
<p>You can do some neat stuff with USB and Virtualbox, but that&#8217;s a subject for another post.</p>
<div class="shr-publisher-108"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/richardhorwood?a=l3j6jbzVd6E:ZC94JIEnmmU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=l3j6jbzVd6E:ZC94JIEnmmU:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=l3j6jbzVd6E:ZC94JIEnmmU:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=l3j6jbzVd6E:ZC94JIEnmmU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=l3j6jbzVd6E:ZC94JIEnmmU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=l3j6jbzVd6E:ZC94JIEnmmU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=l3j6jbzVd6E:ZC94JIEnmmU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=l3j6jbzVd6E:ZC94JIEnmmU:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=l3j6jbzVd6E:ZC94JIEnmmU:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=l3j6jbzVd6E:ZC94JIEnmmU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=l3j6jbzVd6E:ZC94JIEnmmU:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/richardhorwood/~4/l3j6jbzVd6E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhorwood.com/108/virtualbox-usb-from-the-command-line/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://richardhorwood.com/108/virtualbox-usb-from-the-command-line/</feedburner:origLink></item>
		<item>
		<title>Virtualbox, iSCSI targets and teleport</title>
		<link>http://feedproxy.google.com/~r/richardhorwood/~3/ekwS0xqjRpU/</link>
		<comments>http://richardhorwood.com/102/virtualbox-iscsi-targets-and-teleport/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 11:02:34 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[geekery]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[iscsi]]></category>
		<category><![CDATA[opensolaris]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[zfs]]></category>

		<guid isPermaLink="false">http://richardhorwood.com/102/virtualbox-iscsi-targets-and-teleport/</guid>
		<description><![CDATA[Here&#8217;s a quick rundown on how to get Virtualbox running with iSCSI targets. But first the why: why would you want to configure Virtualbox to use an iscsi target instead of a native disk image? The answer is teleport.  Sure, &#8230; <a href="http://richardhorwood.com/102/virtualbox-iscsi-targets-and-teleport/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Here&#8217;s a quick rundown on how to get <a title="virtualbox" href="http://virtualbox.org" target="_blank">Virtualbox</a> running with iSCSI targets.</p>
<p>But first the why: why would you <em>want</em> to configure Virtualbox to use an iscsi target instead of a native disk image?</p>
<p>The answer is teleport.  Sure, you can use an NFS or CIFS share just as easily with teleport, but using iSCSI targets is just that little bit more fun.</p>
<p>If you&#8217;re just setting up a standalone virtualbox, stick with disk images on local filesystems.  The only reason to put your disk images on shared storage is so that teleport works.</p>
<p>For the uninitiated, teleporting is somewhat similar to VMWare&#8217;s &#8220;vMotion&#8221;.  It&#8217;s the term given to the process of moving the processing and networking of a virtual machine to a different physical host without any (much) interruption to the virtual host.</p>
<p><em>Unlike VMWare</em> though, Virtualbox lets you teleport your VM to different types of machines.  That means you can teleport your VM from your linux machine to your Macbook Pro, over to your Opensolaris server and even to your Windows machine.  The only limitation seems to be that they must have the same processor family (Intel to AMD processors doesn&#8217;t appear to work&#8230; yet.)</p>
<p>In this example I&#8217;m using an Opensolaris server to serve iSCSI targets from my ZFS pool.  This gives me neat stuff like dedup and compression, as well as thin provisioning if I would like it.  It doesn&#8217;t matter if you&#8217;re using FreeBSD or indeed any other way of presenting iSCSI targets.</p>
<p><em>On the Opensolaris server:<br />
</em></p>
<ul>
<li>Create a zfs volume to be your iSCSI target.  Here I have a zpool named &#8220;xpool&#8221;.# <strong>zfs create -V 20G xpool/target</strong>This will create a 20Gb volume.  To use thin provisioning, use the -s flag to the zfs create command)</li>
<li>Install the following packages if you haven&#8217;t already:<br />
SUNWiscsitu<br />
SUNWiscsitr<br />
SUNWiscsidmu<br />
SUNWiscsidmr<br />
SUNWstmf<br />
SUNWstmfu</li>
<li>Share the target:<br />
<span><span style="font-family: monospace;"># </span><strong><span style="font-family: monospace;">zfs set shareiscsi=on xpool/target</span><br />
</strong>(Note: if you have more recent version of Solaris, this command may fail with &#8220;<em>invalid property ‘shareiscsi’ &#8220;.  </em>In that case, see <a href="/175/the-comstar-way-of-creating-solaris-iscsi-targets/">this post</a> for instructions)<br />
</span></li>
<li>Make note of the device&#8217;s ID:<br />
<span style="font-family: monospace;"># <strong>iscsitadm list target</strong><br />
Target: xpool/target<br />
iSCSI Name: <span style="color: #0000ff;">iqn.1986-03.com.sun:02:74cedff0-250c-eacc-b509-bc930dc897d6</span><br />
Connections: 0</span></li>
</ul>
<p>Now you can create your Virtualbox virtual machine.  I&#8217;m using the command line here.  You can repeat these steps quickly on any machine where you&#8217;d like to teleport the machine to.  Besides, who needs one of them fancy-pants GUIs, anyhow?</p>
<p>First &#8211; register the iSCSI target as a virtualbox disk:</p>
<p><span style="font-family: monospace;"># <strong>VBoxManage addiscsidisk &#8211;server <span style="color: #00ff00;">1.1.1.1</span> &#8211;target <span style="color: #0000ff;">iqn.1986-03.com.sun:02:74cedff0-250c-eacc-b509-bc930dc897d6</span></strong></span></p>
<p>Check that it worked&#8230;</p>
<p><span style="font-family: monospace;"># <strong>VBoxManage list hdds</strong><br />
Sun VirtualBox Command Line Management Interface Version 3.1.4<br />
(C) 2005-2010 Sun Microsystems, Inc.<br />
All rights reserved.</span></p>
<p><span style="font-family: monospace;">UUID:       <span style="color: #b30522;">dfab4e6a-4ad6-44fa-96e0-76d5504b92aa</span><br />
Format:     ISCSI<br />
Location:   <span>1.1.1.1</span>|<span style="color: #0000ff;">iqn.1986-03.com.sun:02:74cedff0-250c-eacc-b509-bc930dc897d6</span><br />
Accessible: yes<br />
Type:       normal<br />
</span><br />
Now we can go ahead and create our VM.  You can see what types of VMs your server will support with the command:</p>
<p><span style="font-family: monospace;"># <strong>VBoxManage list ostypes</strong></span></p>
<p>It&#8217;s probably best to make sure that the type of server you&#8217;re going to build is supported on all the hosts you plan on teleporting it to.  It might save a bit of pain and anguish later..</p>
<p>This is a simple VM with an IDE controller and a single hard disk.  We attach an ISO image to the IDE controller as the second device in order to install our OS.  Later we can attach the Virtualbox additions ISO here, too.</p>
<p><span style="font-family: monospace;"># <strong>VBoxManage createvm &#8211;name testvm &#8211;ostype WindowsXP &#8211;basefolder /vbox &#8211;register</strong><br />
Sun VirtualBox Command Line Management Interface Version 3.1.4<br />
(C) 2005-2010 Sun Microsystems, Inc.<br />
All rights reserved.</span></p>
<p><span style="font-family: monospace;">Virtual machine &#8216;testvm&#8217; is created and registered.<br />
UUID: c8a5b6a3-6fb3-4b50-beb2-9a08e656392a<br />
Settings file: &#8216;/vbox/testvm/testvm.xml&#8217;</span></p>
<p>Now we can add memory limits, disk controllers and disk devices:</p>
<p><span style="font-family: monospace;"># <strong>VBoxManage modifyvm testvm  &#8211;memory 1024 &#8211;cpus 4</strong><br />
# <strong>VBoxManage storagectl testvm &#8211;name &#8220;IDE Controller&#8221; &#8211;add ide &#8211;controller PIIX4</strong><br />
# <strong>VBoxManage storageattach testvm &#8211;storagectl &#8220;IDE Controller&#8221; &#8211;port 0 &#8211;device 0 &#8211;type hdd &#8211;medium <span style="color: #b30522;">dfab4e6a-4ad6-44fa-96e0-76d5504b92aa</span></strong></span></p>
<div id=":wj" class="ii gt"><span style="font-family: monospace;"># <strong>VBoxManage storageattach testvm &#8211;storagectl &#8220;IDE Controller&#8221; &#8211;port 0 &#8211;device 1 &#8211;type dvddrive &#8211;medium /vbox/XP.iso</strong><br />
#<strong> VBoxManage modifyvm testvm &#8211;nictype1 82545EM &#8211;nic1 bridged &#8211;bridgeadapter1 nge0 </strong></span></div>
<div class="ii gt"><span style="font-family: monospace;"><strong><span style="color: #00ffff; font-weight: bold;">## !!! Adjust &#8220;nge0&#8243; to suit your network interface name !!! ##</span></strong><br />
</span><span style="font-family: monospace;"># <strong>VBoxManage modifyvm testvm &#8211;vrdp on</strong></span></div>
<div id=":wj" class="ii gt">
<p>Once that&#8217;s done, boot it and connect via RDP to your host to install your operating system.</p>
<p><span style="font-family: monospace;"># <strong>VBoxManage startvm testvm &#8211;type vrdp</strong></span></p>
<p>While the operating system is installing, repeat the steps on another machine, but don&#8217;t power it on.  Remember to change the &#8220;bridgeadapter&#8221; to the appropriate interface name.  (Note: You don&#8217;t need to use a NIC at all in our VM and this will still work, but what use is a VM without network access?)</p>
<p><strong>Teleporting virtualbox vms</strong></p>
<p><strong> </strong>Once you&#8217;re set up, you can move VMs around like this:</p>
<p>1. On the <strong><em>host</em></strong> machine that you want to move the <strong>virtual</strong> machine to:  (In  this example we&#8217;ll assume our destination has IP address 1.1.1.20 and our source has IP address 1.1.1.10)</p>
<p><span style="font-family: monospace;"># <strong>VBoxManage modifyvm testvm &#8211;teleporter on &#8211;teleporteraddress 1.1.1.20 &#8211;teleporterport 54321</strong></span></p>
<p>2. On the <em><strong>host</strong> </em>machine, you can now power it on, and it should sit idle waiting for a teleport request to arrive from 1.1.1.10.</p>
<p><span style="font-family: monospace;"># <strong>VBoxManage startvm testvm &#8211;type vrdp</strong></span></p>
<p>3. On the <strong><em>host </em></strong>machine that has the running <strong>virtual</strong> machine:</p>
<p><span style="font-family: monospace;"># VBoxManage controlvm testvm teleport &#8211;host 1.1.1.10 &#8211;port 54321</span></p>
<p>Once the progress bar hits 100%, you&#8217;re done!</p>
<hr style="width: 75%;" />
<p>&nbsp;</p>
<div style="margin: 0px auto; text-align: center;"><small>Technorati Tags: <a class="performancingtags" href="http://technorati.com/tag/virtualbox" rel="tag">virtualbox</a>, <a class="performancingtags" href="http://technorati.com/tag/iscsi" rel="tag">iscsi</a>, <a class="performancingtags" href="http://technorati.com/tag/opensolaris" rel="tag">opensolaris</a>, <a class="performancingtags" href="http://technorati.com/tag/zfs" rel="tag">zfs</a>, <a class="performancingtags" href="http://technorati.com/tag/howto" rel="tag">howto</a>, <a class="performancingtags" href="http://technorati.com/tag/guide" rel="tag">guide</a></small></div>
</div>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=bac8737f-eb6f-8389-9e76-9c84a5744cee" alt="" /></div>
<div class="shr-publisher-102"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/richardhorwood?a=ekwS0xqjRpU:aMJS8yrSOSU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=ekwS0xqjRpU:aMJS8yrSOSU:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=ekwS0xqjRpU:aMJS8yrSOSU:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=ekwS0xqjRpU:aMJS8yrSOSU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=ekwS0xqjRpU:aMJS8yrSOSU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=ekwS0xqjRpU:aMJS8yrSOSU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=ekwS0xqjRpU:aMJS8yrSOSU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=ekwS0xqjRpU:aMJS8yrSOSU:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=ekwS0xqjRpU:aMJS8yrSOSU:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=ekwS0xqjRpU:aMJS8yrSOSU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=ekwS0xqjRpU:aMJS8yrSOSU:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/richardhorwood/~4/ekwS0xqjRpU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhorwood.com/102/virtualbox-iscsi-targets-and-teleport/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://richardhorwood.com/102/virtualbox-iscsi-targets-and-teleport/</feedburner:origLink></item>
		<item>
		<title>BPD and Martial Art Therapy</title>
		<link>http://feedproxy.google.com/~r/richardhorwood/~3/d_ix0RudE9I/</link>
		<comments>http://richardhorwood.com/96/borderline-personality-disorder-treatment/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 12:55:54 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[borderline personality disorder]]></category>
		<category><![CDATA[mental health]]></category>

		<guid isPermaLink="false">http://richardhorwood.com/?p=96</guid>
		<description><![CDATA[If there&#8217;s not a word for this in English, there should be. It&#8217;s definition would read: &#8220;n: A short period of time during which a number of small, unusual, random events occur; all inexplicably linked together by a common theme.&#8220; &#8230; <a href="http://richardhorwood.com/96/borderline-personality-disorder-treatment/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div style="text-align: justify">If there&#8217;s not a word for this in English, there should be.  It&#8217;s definition would read:</div>
<div style="text-align: justify"></div>
<div style="text-align: justify">&#8220;n: <em>A short period of time during which a  number of small, unusual, random events occur; all inexplicably linked together by a common theme.</em>&#8220;</div>
<div style="text-align: justify">
<p>When this happens, the only conclusion you can usually draw is that someone, somewhere REALLY wants you to pay attention to this thing, whatever it is, right now.</p>
<p>This week the common theme was Borderline Personality Disorder.</p>
<p>I&#8217;ve blogged about it <a href="/7/borderline-personality-disorder/">before</a>.  There was a long piece about it in the local newspaper magazine this weekend.  Pretty standard fare about the disorder, some nice personal histories.</p>
<p>The thing that got me, though, was the last few paragraphs:  Treatment.</p>
<p>Apparently the standard fare of medication is, more often than not, ineffectual.  Promising results though, have apparently been found with Dialectic Behavioural Therapy, and to a lesser extend Cognitive Behavioural Therapy.</p>
<p>Short-cutting the discussion linking BPD to trauma and/or some type of hereditary predisposition to &#8220;emotional rawness&#8221; here, I&#8217;ll jump right to the &#8220;well, duh!&#8221; moment.</p>
<p>Medication?  Usually innefective.</p>
<p>Meditation, mindfulness, learning to reframe experiences as positive? Much more effective.</p>
<p>Kind of what we do with our  <a href="http://matprogram.com.au/">Martial Art Therapy</a> program.  And pretty much common sense to me.</p>
<p>But more to the point, why on earth isn&#8217;t this emotional regulation, mindfulness and much, much more &#8220;reslilience&#8221; taught as a core subject in our schools?</p></div>
<div class="shr-publisher-96"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/richardhorwood?a=d_ix0RudE9I:mt-xNpUwFFw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=d_ix0RudE9I:mt-xNpUwFFw:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=d_ix0RudE9I:mt-xNpUwFFw:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=d_ix0RudE9I:mt-xNpUwFFw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=d_ix0RudE9I:mt-xNpUwFFw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=d_ix0RudE9I:mt-xNpUwFFw:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=d_ix0RudE9I:mt-xNpUwFFw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=d_ix0RudE9I:mt-xNpUwFFw:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=d_ix0RudE9I:mt-xNpUwFFw:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=d_ix0RudE9I:mt-xNpUwFFw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=d_ix0RudE9I:mt-xNpUwFFw:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/richardhorwood/~4/d_ix0RudE9I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhorwood.com/96/borderline-personality-disorder-treatment/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://richardhorwood.com/96/borderline-personality-disorder-treatment/</feedburner:origLink></item>
		<item>
		<title>Where self defence goes wrong</title>
		<link>http://feedproxy.google.com/~r/richardhorwood/~3/mj74pEIPOKI/</link>
		<comments>http://richardhorwood.com/85/where-self-defence-goes-wrong/#comments</comments>
		<pubDate>Wed, 06 May 2009 13:54:39 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[martial arts]]></category>
		<category><![CDATA[self defence]]></category>

		<guid isPermaLink="false">http://richardhorwood.com/?p=85</guid>
		<description><![CDATA[I&#8217;m encouraged to see that self-defence is being taught to school kids (specifically girls) here in Australia. I  was running a martial arts session with a group of schoolgirls recently and we were addressing the idea of self defence as &#8230; <a href="http://richardhorwood.com/85/where-self-defence-goes-wrong/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I&#8217;m encouraged to see that self-defence is being taught to school kids (specifically girls) here in Australia.</p>
<p>I  was running a martial arts session with a group of schoolgirls recently and we were addressing the idea of self defence as part of our lesson.  I asked them whether they&#8217;d had any previous self defence training.</p>
<p>The general response was that they were shown a lot of techniques that they probably wouldn&#8217;t be able to remember.</p>
<p>And therein lies the problem when teaching &#8220;self defence&#8221;:<em> Too much focus on technique</em>.</p>
<p>Self defence is not about learning techniques.  Self defence is about learning a mindset. More precisely, self defence is about learning to deal with confrontation.</p>
<p>If you&#8217;re going to begin to teach self defence to anyone, you need to cover the following topics:</p>
<h3>Awareness</h3>
<p>Is this person, place or situation dangerous?  How long would it take me to get from here to a safe place?  Is there anything that makes me appear vulnerable to a potential attacker?  Am I tired, injured or scared?  Am I under the influence of alcohol or drugs, and if so, to what extend does that impair my ability to defend myself?</p>
<h3>Dialogue</h3>
<p>Every day, each new piece of information your brain encounters causes you to poses two questions to yourself:  &#8220;What does this mean?&#8221; and &#8220;What should I do?&#8221;.Unless you habitually moderate your self-talk, you&#8217;ll be unable to understand HOW you feel in response to a threatening situation.  If you don&#8217;t understand how your mental processes work, you have no hope of changing them.</p>
<p>(This is built on the skill of developed awareness).</p>
<h3>FEAR</h3>
<p>Many will tell you that &#8220;fear&#8221; stands for &#8220;<em>False Evidence Appearing Real</em>&#8220;.</p>
<p>Others will tell you that it really stands for &#8220;<em>Fuck Everything And Run</em>&#8220;.</p>
<p>People respond differently when facing fear.  It&#8217;s useful to be aware that it&#8217;s a perfectly natural response to threat.  It&#8217;s also useful to be able to process it effectively (dialogue) and move on.  Fear can completely paralyse you.  Make no mistake.  Learning to move beyond the sudden dump of adrenaline and act <em>effectively</em> is important.</p>
<p>More importantly, it&#8217;s important to decide, quickly, which way to interpret your fear and take action.  If it is false evidence, by all means move on to technique selection.  If not, fuck everything and run.  Fast.  Being brave and dead isn&#8217;t valuable to anyone.</p>
<h3>Technique</h3>
<p>First: learn to deal with realistic attacks.  This is not the simulated, slow-motion attacks you&#8217;ll find in most self defence classes.  If you can, train with someone who scares you a little.</p>
<p>Second: face up to some healthy doses of your own fear.  Go skydiving.  Try bungee jumping, or enter a full-contact sparring match.</p>
<p>Technique training should be about developing the above skills FIRST.  You&#8217;ll notice we haven&#8217;t addressed &#8220;how to stop a 6 foot hairy guy from stealing your wallet&#8221; yet.</p>
<p>Once you&#8217;ve worked on techniques that address your awareness, your internal dialogue and your fear &#8211; Then (and only then) can you begin to think about adding actual self <em>offence</em> techniques to your arsenal.</p>
<p><em>Remember &#8211; the best self defence technique you can have in your arsenal is an alert mind.</em></p>
<p>Master that, and you won&#8217;t find yourself in  99% of the dangerous situations that &#8220;regular&#8221; people stumble into.</p>
<p>The other 1%&#8230;  Well, that&#8217;s where martial arts may come in handy.</p>
<div class="shr-publisher-85"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/richardhorwood?a=mj74pEIPOKI:6uMZ_pmbT1U:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=mj74pEIPOKI:6uMZ_pmbT1U:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=mj74pEIPOKI:6uMZ_pmbT1U:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=mj74pEIPOKI:6uMZ_pmbT1U:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=mj74pEIPOKI:6uMZ_pmbT1U:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=mj74pEIPOKI:6uMZ_pmbT1U:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=mj74pEIPOKI:6uMZ_pmbT1U:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=mj74pEIPOKI:6uMZ_pmbT1U:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=mj74pEIPOKI:6uMZ_pmbT1U:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=mj74pEIPOKI:6uMZ_pmbT1U:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=mj74pEIPOKI:6uMZ_pmbT1U:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/richardhorwood/~4/mj74pEIPOKI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhorwood.com/85/where-self-defence-goes-wrong/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://richardhorwood.com/85/where-self-defence-goes-wrong/</feedburner:origLink></item>
		<item>
		<title>Motivation Monday – Rocky talks to his son</title>
		<link>http://feedproxy.google.com/~r/richardhorwood/~3/McMOm2a9FYw/</link>
		<comments>http://richardhorwood.com/77/rocky-balboa-motivation/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 03:05:21 +0000</pubDate>
		<dc:creator>rich</dc:creator>
				<category><![CDATA[influence]]></category>
		<category><![CDATA[Motivation Monday]]></category>
		<category><![CDATA[Motivation]]></category>
		<category><![CDATA[rocky balboa]]></category>

		<guid isPermaLink="false">http://richardhorwood.com/?p=77</guid>
		<description><![CDATA[Rocky Balboa explains the secret behind success in life to his son. <a href="http://richardhorwood.com/77/rocky-balboa-motivation/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Today I&#8217;m going to let Rocky Balboa do most of the talking:</p>
<div style="text-align: center; margin: 0px auto; padding: 10px;"><object width="425" height="344" data="http://www.youtube.com/v/c49Ef5Bpzd8&amp;hl=en&amp;fs=1&amp;rel=0&amp;color1=0x3a3a3a&amp;color2=0x999999" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/c49Ef5Bpzd8&amp;hl=en&amp;fs=1&amp;rel=0&amp;color1=0x3a3a3a&amp;color2=0x999999" /><param name="allowfullscreen" value="true" /></object></div>
<p>&#8220;It aint about how hard you hit,&#8221; says Rocky.  &#8220;it&#8217;s about how hard you can <em>get hit</em> and keep moving forward&#8221;.</p>
<p>As a martial arts instructor, this is what I&#8217;m looking for:  Someone who can learn to take the &#8220;hits&#8221; and keep coming back for more.  </p>
<p>Do you put yourself through the gruelling 4-hour grading process?  Do you <em>willingly</em> submit to year after year of bruises, breaks, blood, sweat and tears?  And once you&#8217;ve done that, do you continue to look for harder and harder ways to test yourself?</p>
<p>Martial arts aren&#8217;t about learning to fight.  The Rocky movies aren&#8217;t really about boxing, either&#8230;</p>
<div class="shr-publisher-77"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/richardhorwood?a=McMOm2a9FYw:KTzvxJuofWg:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=McMOm2a9FYw:KTzvxJuofWg:-BTjWOF_DHI"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=McMOm2a9FYw:KTzvxJuofWg:-BTjWOF_DHI" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=McMOm2a9FYw:KTzvxJuofWg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=McMOm2a9FYw:KTzvxJuofWg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=McMOm2a9FYw:KTzvxJuofWg:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=McMOm2a9FYw:KTzvxJuofWg:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=McMOm2a9FYw:KTzvxJuofWg:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=McMOm2a9FYw:KTzvxJuofWg:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/richardhorwood?d=TzevzKxY174" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/richardhorwood?a=McMOm2a9FYw:KTzvxJuofWg:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/richardhorwood?i=McMOm2a9FYw:KTzvxJuofWg:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/richardhorwood/~4/McMOm2a9FYw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://richardhorwood.com/77/rocky-balboa-motivation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://richardhorwood.com/77/rocky-balboa-motivation/</feedburner:origLink></item>
	</channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 1408/1540 objects using disk: basic

Served from: richardhorwood.com @ 2012-05-16 02:09:03 -->

