<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3859606087184738173</id><updated>2024-10-06T20:50:27.566-07:00</updated><category term="ubuntu"/><category term="12.04"/><category term="food"/><category term="pangolin"/><category term="precise"/><category term="virtualbox"/><category term="zfs"/><category term="cups"/><category term="disable"/><category term="freenas"/><category term="iscsi"/><category term="iscsi. benchmark"/><category term="kvm"/><category term="libvirt"/><category term="macos"/><category term="mexican"/><category term="network"/><category term="network manager"/><category term="nfs"/><category term="printer"/><category term="soup"/><category term="tacos"/><category term="windows 8"/><category term="xml"/><category term="xslt"/><category term="xsltproc"/><title type='text'>Just what do you think you&#39;re doing, Dave?</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11391520021315769367</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3859606087184738173.post-6084966622600088860</id><published>2014-01-16T00:32:00.000-08:00</published><updated>2014-01-16T00:32:17.268-08:00</updated><title type='text'>RE Golf</title><content type='html'>http://regex.alf.nu/ has a fabby little puzzle &#39;regular expression golf&#39; which has taken up far too much of my time, but got a tidy score of 3673 and learned all about backreferences.&lt;br /&gt;
&lt;br /&gt;
My Answers:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Plain Strings (207) -&amp;nbsp;foo&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;li&gt;Anchors (208) - k$&lt;/li&gt;
&lt;li&gt;Ranges (199) -&amp;nbsp;^[abcdef]*$&lt;/li&gt;
&lt;li&gt;Backrefs (195) -&amp;nbsp;(.)([^a]).*\1\2&lt;/li&gt;
&lt;li&gt;Abba (190) -&amp;nbsp;^((?!(.)(.)\3\2).)*$&lt;/li&gt;
&lt;li&gt;A man, a plan (168) -&amp;nbsp;(.)(.)(.)?.?(\3?\2\1)$&lt;/li&gt;
&lt;li&gt;Prime (201) -&amp;nbsp;^x(x*)\1$&lt;/li&gt;
&lt;li&gt;Four (198) -&amp;nbsp;(.).\1.\1.\1&lt;/li&gt;
&lt;li&gt;Order (198) -&amp;nbsp;^.....[^e]?$&lt;/li&gt;
&lt;li&gt;Triples (561) -&amp;nbsp;[031][0][3694]|[053][126][25]|[7][14][4]|^0*$|217|422|895|914|177|734&lt;/li&gt;
&lt;li&gt;Glob (349) -&amp;nbsp;err|lle|tud|ogi|ide|ris|hob|ney|orl|tef|igh|ark|tog|rom|ial|ppe|der|thw&lt;/li&gt;
&lt;li&gt;Balance (267) -&amp;nbsp;^((?!&amp;lt;&amp;lt;&amp;gt;&amp;gt;&amp;gt;|&amp;lt;&amp;gt;&amp;lt;&amp;gt;&amp;gt;|&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;)&amp;lt;(&amp;lt;&amp;gt;|&amp;lt;&amp;lt;|&amp;gt;&amp;gt;|&amp;gt;&amp;lt;)*&amp;gt;)?$&lt;/li&gt;
&lt;li&gt;Powers (63) -&amp;nbsp;^(((((((x|xxxxxxxx)\7?)\6?)\5?)\4?)\3?)\2?)\1?$&lt;/li&gt;
&lt;li&gt;Long count (192) -&amp;nbsp;0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 111&lt;/li&gt;
&lt;li&gt;Long count v2 (212) -&amp;nbsp;0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 101&lt;/li&gt;
&lt;li&gt;Alphabetical (265) -&amp;nbsp;te [ea][aes][sr]|st ar|nt ass|rn re|at en|(ne|et|ar|ta) te|(st|er) sn|ee ta&lt;/li&gt;
&lt;/ul&gt;
I probably cheated on Glob, having given up with trying to match the subtleties of the semantics of a glob * on the left &amp;amp; right.&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/feeds/6084966622600088860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2014/01/re-golf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/6084966622600088860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/6084966622600088860'/><link rel='alternate' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2014/01/re-golf.html' title='RE Golf'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11391520021315769367</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3859606087184738173.post-1844381696921569125</id><published>2014-01-01T10:21:00.001-08:00</published><updated>2014-01-01T12:07:47.964-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="food"/><category scheme="http://www.blogger.com/atom/ns#" term="soup"/><title type='text'>Chicken Mulligatawny</title><content type='html'>&lt;br /&gt;
&lt;h3&gt;
&lt;u&gt;Ingredients&lt;/u&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;couple of chicken legs&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;olive oil&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;1 onion&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;3 cloves garlic&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;1 carrot&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;1 sweet pepper red (not green - sour flavour)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;1 eating apple&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;1 tube tomato puree&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;2 tsp curry powder&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;1 tsp coriander&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;1 tsp cumin&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;1 tin green lentils&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;handful long grain rice (easy cook is good)&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;salt &amp;amp; pepper&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #222222;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;dash of cream to serve&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h3&gt;
&lt;span style=&quot;background-color: transparent;&quot;&gt;Steps&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;Half the onion, place in a pan (with well-fitting lid) with the chicken legs. Cover with water, bring to the boil then simmer for several hours - or overnight.&lt;/li&gt;
&lt;li&gt;Pour the liquid (stock) off the chicken into another container, then remove the cooked chicken legs and set aside the onion.&lt;/li&gt;
&lt;li&gt;Pull the chicken apart, carefully separating the meat from the skin &amp;amp; bone. Slice the meat - aiming for around 5mm square pieces and place in a clean pan. Discard the skin/bones.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Chop the onion into similar sized pieces (5mm) and add to the chicken&lt;/li&gt;
&lt;li&gt;Chop the remaining vegetables - carrot, peppers and apple to similar sized pieces and put in the pan with the chicken and onion.&lt;/li&gt;
&lt;li&gt;Finely chop the garlic and add&lt;/li&gt;
&lt;li&gt;Add the rest of the spices, tomato puree lentils and the handful of rice.&lt;/li&gt;
&lt;li&gt;Skim the fat off the chicken stock and then add the stock back in with the chicken and other ingredients.&lt;/li&gt;
&lt;li&gt;Gently stir, heat and simmer the soup for 20 minutes until the rice is cooked.&lt;/li&gt;
&lt;li&gt;Serve - adding a dash of cream to each bowl.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;
Alternative&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
Instead of using the chicken leg, use the leftovers from a roast chicken - strip the remaining meat and use a pint water/chicken stock cube in place of the stock made above.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/feeds/1844381696921569125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2014/01/chicken-mulligatawny.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/1844381696921569125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/1844381696921569125'/><link rel='alternate' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2014/01/chicken-mulligatawny.html' title='Chicken Mulligatawny'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11391520021315769367</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3859606087184738173.post-3054900774511534277</id><published>2013-12-30T04:53:00.001-08:00</published><updated>2013-12-31T04:54:30.842-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="virtualbox"/><category scheme="http://www.blogger.com/atom/ns#" term="windows 8"/><title type='text'>Windows 8.1 upgrade on Virtual box</title><content type='html'>Wanted to update the Windows 8 VM I keep handy on my MacBook Air to Windows 8.1 but:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9xEmik9wSH4K_wnbwVMI2D9R5VG1xfBkXrgFmNd9umARD3XHMcTV8STugWq822ISlcL_kf1K7leqpwP5c02vWMClXfB0fv4netcPjDKmsn2kqsViSH9PFm3KH_rSVtct62mchVdBw2Fmy/s1600/win8+%5BRunning%5D+2013-12-29+10-12-31.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9xEmik9wSH4K_wnbwVMI2D9R5VG1xfBkXrgFmNd9umARD3XHMcTV8STugWq822ISlcL_kf1K7leqpwP5c02vWMClXfB0fv4netcPjDKmsn2kqsViSH9PFm3KH_rSVtct62mchVdBw2Fmy/s320/win8+%5BRunning%5D+2013-12-29+10-12-31.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
The more info being:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidV0X2_zQfopHNzLj5nmU21sfPJa1XM7xRZ6SKhJL3i0oN4Pnzx1-2dUrAEOfqc4PRuV7mJQoeQ1ME_7se1loNhJSMDbBP2G87KuBzeT5dpI1OG4gyAsMaRlaBSzBCndItdphwaqlWbQIi/s1600/win8+%5BRunning%5D+2013-12-29+10-11-36.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;231&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidV0X2_zQfopHNzLj5nmU21sfPJa1XM7xRZ6SKhJL3i0oN4Pnzx1-2dUrAEOfqc4PRuV7mJQoeQ1ME_7se1loNhJSMDbBP2G87KuBzeT5dpI1OG4gyAsMaRlaBSzBCndItdphwaqlWbQIi/s320/win8+%5BRunning%5D+2013-12-29+10-11-36.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
OK sounds easy - first tried turning on PAE and NX in the virtual box settings, rebooted and retried. But the same error occurs.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVbF6x-NM1WKSBpCS8AHwYLtgtjBljKMSBcAP1DN6ExspnzYhkKixjOoA2bhuLy8l9uVhyphenhyphenBuUiPajRVF45ys76NRpVhzAsp43bmyvLavoMpxUM9iZp-NobYSSE3vtSx5Fr9ru7-wPHs-Vx/s1600/win8+-+System+2013-12-29+10-16-48.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;105&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVbF6x-NM1WKSBpCS8AHwYLtgtjBljKMSBcAP1DN6ExspnzYhkKixjOoA2bhuLy8l9uVhyphenhyphenBuUiPajRVF45ys76NRpVhzAsp43bmyvLavoMpxUM9iZp-NobYSSE3vtSx5Fr9ru7-wPHs-Vx/s320/win8+-+System+2013-12-29+10-16-48.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
Quick google later and discovered it&#39;s connected to this&amp;nbsp;&lt;a href=&quot;https://www.virtualbox.org/ticket/11899&quot; target=&quot;_blank&quot;&gt;Bug 11899&lt;/a&gt;&amp;nbsp;-&amp;nbsp;&lt;span style=&quot;background-color: white; font-family: Verdana, &#39;Bitstream Vera Sans&#39;, sans-serif; font-size: 13px;&quot;&gt;CMPXCHG16B instruction is disabled by default. Enabled it for this VM:&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;vboxmanage setextradata &quot;win8&quot; VBoxInternal/CPUM/CMPXCHG16B 1&lt;/span&gt;&lt;/blockquote&gt;
&lt;div&gt;
Also needed to enable 3D on the graphics card:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAmgYSmwMJpv2F8yppXiiMUEG2ZGW8XI153ulLGL2Rlzd7AFZXSduLRhCwj869ZBbHpHbyzq4VwrxAonPt8BnE5n75Fg9dUbBnZShEVovUFZqFhoXilyvW6Ti_09tT_C5TI8rZzm4MrDkI/s1600/win8+-+Display+2013-12-29+10-17-29.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;121&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAmgYSmwMJpv2F8yppXiiMUEG2ZGW8XI153ulLGL2Rlzd7AFZXSduLRhCwj869ZBbHpHbyzq4VwrxAonPt8BnE5n75Fg9dUbBnZShEVovUFZqFhoXilyvW6Ti_09tT_C5TI8rZzm4MrDkI/s320/win8+-+Display+2013-12-29+10-17-29.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
And then sucessfully installed the update:&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbf2wIBoiICnnS9Ut9QNDGS1mh0H9baBJBvYnf1IPUqa48RzGIO-_aslJE2fgiDVdybSY26UMFXSa26AYQzg60bD2n_38pNhfZys86K2-I-um3Df8jaQgD_4yCd-Cf1dRqZQbFkayJAiLN/s1600/win8+%5BRunning%5D+2013-12-29+10-18-06.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;89&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbf2wIBoiICnnS9Ut9QNDGS1mh0H9baBJBvYnf1IPUqa48RzGIO-_aslJE2fgiDVdybSY26UMFXSa26AYQzg60bD2n_38pNhfZys86K2-I-um3Df8jaQgD_4yCd-Cf1dRqZQbFkayJAiLN/s320/win8+%5BRunning%5D+2013-12-29+10-18-06.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/feeds/3054900774511534277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2013/12/windows-81-upgrade-on-virtual-box.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/3054900774511534277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/3054900774511534277'/><link rel='alternate' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2013/12/windows-81-upgrade-on-virtual-box.html' title='Windows 8.1 upgrade on Virtual box'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11391520021315769367</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9xEmik9wSH4K_wnbwVMI2D9R5VG1xfBkXrgFmNd9umARD3XHMcTV8STugWq822ISlcL_kf1K7leqpwP5c02vWMClXfB0fv4netcPjDKmsn2kqsViSH9PFm3KH_rSVtct62mchVdBw2Fmy/s72-c/win8+%5BRunning%5D+2013-12-29+10-12-31.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3859606087184738173.post-3376868905926974154</id><published>2013-12-17T14:24:00.000-08:00</published><updated>2013-12-17T14:24:14.081-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="food"/><category scheme="http://www.blogger.com/atom/ns#" term="mexican"/><category scheme="http://www.blogger.com/atom/ns#" term="tacos"/><title type='text'>Shredded Beef for Tacos</title><content type='html'>&lt;br /&gt;
&lt;h2&gt;
Shredded Beef for Tacos&lt;/h2&gt;
&lt;div&gt;
Serves 8&lt;/div&gt;
&lt;h3&gt;
Ingredients&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;1.2Kg pack flank steak (Costco) or 2-3lb of lean braising/stewing steak&lt;/li&gt;
&lt;li&gt;2 medium onions, chopped&lt;/li&gt;
&lt;li&gt;4-5 cloves garlic&lt;/li&gt;
&lt;li&gt;2-3 red chilies&lt;/li&gt;
&lt;li&gt;1-2 tsp dried oregano&lt;/li&gt;
&lt;li&gt;2 tsp ground coriander&lt;/li&gt;
&lt;li&gt;2 tsp smoked paprika&lt;/li&gt;
&lt;li&gt;good pinch ground white pepper&lt;/li&gt;
&lt;li&gt;good pinch salt&lt;/li&gt;
&lt;li&gt;2 tbsp red wine vinegar&lt;/li&gt;
&lt;li&gt;1 tbsp black treacle&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
Method&lt;/h3&gt;
&lt;div&gt;
Sear the beef pieces, place in a pan with a good fitting lid or slow cooker with the other ingredients. give it all a good swish round to mix.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Cook for around 6-8 hours until the beef easily falls apart. then with a fork shred the beef (the onions etc will be very soft by now too).&lt;/div&gt;
&lt;h3&gt;
Serving&lt;/h3&gt;
&lt;div&gt;
Serve with warmed crispy tacos, sour cream, sliced peppers salad and cheese &amp;amp; fresh coriander.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Supermarket mini salsa/guacamole/sour cream combo is hard to beat for value.&lt;/div&gt;
&lt;h3&gt;
Storage&lt;/h3&gt;
&lt;div&gt;
Once cooled this freezes very well.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/feeds/3376868905926974154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2013/12/shredded-beef-for-tacos.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/3376868905926974154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/3376868905926974154'/><link rel='alternate' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2013/12/shredded-beef-for-tacos.html' title='Shredded Beef for Tacos'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11391520021315769367</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3859606087184738173.post-8037029586174811558</id><published>2013-11-26T02:49:00.002-08:00</published><updated>2013-11-26T02:49:47.607-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cups"/><category scheme="http://www.blogger.com/atom/ns#" term="macos"/><category scheme="http://www.blogger.com/atom/ns#" term="network"/><category scheme="http://www.blogger.com/atom/ns#" term="printer"/><title type='text'>Fix the Mac OS printer setup to work with a network Samsung printer 2013</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLeqNJwCUpRS2wfs4qazCzOb1kKNKIbjLc8_QttGHGVfA6RNU5ApUVibbE79hbOvE0gkYBs1_aQEQu5B4sRFnXuDGbt9N7uxoIukPVjvFWPdzxsB6tY3kCc4f7-G-mo6ed5YK5C6ckarZi/s1600/MacPlusSamsung.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;197&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLeqNJwCUpRS2wfs4qazCzOb1kKNKIbjLc8_QttGHGVfA6RNU5ApUVibbE79hbOvE0gkYBs1_aQEQu5B4sRFnXuDGbt9N7uxoIukPVjvFWPdzxsB6tY3kCc4f7-G-mo6ed5YK5C6ckarZi/s400/MacPlusSamsung.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
We use a Samsung CLP-6220 network printer from a variety of PC and Mac hardware. It&#39;s a great printer - does double sided A4 colour which is just what I need for printed reports. Just one problem - more often than not when printing from one of the Macs it just doesn&#39;t work. The Mac spends ages searching for it on the network and can never find it. The Windows and Linux computers have no problems.&lt;br /&gt;
If you follow the help on one of Apple&#39;s forums, you can &lt;a href=&quot;http://support.apple.com/kb/PH11070&quot; target=&quot;_blank&quot;&gt;&#39;reset the printer system&#39;&lt;/a&gt;. This just deletes all your printers (!), but once you add the printer again it works. OK - so I thought maybe the printer&#39;s IP address has changed (because the network uses DHCP), so the mac can&#39;t find it any more. So I went into my router control panel and fixed that by adding an Address Reservation so it always gets the same one.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgo7KDvDfAY6aLorcXodFk3UQk5WUGsjtSMubmuOttXeqIhD48p175ir-r8r7Pko9q-7agxBtVVkgc9JJa649auHi02imuKD6amxv5FCqR2lPk4jCTcZ3akLgbmuzQ9gOT0vdbnvwpVnUIn/s1600/FixIP.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;63&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgo7KDvDfAY6aLorcXodFk3UQk5WUGsjtSMubmuOttXeqIhD48p175ir-r8r7Pko9q-7agxBtVVkgc9JJa649auHi02imuKD6amxv5FCqR2lPk4jCTcZ3akLgbmuzQ9gOT0vdbnvwpVnUIn/s320/FixIP.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
But nope. It doesn&#39;t fix it. After living with it for a bit (delete/add the printer sort of works around it although its painful) I had another look. In /etc/cups/printers.conf is the address of the printer. Theres a line in there that specifies the URL for the printer&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;lt;Printer &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;Samsung_CLX_6220_Series__SEC001599494557_&lt;/span&gt;&lt;/b&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;UUID urn:uuid:6893396a-3732-3c37-6762-23d7856fdb44&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;Info Samsung CLX-6220 Series (SEC001599494557)&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;MakeModel Samsung CLX-6220 Series PS&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;D&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;eviceURI &lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;dnssd://Samsung%20CLX-6220%20Series%20(SEC001599494557)._printer._tcp.local./&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
It looks like it uses some sort of zeroconf setup so that it &lt;i&gt;should&lt;/i&gt;&amp;nbsp;be able to find the printer automatically. It&#39;d be nice if that works!! But it clearly doesn&#39;t for my network setup.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
So I tweaked it using the &#39;lpadmin&#39; tool as root so that its permanently on my fixed IP for the printer&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;sudo&amp;nbsp;lpadmin -p &lt;span style=&quot;color: red;&quot;&gt;Samsung_CLX_6220_Series__SEC001599494557_ &lt;/span&gt;-v socket://192.168.0.11:9100/&lt;/span&gt;&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
So far, it&#39;s worked just fine.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/feeds/8037029586174811558/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2013/11/fix-mac-os-printer-setup-to-work-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/8037029586174811558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/8037029586174811558'/><link rel='alternate' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2013/11/fix-mac-os-printer-setup-to-work-with.html' title='Fix the Mac OS printer setup to work with a network Samsung printer 2013'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11391520021315769367</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLeqNJwCUpRS2wfs4qazCzOb1kKNKIbjLc8_QttGHGVfA6RNU5ApUVibbE79hbOvE0gkYBs1_aQEQu5B4sRFnXuDGbt9N7uxoIukPVjvFWPdzxsB6tY3kCc4f7-G-mo6ed5YK5C6ckarZi/s72-c/MacPlusSamsung.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3859606087184738173.post-6784773037703462971</id><published>2012-07-06T08:01:00.002-07:00</published><updated>2012-07-06T08:01:22.347-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="kvm"/><category scheme="http://www.blogger.com/atom/ns#" term="libvirt"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="xml"/><category scheme="http://www.blogger.com/atom/ns#" term="xslt"/><category scheme="http://www.blogger.com/atom/ns#" term="xsltproc"/><title type='text'>Tweak your libvirt XML with XSLT</title><content type='html'>I wanted to clone a KVM VM, and while there a several tools to do the job, I fancied doing it &#39;the hard way&#39;.&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
Plan&lt;/h3&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;Get the libvirt XML definition for the XML&lt;/li&gt;
&lt;li&gt;Tweak it with an XSLT stylesheet&lt;/li&gt;
&lt;li&gt;Put it back in for the new VM&lt;/li&gt;
&lt;/ol&gt;
Then I can clone the HD, mount it, change some of the bits in there and voila - new VM.&lt;/div&gt;
&lt;h3&gt;
Implementation&lt;/h3&gt;
&lt;div&gt;
You need &#39;xsltproc&#39; to perform the XSLT transformation from the commandline - easy on Ubuntu:&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# apt-get -y install xsltproc&lt;/blockquote&gt;
&lt;div&gt;
Here&#39;s the XSL:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;blockquote&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;lt;xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;!-- tweak libvirt XML file when cloning simple VM --&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;!-- xsltproc --stringparam newUUID 1234-5678-90zbcdef --stringparam newMAC 11:22:33:44:55:66&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--stringparam newNAME fred clone.xsl eg.xml &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;--&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;xsl:output omit-xml-declaration=&quot;yes&quot; /&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;xsl:param name=&quot;newUUID&quot; select=&quot;&#39;XXX-YYY-ZZZ&#39;&quot;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;xsl:param name=&quot;newMAC&quot; select=&quot;&#39;XX:YY:ZZ:XX:YY:ZZ&#39;&quot;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;xsl:param name=&quot;newNAME&quot; select=&quot;&#39;XYZ&#39;&quot;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;xsl:param name=&quot;newMEMORY&quot; select=&quot;&#39;1048575&#39;&quot;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;xsl:param name=&quot;newROOT&quot; select=&quot;&#39;/XYZ/ROOT.qcow&#39;&quot;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;xsl:template match=&quot;node()|@*&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;lt;xsl:copy&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;lt;xsl:apply-templates select=&quot;node()|@*&quot;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;lt;/xsl:copy&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;/xsl:template&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;xsl:template match=&quot;uuid/text()&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;lt;xsl:value-of select=&quot;$newUUID&quot;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;/xsl:template&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;xsl:template match=&quot;imagelabel/text()|label/text()&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;lt;xsl:text&amp;gt;libvirt-&amp;lt;/xsl:text&amp;gt;&amp;lt;xsl:value-of select=&quot;$newUUID&quot;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;/xsl:template&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;xsl:template match=&quot;mac/@address&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;lt;xsl:attribute name=&quot;address&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;lt;xsl:value-of select=&quot;$newMAC&quot;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;lt;/xsl:attribute&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;/xsl:template&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;xsl:template match=&quot;memory/text()|currentMemory/text()&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;lt;xsl:value-of select=&quot;$newMEMORY&quot;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;/xsl:template&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;xsl:template match=&quot;/domain/name/text()&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;lt;xsl:value-of select=&quot;$newNAME&quot;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;/xsl:template&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;xsl:template match=&quot;disk/source/@file&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;lt;xsl:attribute name=&quot;file&quot;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;lt;xsl:value-of select=&quot;$newROOT&quot;/&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp; &amp;lt;/xsl:attribute&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;nbsp;&amp;lt;/xsl:template&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: xx-small;&quot;&gt;&amp;lt;/xsl:stylesheet&amp;gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
Just needs the parameters specifying to override the sample ones in the scripts when you invoke it...&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small;&quot;&gt;$ xsltproc --stringparam newNAME testvm --stringparam newMAC 11:22:33:44:55:66 clone.xsl oldvm.xml&lt;/span&gt;&lt;/blockquote&gt;
&lt;div&gt;
And the new XML comes out on stdout.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/feeds/6784773037703462971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2012/07/tweak-your-libvirt-xml-with-xslt.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/6784773037703462971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/6784773037703462971'/><link rel='alternate' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2012/07/tweak-your-libvirt-xml-with-xslt.html' title='Tweak your libvirt XML with XSLT'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11391520021315769367</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3859606087184738173.post-440650632665656784</id><published>2012-06-13T23:50:00.001-07:00</published><updated>2012-06-13T23:58:26.709-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="12.04"/><category scheme="http://www.blogger.com/atom/ns#" term="iscsi. benchmark"/><category scheme="http://www.blogger.com/atom/ns#" term="nfs"/><category scheme="http://www.blogger.com/atom/ns#" term="pangolin"/><category scheme="http://www.blogger.com/atom/ns#" term="precise"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="zfs"/><title type='text'>Ubuntu NAS - ZFS on the HP Microserver</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-left: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyyrJ2vXfEvDBttlDMvE_jGBJd7Fm2uMUQA-AqEhqmM9nEHh8KfjS7YSfQX1mlbYBDtiZ3yhdFu1tE5e4nnP7oFHFNHsZvVRjS_td9gkZcKJL5Z5uPx9hKGe0T5ej10z6sfGIRr9EJod4n/s1600/hpmicroserver.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img alt=&quot;HP Microserver N40L&quot; border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyyrJ2vXfEvDBttlDMvE_jGBJd7Fm2uMUQA-AqEhqmM9nEHh8KfjS7YSfQX1mlbYBDtiZ3yhdFu1tE5e4nnP7oFHFNHsZvVRjS_td9gkZcKJL5Z5uPx9hKGe0T5ej10z6sfGIRr9EJod4n/s200/hpmicroserver.jpg&quot; title=&quot;&quot; width=&quot;173&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;HP Microserver N40L&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
I had loads of fun setting up &lt;a href=&quot;http://www.freenas.org/&quot; target=&quot;_blank&quot;&gt;FreeNAS&lt;/a&gt;&amp;nbsp;on a &lt;a href=&quot;http://h10010.www1.hp.com/wwpc/uk/en/sm/WF25a/15351-15351-4237916-4237917-4237917-4248009.html?dnr=1&quot; target=&quot;_blank&quot;&gt;HP Microserver&lt;/a&gt;&amp;nbsp;and can highly recommend this combination for a small home/office file server. But I had a few problems mainly with the performance and stability of the iScsi driver that comes with it. So I decided to pull out the FreeNAS/freebsd root disk and put in a new one on which to check out&amp;nbsp;&lt;a href=&quot;http://www.ubuntu.com/&quot; target=&quot;_blank&quot;&gt;Ubuntu 12.04&lt;/a&gt;&amp;nbsp;server in combination with the&amp;nbsp;&lt;a href=&quot;https://launchpad.net/~zfs-native/+archive/stable&quot; target=&quot;_blank&quot;&gt;native linux ZFS filesystem&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
My target was to get 1Gb/s read and write performance out of the little microserver - ideally iScsi, but NFS would be OK too. Amazingly although the former appears to be a little optimistic the latter is acheivable.&lt;br /&gt;
&lt;br /&gt;
I had setup FreeNAS with 3x2TB disks in a RAIDZ1 array. I replaced the root disk with a new one leaving the 3 ZFS disks in situ and installed ubuntu 12.04 server on the fresh root disk. I created a &#39;nas&#39; user account for the box and got the installer to put SSH on for me, but nothing else.&lt;br /&gt;
&lt;br /&gt;
ZFS installation is straightforward - i installed bonnie++ too so I could do some benchmarks on the box.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;# apt-get update&lt;/span&gt;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;# apt-get upgrade&lt;/span&gt;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;# apt-get install&amp;nbsp;python-software-properties&lt;/span&gt;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;# apt-add-repository&amp;nbsp;&lt;span style=&quot;background-color: white; color: #333333; line-height: 18px; text-align: left;&quot;&gt;ppa:zfs-native/stable&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;background-color: white; color: #333333; line-height: 18px; text-align: left;&quot;&gt;# apt-get update&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;line-height: 18px;&quot;&gt;# apt-get install ubuntu-zfs nfs-server sysstat&amp;nbsp;iscsitarget iscsitarget-dkms open-iscsi bonnie&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Once installed mounting the existing ZFS array was a case of doing&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;# zfs import -f nasvol&lt;/span&gt;&lt;/blockquote&gt;
and /nasvol appeared by magic on the root of the filesystem.&lt;br /&gt;
&lt;br /&gt;
I then set about benchmarking performance of ZFS, ext4 (the root filesystem) NFS, iScsi using bonnie++. The fastest combination turned out to be a 4 drive RAID10 ZFS setup with NFS. I couldn&#39;t get iScsi to perform without large latency, i/o coming in bursts or high CPU. NFS on the other hand was pretty sweet - locally managing 180MB/s write and 250MB/s read. NFS speeds top out at 96MB/s write and 105MB/s read.&lt;br /&gt;
&lt;br /&gt;
To get this performance, a few tips:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;ZFS performance is woeful (40MB/s) unless you create the zpool with &#39;-o ashift=12&#39;. This makes it use 4k blocks (i think) which coincides with the modern SATA drives.&lt;/li&gt;
&lt;li&gt;More spindles, more speed. Raid 10 gives it 4 to read from and 2 to spread the writes accross.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;RAIDZ1 is great, but not with the Microserver&#39;s horsepower. Get an i5/i7 and you&#39;ll be able to enjoy deduplication too!&lt;/li&gt;
&lt;li&gt;NFS server set up rw, async, no_subtree_check, wdelay. (The UPS is on order)&lt;/li&gt;
&lt;li&gt;NFS client set up to use rsize/wsize 65536, tcp, and noatime.&lt;/li&gt;
&lt;li&gt;It&#39;s possible to disable checksumming in ZFS, but it didn&#39;t make much different in this setup.&lt;/li&gt;
&lt;/ol&gt;
As I mentioned above, iScsi performance didn&#39;t really compare too well with NFS. My ZFS zVol iScsi target managed 70MB/s writes and 50MB/s reads. None of the combinations of LVM2/ext4/iScsi I tried managed more than 80MB/s write although some did manage 100MB/s read.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/feeds/440650632665656784/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2012/06/ubuntu-nas-zfs-on-hp-microserver.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/440650632665656784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/440650632665656784'/><link rel='alternate' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2012/06/ubuntu-nas-zfs-on-hp-microserver.html' title='Ubuntu NAS - ZFS on the HP Microserver'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11391520021315769367</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyyrJ2vXfEvDBttlDMvE_jGBJd7Fm2uMUQA-AqEhqmM9nEHh8KfjS7YSfQX1mlbYBDtiZ3yhdFu1tE5e4nnP7oFHFNHsZvVRjS_td9gkZcKJL5Z5uPx9hKGe0T5ej10z6sfGIRr9EJod4n/s72-c/hpmicroserver.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3859606087184738173.post-8289283562778343997</id><published>2012-06-13T10:16:00.001-07:00</published><updated>2012-06-13T10:16:53.109-07:00</updated><title type='text'>Ach! NFSv4 is mungling my UIDs</title><content type='html'>Just noticed my NFS mounts had horribly long UID/GIDs which look suspicioiusly like 2^32 -1 (or close to that). It turns out that with nfs4 idmapd is used to map uids to/from the server. For my simple purposes my first instinct was how do I turn this off! But it appears that one source of it&#39;s confusion is just the the domain name it is configured with.&lt;br /&gt;
&lt;br /&gt;
Changing the idmapd.conf file to set the domain to be the same at both ends did the trick - now the IDs are as expected on client and server.&lt;br /&gt;
&lt;br /&gt;
**update** Only on the 12.04 server. On my 11.10 server the IDs were still mungled, and worse I couldn&#39;t restart idmapd using service restart. Manually starting rpc.idmapd didn&#39;t work either. I rested to:&lt;br /&gt;
&lt;br /&gt;
# apt-get remove nfs-common libnfsidmap2&lt;br /&gt;
# apt-get purge nfs-common libnfsidmap2&lt;br /&gt;
# apt-get install nfs-common libnfsidmap2&lt;br /&gt;
&lt;br /&gt;
Which after putting the correct domain back in /etc/idmapd.conf did the trick.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/feeds/8289283562778343997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2012/06/ach-nfsv4-is-mungling-my-uids.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/8289283562778343997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/8289283562778343997'/><link rel='alternate' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2012/06/ach-nfsv4-is-mungling-my-uids.html' title='Ach! NFSv4 is mungling my UIDs'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11391520021315769367</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3859606087184738173.post-5889361756009589395</id><published>2012-06-08T01:57:00.002-07:00</published><updated>2012-06-08T01:58:50.690-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="12.04"/><category scheme="http://www.blogger.com/atom/ns#" term="disable"/><category scheme="http://www.blogger.com/atom/ns#" term="network manager"/><category scheme="http://www.blogger.com/atom/ns#" term="pangolin"/><category scheme="http://www.blogger.com/atom/ns#" term="precise"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Stop Ubuntu 12.04 NetworkManager meddling!</title><content type='html'>&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-left: 1em; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;118&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfdqR-s4gbNbwqh_4qEDGe-BPNgjMB3b0cxFBD1qYxozuiNEXFJRiUSasrWuYevZzVgFut9qswB1J6BjYCyw9IxXYMnVdwVEEkZOXxppyloeMLgdXH6av_yU-MhYRVbS9GLfz1EUFtnxgL/s200/networkmanager.png&quot; style=&quot;color: #0000ee; margin-left: auto; margin-right: auto;&quot; width=&quot;200&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Annoying Notifications!&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
After adding a couple of extra NICs to my work&amp;nbsp;&lt;a href=&quot;http://www.ubuntu.com/&quot; target=&quot;_blank&quot;&gt;Ubuntu 12.04&lt;/a&gt; desktop PC - part of an ongoing work with our office NAS/iScsi server - the network icon was blinking away trying to do something useful with the new cards. &amp;nbsp;Mildly annoying when in the office. Horrid when accessing remotely as the notifications eat lots of bandwidth.&amp;nbsp;At the same time it was generating a fair amount of guff in /var/log/syslog.&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Easy, I thought - i&#39;ll go fix them in /etc/network/interfaces... ...hang on:&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;auto lo&lt;br /&gt;iface lo inet loopback&lt;/span&gt;&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
where&#39;s eth0 gone?! It seems that by default all is now managed by the network manager - just what I want most of the time especially on my notebook. But not what I want right now. Should I disable it?&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;root@welbeck:/run# service network-manager stop&lt;br /&gt;network-manager stop/waiting&lt;br /&gt;root@welbeck:/run# ifconfig&lt;br /&gt;lo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Link encap:Local Loopback &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet addr:127.0.0.1 &amp;nbsp;Mask:255.0.0.0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet6 addr: ::1/128 Scope:Host&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UP LOOPBACK RUNNING &amp;nbsp;MTU:16436 &amp;nbsp;Metric:1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX packets:118 errors:0 dropped:0 overruns:0 frame:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TX packets:118 errors:0 dropped:0 overruns:0 carrier:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; collisions:0 txqueuelen:0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RX bytes:8230 (8.2 KB) &amp;nbsp;TX bytes:8230 (8.2 KB)&lt;/span&gt;&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
Eth0 has gone! Not quite what I had in mind. A quick dig into the manpage for NetworkManager.conf (in /etc/NetworkManager) though has this:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; managed=false | true&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Controls whether interfaces listed in the &#39;interfaces&#39; file &amp;nbsp;are&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; managed &amp;nbsp;by &amp;nbsp;NetworkManager. &amp;nbsp; If &amp;nbsp;set &amp;nbsp;to true, then interfaces&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; listed in /etc/network/interfaces are managed by NetworkManager.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If &amp;nbsp;set &amp;nbsp;to &amp;nbsp;false, &amp;nbsp;then &amp;nbsp;any &amp;nbsp;interface &amp;nbsp;listed &amp;nbsp;in &amp;nbsp;/etc/net‐&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; work/interfaces will be ignored by NetworkManager. Remember that&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NetworkManager controls the default route, so because the inter‐&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; face is ignored, NetworkManager may assign the default route &amp;nbsp;to&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; some &amp;nbsp;other &amp;nbsp;interface. &amp;nbsp;When the option is missing, false value&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; is taken as default.&lt;/blockquote&gt;
&lt;div&gt;
Sounds like it does &lt;i&gt;Just the right thing(TM)&lt;/i&gt;&amp;nbsp;then. So quick hack of /etc/network/interfaces&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;auto lo&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;iface lo inet loopback&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;auto eth0&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;iface eth0 inet dhcp&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;auto eth1&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;iface eth1 inet manual&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;auto eth2&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;iface eth2 inet manual&lt;/span&gt;&lt;/blockquote&gt;
&lt;div&gt;
And a service network-manager stop/start...&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNj0sHQCN7yZT6koyH4tiKVZZ0VDnNDOUH6RrjUmj_DmlxxpVCm5jMrZzLjPRgwQA3mJQ2wnKjyDHwvfbzi_x2aFYGeMJMeasYAC_15cNBYf2wajbSujCpXYqsEGmlafDHulWI227Q32BF/s1600/fixednetworkmanager.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;160&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNj0sHQCN7yZT6koyH4tiKVZZ0VDnNDOUH6RrjUmj_DmlxxpVCm5jMrZzLjPRgwQA3mJQ2wnKjyDHwvfbzi_x2aFYGeMJMeasYAC_15cNBYf2wajbSujCpXYqsEGmlafDHulWI227Q32BF/s320/fixednetworkmanager.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
And it&#39;s wound it&#39;s neck in.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/feeds/5889361756009589395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2012/06/stop-ubuntu-1204-networkmanager.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/5889361756009589395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/5889361756009589395'/><link rel='alternate' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2012/06/stop-ubuntu-1204-networkmanager.html' title='Stop Ubuntu 12.04 NetworkManager meddling!'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11391520021315769367</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfdqR-s4gbNbwqh_4qEDGe-BPNgjMB3b0cxFBD1qYxozuiNEXFJRiUSasrWuYevZzVgFut9qswB1J6BjYCyw9IxXYMnVdwVEEkZOXxppyloeMLgdXH6av_yU-MhYRVbS9GLfz1EUFtnxgL/s72-c/networkmanager.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3859606087184738173.post-8927038580295540245</id><published>2012-06-05T16:15:00.001-07:00</published><updated>2012-06-05T16:44:12.751-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="freenas"/><category scheme="http://www.blogger.com/atom/ns#" term="iscsi"/><category scheme="http://www.blogger.com/atom/ns#" term="virtualbox"/><category scheme="http://www.blogger.com/atom/ns#" term="zfs"/><title type='text'>Host a VirtualBox VM on a FreeNAS iScsi target</title><content type='html'>&lt;h2&gt;


Setup Freenas iScsi Target&lt;/h2&gt;
&lt;h3&gt;


Pre-requisites&lt;/h3&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;A &lt;a href=&quot;http://www.freenas.org/&quot; target=&quot;_blank&quot;&gt;FreeNAS&lt;/a&gt;&amp;nbsp;server with a ZFS filesystem. I have Freenas 8.04p2 with RAIDZ1 accross 3x2TB disks&lt;/li&gt;
&lt;li&gt;Another computer on the same network with&amp;nbsp;&lt;a href=&quot;https://www.virtualbox.org/&quot; target=&quot;_blank&quot;&gt;Virtual Box&lt;/a&gt;&amp;nbsp;installed - in my case an ubuntu 11.04 workstation (sudo apt-get install virtualbox virtualbox-guest-additions virtualbox-guest-additions-iso)&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;h3&gt;

Create ZFS Volume&lt;/h3&gt;
&lt;div&gt;
Easy with freenas, just needs a name and a size. My case - &#39;coppervmroot&#39; and 30gb.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;

Set up iScsi&lt;/h3&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;Create a &#39;portal&#39; - the default 0.0.0.0:3260 is fine.&lt;/li&gt;
&lt;li&gt;Create an &#39;authorized initiator&#39; using the defaults (all/all)&lt;/li&gt;
&lt;li&gt;Create a target. name: coppervmroot, type &#39;disk&#39;, portal group &#39;1&#39;, initiator group &#39;1&#39;, auth method &#39;none.&lt;/li&gt;
&lt;li&gt;Create a device extent. coppervmrootextent refering to the coppervmroot ZVOL&lt;/li&gt;
&lt;li&gt;Create an &#39;associated target&#39;, in this case the coppervmrootextent and the coppervmroot target&lt;/li&gt;
&lt;li&gt;Turn on iscsi !&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;h3&gt;

Testing from Ubuntu&lt;/h3&gt;
&lt;div&gt;
Get the iscsi tools:&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
sudo apt-get install open-iscsi open-iscsi-utils&lt;/blockquote&gt;
&amp;nbsp;See what volumes are exported by (as root)&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# iscsiadm -m discovery -t sendtargets -p 10.xx.xx.xx:3260&lt;br /&gt;
10.xx.xx.xx:3260,1 iqn.2002-02.jfdi.org.tgt:coppervmroot&lt;/blockquote&gt;
&lt;br /&gt;
&lt;div&gt;
Try mounting a the iScsi volume as a local block device&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# iscsiadm -m node --targetname iqn.2002-02.jfdi.org.tgt:coppervmroot --portal 10.xx.xx.xx:3260 --login&lt;br /&gt;
Logging in to [iface: default, target: iqn.2002-02.jfdi.org.tgt:coppervmroot, portal: 10.xx.xx.xx,3260]&lt;br /&gt;
Login to [iface: default, target: iqn.2002-02.jfdi.org.tgt:coppervmroot, portal: 10.xx.xx.xx,3260]: successful&lt;/blockquote&gt;
&lt;div&gt;
And you should see a device appear in /var/log/syslog:&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# tail -f /var/log/syslog&lt;br /&gt;
Jun &amp;nbsp;5 ... sd 4:0:0:0: [sdc] Attached SCSI disk&lt;/blockquote&gt;
&lt;/div&gt;
&lt;div&gt;
OK, so unmount it:&lt;/div&gt;
&lt;div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# iscsiadm -m node --targetname iqn.2002-02.jfdi.org.tgt:coppervmroot --portal 10.xx.xx.xx:3260 --logout&lt;br /&gt;
Logging out of session [sid: 1, target: iqn.2002-02.jfdi.org.tgt:coppervmroot, portal: 10.xx.xx.xx,3260]&lt;br /&gt;
Logout of [sid: 1, target: iqn.2002-02.jfdi.org.tgt:coppervmroot, portal: 10.xx.xx.xx,3260]: successful&lt;/blockquote&gt;
&lt;/div&gt;
&lt;h3&gt;

Setup Virtual Box VM with iScsi target for HDD&lt;/h3&gt;
&lt;div&gt;
You can&#39;t (yet!) manage an iscsi volume from the Virtual Box GUI. But you can do it with the vboxmanage command:&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
vboxmanage storageattach copper --storagectl sata0 --port 1 --device 0 --type hdd --medium iscsi --server 10.xx.xx.xx --target&amp;nbsp;iqn.2002-02.jfdi.org.tgt:coppervmroot&amp;nbsp;&lt;/blockquote&gt;
&lt;div&gt;
That&#39;s it. Boot off a CD and install onto the iScsi HDD.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
N.B. during installation my VM disconnected a couple of times. Resuming the VM (which stops automatically when this happens) seemed to do the trick.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/feeds/8927038580295540245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2012/06/host-virtualbox-vm-on-freenas-iscsi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/8927038580295540245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3859606087184738173/posts/default/8927038580295540245'/><link rel='alternate' type='text/html' href='http://justwhatdoyouthinkyouredoingdave.blogspot.com/2012/06/host-virtualbox-vm-on-freenas-iscsi.html' title='Host a VirtualBox VM on a FreeNAS iScsi target'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/11391520021315769367</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>