<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>conrey.org</title>
	<atom:link href="http://conrey.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://conrey.org</link>
	<description>homebrew and virtualization madness</description>
	<lastBuildDate>Tue, 07 Feb 2012 20:56:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Nexenta features and why they matter.</title>
		<link>http://conrey.org/2011/12/30/nexenta-features-and-why-they-matter/</link>
		<comments>http://conrey.org/2011/12/30/nexenta-features-and-why-they-matter/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 14:46:27 +0000</pubDate>
		<dc:creator>theron</dc:creator>
				<category><![CDATA[Front]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nexenta]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.conrey.org/?p=1477</guid>
		<description><![CDATA[Initially I was going to post this article as part of an install and configure series that I&#8217;m writing, but quickly realized that it&#8217;s going to be a probably going to be a reference article for other stuff as well. Hopefully, as I continue to learn and pick things up, this article will expand as [...]]]></description>
			<content:encoded><![CDATA[<p>Initially I was going to post this article as part of an install and configure series that I&#8217;m writing, but quickly realized that it&#8217;s going to be a probably going to be a reference article for other stuff as well. Hopefully, as I continue to learn and pick things up, this article will expand as well.<br />
<span id="more-1477"></span></p>
<h3>Why Nexenta is different</h3>
<p>If you&#8217;re coming from the standard storage arena, it&#8217;s hard to put a bead on Nexenta. First off, it&#8217;s just software. But more than that, at it&#8217;s core is open source software. Think of it as a <a href="http://en.wikipedia.org/wiki/Gobstopper">gobstopper</a> with three layers. At it&#8217;s core it&#8217;s based off of illumos and ZFS. Added on top is NexentaOS, a ubuntu userland that makes software management easy. If you&#8217;re ever tried Ubuntu, you know that it&#8217;s pretty simple to install updates. The third and outermost layer to Nexenta are the additional modules that add additional enterprise functionality to the storage appliance.</p>
<h3>What is illumos</h3>
<p>The illumos project started as a binary compatible distribution of OpenSolaris, the comunity supported distribution of Solaris.  Years ago, for me anyway, it was the most cost effective way to learn Solaris.  The intent was to create a straight fork that would stay compatible with any possible future releases that Oracle makes to the community.  It turned out this was a pretty wise move.  The OpenSolaris project within Sun didn&#8217;t adjust well to the transition [1].  Now illumos stands at the center of a new OS community, with a <strong>SOLID</strong> enterprise class foundation.  Many of the folks that were contributing/creating to the solaris codebase continue to contribute to illumos, and it will continue to be an interesting project to watch.</p>
<h3>What is ZFS</h3>
<p>In short, ZFS is an enterprise grade file system. It was designed by Sun to be a modern filesystem to handle modern hardware. To understand why ZFS is important you also need to understand how modern harddrives work:</p>
<blockquote><p>A modern hard disk devotes a large portion of its capacity to error detection data. Many errors occur during normal usage, but are corrected by the disk&#8217;s internal software, and thus are not visible to the host software. A tiny fraction of errors are not corrected. For example, a modern Enterprise SAS disk specification estimates this fraction to be one uncorrected error in every 1016 bits, or approximately one in every 1.2 PB.[19] A smaller fraction of errors are not even detected by the disk firmware or the host operating system. This is known as &#8220;silent corruption&#8221;. In a recent study, <a href="http://indico.cern.ch/getFile.py/access?contribId=3&amp;sessionId=0&amp;resId=1&amp;materialId=paper&amp;confId=13797">CERN found this issue to be problematic</a>.</p></blockquote>
<p>As hard drives get bigger, we&#8217;re all seeing data corruption become more of an issue. The changes of corruption, both noticed and silent, increase. In vmware envionments silent data corruption can ruin your day. I&#8217;m actually not sure how common it is, but in a service provider environment I worked at we had VMs that would not let us do anything with the vmdk. It seemed &#8220;stuck&#8221;. We couldn&#8217;t storage vmotion it, and it would continually give us grief. After troubleshooting for couple days, the only thing we could do was clone it and delete the original VM. That&#8217;s worked fine, but it could have been a lot worse. As storage envionments get bigger, silent data corruption will eventually happen in your environment unless you protect against it.</p>
<p>ZFS checksums every block that is written and automatically repairs blocks where corruption occurs. This provides end to end data integrity allowing you to be confident there won&#8217;t be a problem with the data when you need it.</p>
<p>Beyond this feature, ZFS allows for heterogeneous block and file replication, <strong>UNLIMITED</strong> snapshots and clones, compression, deduplication, non-disruptive volume increases and a host of other features. I&#8217;ll work through (and link to from here) these features in the future, but it&#8217;s important to get some other base functions explained.</p>
<h3>What is the ARC</h3>
<p>As legacy storage vendors will tell you; Cache is king.  The ability to cache data efficiently or &#8220;move blocks&#8221; or &#8220;other fancy caching name here&#8221; basically does one thing.  It moves data that is most accessed to a faster tier, or more responsive, layer.  ZFS leverages the ARC as it&#8217;s front line cache for most accessed blocks.  This means if your Nexenta appliance has 24G of RAM, it&#8217;s going to get 23 or so gigs to use to cache the most heavily used blocks.  As RAM is added, the ARC cache grows.  RAM being A LOT faster than SSD&#8217;s this proves invaluable for providing FAST response times and lower latency to the client devices.</p>
<h3>What is the L2ARC</h3>
<p>Below the ARC ZFS can leverage additional cache devices, in most configurations today this is SSD drives.  Cheaper than RAM, but still way faster than spinning tin.  This is the 2nd level of cache that Nexenta appliances use for caching &#8220;warm&#8221; data.  This hybrid storage model allows for Nexenta to use slow SLOOOOOWWWW disks for it&#8217;s main storage pool of the working size set (average amount of blocks that are constantly active) fit inside both the L2ARC and ARC cache.</p>
<div></div>
<h3>What is the ZIL</h3>
<p>The ZIL (ZFS intent Log) is the write cache.  Random R/W is the bane of every VMware administrators life.  Not only does Nexenta leverage a read cache, we can cache writes to more efficiently lay down blocks on the slow disks to better handle write workloads.</p>
<h3>How does all of this tie together?</h3>
<p>For our lab environment, if you can move the L2ARC and the ZIL to an SSD drive, you&#8217;ll already start being able to use some of the performance gains that Nexenta brings to the table. Even in a two drive configuration, if one of them is SSD, and there is plenty of Ram available, Nexenta can start helping increase performance through it&#8217;s caching technology.  But that&#8217;s not it, Nexenta brings to the table a host of other features.</p>
<ol>
<ol>
<li>Nexenta provides a software stack that can deliver NAS (NFS/CIFS) and/or SAN (iSCSI/FC)<br />
storage that allows for high performance allowing users to leverage current commodity technologies (ex SSD for performance).</li>
<li>It provides UNLIMITED snapshots and clones</li>
<li>It can be configured in a fully active/active HA configuration.</li>
<li>It provides block and file level replication that can be leveraged for easy DR configurations either in a syncronous or asynchronous configuration.</li>
<li>It&#8217;s vmware certified</li>
<li>It provides compession, dedupe and inline virus scanning. (not post process!)</li>
<li>metro clustering</li>
<li>global namespace</li>
<li>(this goes on and on)</li>
</ol>
</ol>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>[1] The opensolaris project wasn&#8217;t alone. Oracle&#8217;s purchase of Sun resulted in the forking of <a href="http://www.libreoffice.org/">LibreOffice</a> from OpenOffice.org, and <a href="http://mariadb.org/">MariaDB</a> from MySQL. <a href="http://www.youtube.com/watch?v=-zRN7XLCRhc">Bryan Cantrill&#8217;s talk at LISA</a>  this year pretty much sums up oracle in a nutshell.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://conrey.org/2011/12/30/nexenta-features-and-why-they-matter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>looking forward to 2012</title>
		<link>http://conrey.org/2011/11/21/2011-wrap-up-and-looking-forward-to-2012/</link>
		<comments>http://conrey.org/2011/11/21/2011-wrap-up-and-looking-forward-to-2012/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 13:00:18 +0000</pubDate>
		<dc:creator>theron</dc:creator>
				<category><![CDATA[Front]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Nexenta]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://www.conrey.org/?p=1389</guid>
		<description><![CDATA[I&#8217;ve spent the last few years working at a service provider working on client facing VMware projects, rolling out out a VMware vCloud environment, and helping shape how VMware can be leveraged internally. One of great things for me professionally was a chance to get my hands deeper into VMware&#8217;s product catalog from about every [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve spent the last few years working at a service provider working on client facing VMware projects, rolling out out a <a href="http://www.vmware.com">VMware</a> <a href="http://www.vmware.com/products/vcloud/overview.html">vCloud</a> environment, and helping shape how VMware can be leveraged internally. One of great things for me professionally was a chance to get my hands deeper into VMware&#8217;s product catalog from about every angle imaginable.<br />
It was awesome getting a look behind the curtains at how a really great datacenter and internet company works to constantly deliver solid solutions to their customers.   With this year drawing to a close soon, I&#8217;m eagerly looking forward to new projects and new challenges to tackle.</p>
<p><span id="more-1389"></span></p>
<p>Outside the office I had the opportunities to get involved elsewhere as well.  <a href="http://www.vmworld.com">VMworld</a> this year was awesome and I&#8217;m still watching presentations I didn&#8217;t watch live. <a href="http://www.vmunderground.com">VMunderground</a> this year was pretty amazing.  We had our biggest event ever. As always we had great sponsors and we were really impressed with the support and turnout from the community. I was invited to attend TechFieldDay6 but due to an unruly internal organ, attended <a href="http://techfieldday.com/2011/tfd7/">TechFieldDay7</a> instead. Stephen Foskett runs a great event, and I was honored to be invited.</p>
<p>Locally, and against better judgement, I was voted in as president for my local LUG, and even though I didn&#8217;t have any intentions of running, I&#8217;m looking forward to it nonetheless.  I&#8217;m also excited that we may be able to start more coordinated and focused efforts with the Iowa Ubuntu LoCo, as I&#8217;m moving into a more active role there as well.</p>
<p>One of the more interesting things I&#8217;ve done this year was take some time to attend the <a href="http://www.conrey.org/?p=1414">Open Storage Summit</a> in San Jose.  Great week, great presentations, and I took away a ton of information.  Maybe more importantly, I took away the knowledge that these guys (and gals) are really building something different, something open, and something with community at the forefront.  The team around illumos is really focused on making a difference.  <a href="http://www.nexenta.com">Nexenta</a> has been a big supporter of VMUGs around the globe, and of course <a href="http://www.vmunderground.com">VMunderground</a> as well.</p>
<p>The storage market has got to be a tough nut to crack.  <em>Buying your storage from a software company</em> is something new in the minds of many companies and IT management, but it isn&#8217;t a new idea.  Most of us in the industry today are completely ok with <em>buying our compute and OS resource management from a software company</em>. VMware has effectively moved the cheese for many MANY hardware companies.  I don&#8217;t need to buy &#8220;windows specific&#8221; or linux optimized&#8221; hardware.  Solid hardware that supports VMware is enough.  This change isn&#8217;t done yet.  I think Stephen Foskett&#8217;s assessment of <a href="http://blog.fosketts.net/2011/10/31/vmware-oedipus-server-virtualization-change-storage/">VMware as Oedipus</a> has legs.  This doesn&#8217;t mean that traditional storage vendors are going to toss in the towel, there is significant innovation going on <em>industry wide</em> and they&#8217;ve got huge war chests to spend.  It just means, like always, things are changing.  This is a really exciting time to be involved in technology.</p>
</p>
<p>With the adaption of vmware&#8217;s VSA it&#8217;s important to realize, now more than ever, you don&#8217;t have to wrap mostly expensive tin around your software <em>anywhere</em>, anymore.  You <strong>can</strong> leverage commodity hardware.  You <strong>can</strong> build what you need, <strong>when</strong> you need it. </p>
<p>Which brings me back to the beginning of this tirade.  New projects and new challenges.  At this point it should be pretty evident where I&#8217;m placing my chips.  It was a tough decision but I&#8217;ve decided to leave <a href="http://www.lightedge.com">LightEdge</a> and jump feet first into the open storage arena.  I&#8217;ll be starting soon with <a href="http://www.nexenta.com">Nexenta</a> helping get open storage based solutions deployed to customers around the globe.  <a href="http://www.lightedge.com">Lightedge</a> has been a great company to work for and I wish them the best of luck as they move forward.</p>
<p>In charting a new course I&#8217;m looking forward to new and exciting challenges.  Wish me luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://conrey.org/2011/11/21/2011-wrap-up-and-looking-forward-to-2012/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>building virtual appliances on ubuntu</title>
		<link>http://conrey.org/2011/11/14/building-virtual-appliances-on-ubuntu/</link>
		<comments>http://conrey.org/2011/11/14/building-virtual-appliances-on-ubuntu/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 00:07:21 +0000</pubDate>
		<dc:creator>theron</dc:creator>
				<category><![CDATA[Front]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.conrey.org/?p=1435</guid>
		<description><![CDATA[Ubuntu to me is still the best OS to use for virtual appliances. It may not be for the reasons that you&#8217;re thinking about so here&#8217;s my short list. it&#8217;s wildly successful to me this means lots of updates and support for packages both from the vendor (canonical) as well as the community. support available [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ubuntu.com">Ubuntu</a> to me is still the best OS to use for virtual appliances. It may not be for the reasons that you&#8217;re thinking about so here&#8217;s my short list.</p>
<ul>
<li>it&#8217;s wildly successful</li>
</ul>
<p>to me this means lots of updates and support for packages both from the vendor (canonical) as well as the community.</p>
<ul>
<li>support available from ONE install</li>
</ul>
<p>What other distribution has one install for the community AND commercial support? Yea. I can&#8217;t think of one either. This allows users to choose how much support they want/need from one virtual appliance/installation.</p>
<ul>
<li>small minimal virtual machine footprint</li>
</ul>
<p>The ovf will fit neatly on a 512M usb drive when complete.<br />
<span id="more-1435"></span></p>
<h3>why another virtual appliance tutorial?</h3>
<p>I know that building virtual appliances is old hat for many of you, but I keep getting the question about how to build virtual appliances for distribution. In a recent scenario at my work, they were looking for a splunk virtual appliance that members of the consulting group could quickly leave on site. I thought this would be a good walkthrough. Let me know if you have any questions.</p>
<h3>let&#8217;s get started!</h3>
<p>First things first we need to download a copy of <a href="http://www.ubuntu.com/download/server/download">ubuntu server</a>. Once you&#8217;ve got your iso downloaded, go ahead and build out the base VM that you&#8217;re going to use. For these types of deployments, I go ahead and configure the appliance inside a vApp as we are starting to deploy more of these on vCloud deployments.</p>
<h3>build your vApp and VM</h3>
<ul>
<li>In vSphere, right click on your cluster or host and select New vApp.</li>
<li>Name your vApp, select next.</li>
<li>If you need/want to isolate resources specifically for this vApp you can do so on the Resource Allocation screen. I&#8217;ll go ahead and reserve 1G of Memory cause I&#8217;m greedy like that. Select next.</li>
<li>Select Finish and find your vApp in the VM list.<br />
Now we need to add the VM to the vApp.</li>
<li>Right click on the vApp and select New Virtual Machine.</li>
<li>Name your virtual machine and select Next (this demo will be for spunk so I&#8217;ll use the ever so cunning name splunk. Select Next.</li>
<li>select which datastore you want this VM to temporarily live, select next.</li>
<li>select the Guest Operating System for this VM, in this case, select the Linux radio button, and select Ubuntu Linux (64-bit) in the Version dropdown window. Select Next. (you did download the 64bit version right?!)</li>
<li>Set the size of your virtual appliance, I&#8217;ll crank this down to 10G, as the splunk data directories will be remote NFS mounted in most cases. I&#8217;m a huge fan of thin provisioning. check it if it&#8217;s appropriate for your workload. select Next.</li>
<li>Select Finish.<br />
<h3>install ubuntu</h3>
<p>mount the iso to your vm, and start &#8216;er up. Once you&#8217;ve selected your language, on the initial install screen&#8230;</li>
<li>select f4</li>
<li>
<p style="clear: both;">select Install a minimal virtual machine [1] <img src="http://conrey.org/files/2011/11/virtappliance01.png" alt="" width="519" height="471" /></p>
</li>
<li>select enter (this takes you back to the main screen)</li>
<li>select Install Ubuntu Server (should be checked by default) Select Next</li>
<li>select your language again (don&#8217;t ask) Hit Enter</li>
<li>select your location. hit Enter</li>
<li>select No for keyboard layout</li>
<li>select your Keyboard language (English (US) is default)</li>
<li>select your Keyboard layout (English (US) is default)</li>
<li>The system will load additional components as needed</li>
<li>Network configuration. I SERIOUSLY recommend DHCP for just about everything. It&#8217;s 2011 folks, DNS and DHCP works.</li>
<li>give your appliance a hostname (splunkappliance in my case) Select next.</li>
<li>it&#8217;ll start up the clock and check your time zone. change it if needed or select Yes.</li>
<li>For partitioning, I select Guided &#8211; use entire disk and set up LVM to make it easier to expand the install as needed down the road if required. Select this and hit enter</li>
<li>default vm will have one disk listed, select it and hit enter.</li>
<li>Select Yes to write the changes to disk, and hit enter</li>
<li>If using LVM you&#8217;ll be prompted with the maximum amount of space in the volume group. Select Continue and hit enter.</li>
<li>Select Yes to write the changes to disk and hit enter</li>
<li>Enter your default full username, select continue.</li>
<li>Enter your default user name, select continue.</li>
<li>Enter your default password, select continue.</li>
<li>You&#8217;ll be prompted with &#8220;How do you want to manage upgrades on this system?&#8221; I select install security updates automatically so I don&#8217;t have to worry about being blamed for something that is WAY outside my control 6 months from now. It&#8217;ll still happen, but I&#8217;ll sleep easier. Select which of the first two you want, and hit enter.</li>
<li>Choose software to install. The only thing I select here is OpenSSH server. that&#8217;s it. select it and select continue.</li>
<li>This will start the package install, and it should go relatively fast</li>
<li>select Yes to install the GRUB boot loader to the master boot record.</li>
<li>Select Continue to finish your installation</li>
<li>unmount the iso from vSphere client</li>
<li>The above will install a really base system for your virtual appliance. I go ahead and install openssh-server on the vm so that it doesn&#8217;t need unproxied internet access during it&#8217;s first boot to get it installed. As I&#8217;m regenerating the ssh keys anyway, I don&#8217;t worry about it too much. This VM should boot REALLY really fast.<br />
<h3>/etc/issue</h3>
<p>/etc/issue.net is the file that handles what is displayed before a user logs in. like this:<br />
<img src="http://conrey.org/files/2011/11/virtappliance02.png" alt="" width="468" height="281" /></p>
<p>that&#8217;s pretty boring right? what we want for our appliance is to have something awesome like this:</p>
<p><img src="http://conrey.org/files/2011/11/virtappliance03.png" alt="" width="408" height="269" /></p>
<p>To get this we&#8217;ll need to do a couple of things. we&#8217;ll want to create a new script that is run at bootup <strong>every time</strong>. This will generate the /etc/issue.net for us after we get our ip address. Here&#8217;s the contents of a generic one I used for this demo. Adjust as needed.</p>
<p><sourcecode language="text"><br />
#! /bin/bash<br />
#<br />
# issue-reset set ipaddr in /etc/issue<br />
#<br />
# chkconfig: 2345 90 60<br />
# description: this will echo the ip address to /etc/issue for display<br />
#<br />
# Source function library.<br />
#. /etc/init.d/functions<br />
RETVAL=0<br />
#<br />
# See how we were called.<br />
#<br />
prog=&#8221;issue-reset&#8221;<br />
start() {<br />
#<br />
#change /etc/issue to display ip address<br />
#<br />
echo &#8220;AWESOMETACULAR Splunk Appliance&#8221; &gt; /etc/issue<br />
echo &#8220;Powered by Ubuntu Linux and caffeine&#8221; &gt;&gt; /etc/issue<br />
echo &#8221; &#8221; &gt;&gt; /etc/issue<br />
netcount=$(/sbin/ifconfig | grep -o &#8220;inet&#8221;)<br />
if [[ $netcount &gt; 1 ]]<br />
then<br />
echo &#8220;To manage this virtual appliance please use a web &#8221; &gt;&gt; /etc/issue<br />
echo &#8220;browser on a different system and navigate to &#8221; &gt;&gt; /etc/issue<br />
echo &#8221; &#8221; &gt;&gt; /etc/issue<br />
/sbin/ifconfig | grep &#8220;inet addr&#8221; | grep -v &#8220;127.0.0.1&#8243; | awk &#8216;{ print $2 }&#8217; | awk -F: &#8216;{ print &#8220;http://&#8221;$2&#8243;:8000&#8243; }&#8217;&gt;&gt; /etc/issue<br />
echo &#8221; &#8221; &gt;&gt; /etc/issue<br />
else<br />
echo &#8220;This appliance does not have networking configured. Please log in to configure networking&#8221; &gt;&gt; /etc/issue<br />
fi<br />
echo &#8221; &#8221; &gt;&gt; /etc/issue<br />
cp /etc/issue /etc/issue.net<br />
# RETVAL=$?<br />
echo<br />
[ $RETVAL -eq 0 ]<br />
return $RETVAL<br />
}<br />
case &#8220;$1&#8243; in<br />
start)<br />
start<br />
;;<br />
*)<br />
echo $&#8221;Usage: $0 {start}&#8221;<br />
exit 1<br />
esac</p>
<p>exit $?<br />
</sourcecode></p>
<p>Once you&#8217;ve downloaded this, we&#8217;re going to move it to the /etc/init.d directory and rename it banner:<br />
<code>mv ./banner.txt /etc/init.d/banner</code><br />
change the owner to root, and make it executable.<br />
<code>sudo chmod +x /etc/init.d/banner &amp;&amp; sudo chown root.root /etc/init.d banner</code><br />
add /etc/init.d/banner to be run at startup:<br />
<code>sudo update-rc.d banner defaults</code></p>
<p>that&#8217;s it! You&#8217;ll want to edit that file to make it reflect what you want it to say, but it&#8217;s pretty self explanatory.</p>
<h3>firstboot startup script</h3>
<p>There are a couple of ways to handle first boot only startup scripts. The easiest way I&#8217;ve found is to edit the rc.local file to run a script, and when complete, clean up after itself. Here&#8217;s what my firstboot script looks like:</p>
<p><sourcecode language="perl"><br />
#This script is run the first time a user logs in<br />
echo &#8220;Your Splunk appliance is almost finished being deployed&#8221;</p>
<p>INSTALL=&#8221;apt-get install -y&#8221;<br />
REMOVE=&#8221;apt-get remove -y&#8221;<br />
SPLUNK_HOME=&#8221;/opt/splunk&#8221;<br />
apt-get update</p>
<p># email<br />
$INSTALL exim4-daemon-heavy</p>
<p># expire the user account passwd<br />
passwd -e defaultuser</p>
<p># new ssh key generation<br />
rm /etc/ssh/ssh_host*key*<br />
dpkg-reconfigure -f noninteractive -p critical openssh-server</p>
<p># splunk<br />
dpkg -i /root/splunk-4.2.4-110225-linux-2.6-amd64.deb</p>
<p>#start splunk server for the first time<br />
$SPLUNK_HOME/bin/splunk start &#8211;accept-license</p>
<p>#configure splunk to autostart at boot<br />
$SPLUNK_HOME/bin/splunk enable boot-start</p>
<p># clean up<br />
sed -i &#8216;s_/root/firstboot.sh_exit 0_&#8217; /etc/rc.local</p>
<p>echo &#8220;firstboot complete&#8221;<br />
</sourcecode></p>
<p>You&#8217;ll want create a file with that as the content, save it, and put it somewhere where it can be run during boot. For ease of this demo, we&#8217;re going to put it in our home folder. Don&#8217;t Judge, this is just a demo.</p>
<p><code>sudo mv ./firstboot.txt /root/firstboot.sh &amp;&amp; sudo chmod +x /root/firstboot.sh &amp;&amp; sudo chown root.root /root/firstboot.sh</code></p>
<p>Now we&#8217;re going to setup this script to be run during first boot. using whatever editor you want edit /etc/rc.local and remove the exit 0 line and substitute it with the following line:</p>
<p><code>/root/firstboot.sh</code></p>
<p>Let&#8217;s walk through firstboot.sh and take a look at what we&#8217;re doing. In our example, we&#8217;re creating a splunk virtual appliance, so from the top:</li>
<li>we&#8217;re updating our repositories</li>
<li>we&#8217;re installing an MTA for splunk to use.</li>
<li>we&#8217;re expiring the password for our default user account. Change this to reflect whatever username you selected.</li>
<li>we&#8217;re deleting and regenerating ssh keys</li>
<li>we&#8217;re installing splunk. For this example, you&#8217;ll need to get the splunk .deb package downloaded and put somewhere accessible. It&#8217;s free, go grab it now.</li>
<li>Now we&#8217;re going to do some startup specific commands for splunk, first we&#8217;re going to set splunk to start for the first time and accept the license.</li>
<li>Next we&#8217;re going to go ahead and configure splunk to start every time the server starts.</li>
<li>after that&#8217;s complete, we&#8217;re going to clean up /etc/rc.local to not run this script again.That&#8217;s it for our startup script. pretty straightforward.<br />
<h3>Test your appliance</h3>
</li>
<li>power off the VM and create a snapshot.</li>
<li>Power the vm on and test the startup, the install of our splunk package, and the firstboot configuration steps.</li>
<li>If everything works, go ahead and roll back our changes and create your ovf below</li>
<li>if it doesn&#8217;t power back on and dig in <img src='http://conrey.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<h3>add some info to your appliance</h3>
<p>If you&#8217;re planning on posting updates to this, or you want to provide the default username and password information directly in the ovf file, you&#8217;ll want to edit some of the details of your vApp.</li>
<li>Right-click on your vApp and select Edit Settings.</li>
<li>On the options tab, select Advanced.</li>
<li>Enter your appliance name, website, and any other information that you want to provide.</li>
<li>
<h3>export to ovf</h3>
</li>
<li>From the vSphere client, select the vApp, and in the File menu select Export, Export OVF Template.</li>
<li>pick a directory where you can store your appliance</li>
<li>export!</li>
<li>
<h3>test appliance</h3>
<p>one last test of your appliance and you&#8217;re ready for deployments. This last check for me usually provides a sanity check for the finished appliance. to deploy from vSphere client just:</li>
<li>select file</li>
<li>deploy OVF template</li>
<li>browse to the directory and select the OVF file</li>
<li>the only thing you should have to do other than picking a datastore, is selecting a network</li>
<li><a href="http://twitter.com/zenbiking/status/136209420320374784">Go get a cup of coffee while the deployment occurs</a></li>
<li>done!</li>
<li>
<h3>conclusion</h3>
<p>This walkthrough for a splunk appliance is pretty simple but if done correctly virtual appliances deployments can shave hours off of simple traditional application installations for your team. Getting more advanced versions of this, you could get fancy and add additional layers like puppet autoconfigs to further automate package deployments. Let me know what you think and if this worked for you!</p>
<p>[1] this is what used to be the <a href="https://help.ubuntu.com/community/JeOS">ubuntu JeOS install</a>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://conrey.org/2011/11/14/building-virtual-appliances-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Storage Summit 2011 thoughts</title>
		<link>http://conrey.org/2011/11/14/open-storage-summit-2011-2/</link>
		<comments>http://conrey.org/2011/11/14/open-storage-summit-2011-2/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 20:47:45 +0000</pubDate>
		<dc:creator>theron</dc:creator>
				<category><![CDATA[Front]]></category>
		<category><![CDATA[Nexenta]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.conrey.org/?p=1414</guid>
		<description><![CDATA[It&#8217;s been a few weeks and the dust has (mostly) settled from this years open storage summit and I wanted to get my thoughts down on paper as a first year attendee. overview First off, if you&#8217;re interested in the rapidly changing world around open storage software solutions and/or ZFS based storage, you should try [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a few weeks and the dust has (mostly) settled from this years <a href="http://www.openstoragesummit.org/">open storage summit</a> and I wanted to get my thoughts down on paper as a first year attendee.<br />
<span id="more-1414"></span></p>
<h3>overview</h3>
<p>First off, if you&#8217;re interested in the rapidly changing world around open storage software solutions and/or ZFS based storage, you should try to go next year. seriously.  Start thinking about this <strong>now</strong>. This year had three great tracks and solid keynotes around the evolving world of storage and the datacenter, and it all made for a great show.  </p>
<h3>event organization</h3>
<p>As a regular vmworld attendee, my bar is set pretty high about scale and size.  This conf is much MUCH smaller.  I quickly made my way through registration, and wandered around the partner area.  The &#8220;people herding&#8221; side of running an event always seems to be where it falls apart, but this event was well organized and ran smoothly.</p>
<p>Thumbing through the schedule one of the things that stuck me was that all of the tracks had solid presentations, for both days.  Like <a href="http://www.vmworld.com">vmworld</a>, when I wasn&#8217;t sure, I just dropped in on the session that I&#8217;d have the most questions to ask at the end of the presentation, hoping that the videos will be made available after the fact (<em>Hey Nexenta, they are going to be made available right?</em>)</p>
<p>Lunch was handled efficiently, and the dining area was large separate room.</p>
<h3>keynotes</h3>
<p>Keynotes were well planned and Nexenta did a great job getting speakers lined up.  </p>
<li>Billy Cox&#8217;s presentation around open compute platform and how it is already impacting datacenter design was interesting, and explained some things I really didn&#8217;t understand around open compute.
<li>Jason Hoffman, CTO and a founder at Joyent may have given one of the best economics of cloud presentation that I&#8217;ve ever seen.  Not because of some new idea, or unique data point, but by a seamless story that allowed for greater understanding using already easily understood concepts.  Seriously.  If you&#8217;ve get a time to listen to this guy, do so.
<li>W.C. Preston&#8217;s presentation about the &#8220;state of the backup world&#8221; was great, and his explanation around why cloud is going to stick around struck home for reasons I hadn&#8217;t considered.  Great speaker.
<li>Evan Powell&#8217;s keynote around open storage and where the project is today really set the stage for the whole event, and helped get everyone ramped up.</li>
<p>That was just a few of them.  All in all, an impressive lineup.</p>
<h3>sessions</h3>
<p>Out of all of the sessions that I sat through, I&#8217;ve got to say three of them stuck with me for different reasons.</p>
<li>How to Design Your Metro Cluster with NexentaStor &#8211; Andy Bennett &amp; Roel De Fran</li>
<p>I wasn&#8217;t expecting what I got in this session.  at all. ACTIVE / ACTIVE / ACTIVE metro cluster (yea that&#8217;s three way) up and running today on nexenta with vmware.  HOLY FRAKING AWESOME.</p>
<li>Design Options for Integration of VMware View with Nexenta Storage &#8211; Dan Beveridge, VMware</li>
<p>Sitting through this really made a few lightbulbs go off. the premise of this is why ZFS makes a silly awesome VSA for VDI workloads.  I&#8217;ll write up something about this here in the coming week or so, it really deserves it&#8217;s own blogpost.</p>
<li>How to Fine Tune NexentaStor for Performance &#8211; <a href="http://blog.richardelling.com/">Richard Elling</a> Nexenta</li>
<p>This was a closing presentation right before the summit ended.  This was your typical &#8220;tuning&#8221; presentation, except for a few things:</p>
<ol>
<li>it ran long&#8230;. like over an hour long.</li>
<li>no one got up and left. There were rears in chairs for the whole thing. </li>
</ol>
<h3>parties</h3>
<p>You&#8217;d have been shocked if I hadn&#8217;t mentioned the parties right?  Nexenta and sponsors threw a REALLY solid party at the <a href="http://loftbarandbistro.com/">Loft Bar and Bistro</a>.  While it wasn&#8217;t an official party around Open Storage Summit, some of the vmware folks in the area threw a <a href="http://www.vbeers.org/2011/10/26/vbeers-silicon-valley-thursday-october-27th/">#vBeers event on thursday night</a> that was well attended and it was great seeing the nexenta team show up in force also.  Thanks again to <a href="http://www.twitter.com/#!/KokopeIIi">@KokopeIIi</a> for organizing the silicon valley vbeers events.</p>
<h3>closing thoughts</h3>
<p>The three sessions highlighted above really solidified what I see going on in the open storage arena today:</p>
<li>Nexenta is driving real innovation.  While it may seem easier to buy vBoxMart solutions, you can&#8217;t blanket dismiss the cost savings and performance of open technologies today. </li>
<li>Nexenta makes a strong partner play whether it&#8217;s delivering VDI storage value and performance or carrying production shared storage workloads. </li>
<li>Nexenta (and illumos) has a REALLY passionate and technically savvy audience&#8230;.. and it&#8217;s growing. I&#8217;m looking forward to next year&#8217;s event, and I&#8217;m looking forward to seeing you there.</li>
<p>I&#8217;ll be adding some photos that I took later this week.  look for them <a href="http://www.conrey.org/" />here</a>. </p>
]]></content:encoded>
			<wfw:commentRss>http://conrey.org/2011/11/14/open-storage-summit-2011-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CloudFoundry : zero to server in 7 steps</title>
		<link>http://conrey.org/2011/10/20/cloudfoundry-zero-to-server-in-7-steps/</link>
		<comments>http://conrey.org/2011/10/20/cloudfoundry-zero-to-server-in-7-steps/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 21:18:07 +0000</pubDate>
		<dc:creator>theron</dc:creator>
				<category><![CDATA[Front]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.conrey.org/?p=1380</guid>
		<description><![CDATA[I&#8217;m talking to you vmware people. It&#8217;s time you downloaded and starting testing/deploying/building/breaking/hacking on cloudfoundry. This may be the coolest vmware project I&#8217;ve seen since ESX. seriously. I won&#8217;t go into how it could change application deployment on servers moving forward, or how it&#8217;ll help reshape the idea of application development altogether, there&#8217;s enough folks [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m talking to you vmware people.  It&#8217;s time you downloaded and starting testing/deploying/building/breaking/hacking on <a href="http://www.cloudfoundry.org">cloudfoundry</a>.  This may be the coolest vmware project I&#8217;ve seen since ESX.  seriously.  I won&#8217;t go into how it could change application deployment on servers moving forward, or how it&#8217;ll help reshape the idea of application development altogether, there&#8217;s enough folks that are talking about that. I just want to see more of you getting your hands dirty with it.<br />
<span id="more-1380"></span><br />
But how do we get started quickly?</p>
<ol>
<li><a href="http://www.ubuntu.com/download/server/download">download</a> an Ubuntu 11.10 Server iso.</p>
<li>Create a vm in vmware.  I&#8217;ll assume you&#8217;re good there and skip that part.
<li>mount your new iso and install Ubuntu Server 11.10 server.<br />
when you get to package selection, do nothing.  just do a minimal install.</p>
<li>update and upgrade your system<br />
<code>sudo apt-get update &amp;&amp; sudo apt-get upgrade</code></p>
<li>install a supporting package for step 6&#8230;<br />
<code>sudo apt-get install python-software-properties</code></p>
<li>add the cloudfoundry repositories<br />
<code>sudo apt-add-repository ppa:cloudfoundry/ppa</code></p>
<li>update and install cloudfoundry server<br />
<code>sudo apt-get update &amp;&amp; sudo apt-get install cloudfoundry-server</code><br />
During the install process you&#8217;ll be asked to set the root password for the mysql server that is installed as a dependency. You&#8217;ll also be asked for IP address information.  This is information you&#8217;ll need to have if you want you installation to be publicly visible and is behind a firewall.</p>
<p>Yea, it&#8217;s that easy. </p>
<h3>client install</h3>
<p>If you want to get the client installed on a different vm, follow the steps above on a fullblown <a href="http://www.ubuntu.com/download/ubuntu/download">Ubuntu</a> to install the repositories (steps 5 and 6 above) </p>
<p>Once that&#8217;s done it&#8217;s as easy as<br />
<code>sudo apt-get install cloudfoundry-client</code><br />
to get the vmc installed.</p>
<p>That should have all taken up about 15-20 minutes of your life, start to finish. (post downloads of course)</p>
<h3>Where to go from here?</h3>
<p>Dustin Kirkland has some great writeups about ubuntu and cloudfoundry so I recommend reading up on his blog <a href="http://blog.dustinkirkland.com/2011/07/getting-started-with-cloudfoundry.html">here</a> for some great examples.</p>
<p>I&#8217;ll follow this up with some posts about wordpress and how to get it running in a cloudfoundry deployment soonish.</p>
]]></content:encoded>
			<wfw:commentRss>http://conrey.org/2011/10/20/cloudfoundry-zero-to-server-in-7-steps/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VMunderground 2011</title>
		<link>http://conrey.org/2011/09/05/vmunderground-2011/</link>
		<comments>http://conrey.org/2011/09/05/vmunderground-2011/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 23:50:06 +0000</pubDate>
		<dc:creator>theron</dc:creator>
				<category><![CDATA[Front]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.conrey.org/?p=1363</guid>
		<description><![CDATA[Let me start by saying thanks to all of our amazing sponsors. This year was hands down the best party we&#8217;ve thrown. It&#8217;s hard to top the thirsty bear in SFO, but the Nine Fine Irishman in LAS was a roaring success. Thank you to everyone who helped out and I&#8217;ll be posting some pictures [...]]]></description>
			<content:encoded><![CDATA[<p>Let me start by saying thanks to all of our <a href="http://www.vmunderground.com/?page_id=162">amazing sponsors</a>.  This year was hands down the best party we&#8217;ve thrown.  It&#8217;s hard to top the thirsty bear in SFO, but the Nine Fine Irishman in LAS was a roaring success.  Thank you to everyone who helped out and I&#8217;ll be posting some pictures over at the <a href="http://www.vmunderground.com">VMunderground site</a> as soon as I can.</p>
<p>I&#8217;m not sure there could have been a better way to kick off <a href="http://www.vmworld.com">VMworld</a>, and now that the event is over, looking back, I&#8217;m not sure it could have gone any better. Now to start planning a way to top it next year!</p>
<p>Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://conrey.org/2011/09/05/vmunderground-2011/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tech Field Day.  Lucky Number 7.</title>
		<link>http://conrey.org/2011/08/08/tech-field-day-lucky-number-7/</link>
		<comments>http://conrey.org/2011/08/08/tech-field-day-lucky-number-7/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 15:39:16 +0000</pubDate>
		<dc:creator>theron</dc:creator>
				<category><![CDATA[Front]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.conrey.org/?p=1334</guid>
		<description><![CDATA[While I was on the docket for Tech Field Day 6 attendance AND a co-sponsored VMunderground Party my appendix decided it wasn&#8217;t going to play nicely. I made an example out of it and had it removed. I&#8217;m hoping that&#8217;s enough to keep the rest of my organs in line while I attend Tech Field [...]]]></description>
			<content:encoded><![CDATA[<p>While I was on the docket for <a href="http://techfieldday.com/2011/tfd6/">Tech Field Day 6 attendance</a> <em><strong>AND</strong></em> a co-sponsored <a href="http://www.vmunderground.com/?p=241">VMunderground Party</a> my appendix decided it wasn&#8217;t going to play nicely.  I made an example out of it and had it removed.  I&#8217;m hoping that&#8217;s enough to keep the rest of my organs in line while I attend Tech Field Day 7.  For those of you not familiar with Tech Field Day, here&#8217;s a blurb from <a href="http://www.techfieldday.com">TechFieldDay.com</a>:</p>
<blockquote><p>Our Field Day events bring together innovative IT product vendors and independent thought leaders to share information and opinions in a presentation and discussion format. Independent bloggers, freelance writers, and podcasters have a public presence that has immense influence on the ways that products and companies are perceived and by the general public.</p></blockquote>
<p><a href="http://techfieldday.com/2011/tfd7/">Tech Field Day 7</a> is being held in the grand city of Austin, TX. and will be sponsored by <a href="http://www.dell.com">Dell</a>, <a href="http://www.veeam.com">Veeam</a>, <a href="http://www.symantec.com">Symantec</a>, and <a href="http://www.solarwinds.com">Solarwinds</a>.</p>
<p>I&#8217;m thrilled to be a part of this event, and looking forward to meeting my fellow delegates as well as the presenting sponsors.  This event is going to be awesome and I&#8217;m bringing a little <a href="http://www.templetonrye.com">something special</a> to share from IA.  I hope someone from Alaska is coming with quality ice.</p>
]]></content:encoded>
			<wfw:commentRss>http://conrey.org/2011/08/08/tech-field-day-lucky-number-7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>LVM and vmware linux guests. Just do it already.</title>
		<link>http://conrey.org/2011/05/18/lvm-and-vmware-linux-guests-just-do-it/</link>
		<comments>http://conrey.org/2011/05/18/lvm-and-vmware-linux-guests-just-do-it/#comments</comments>
		<pubDate>Wed, 18 May 2011 05:23:10 +0000</pubDate>
		<dc:creator>theron</dc:creator>
				<category><![CDATA[Front]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.conrey.org/?p=1329</guid>
		<description><![CDATA[What is LVM? Logical Volume Manager (LVM) provides a (virtualized would be a stretch) logical presentation of storage to the OS rather than physical devices. With LVM, logical partitions can span across multiple physical volumes. A single physical disk can divided into one or more physical volumes. This allows for a layer of mgmt above [...]]]></description>
			<content:encoded><![CDATA[<h3>What is LVM?</h3>
<p>Logical Volume Manager (LVM) provides a (virtualized would be a stretch) logical presentation of storage to the OS rather than physical devices. With LVM, logical partitions can span across multiple physical volumes.  A  single physical disk can divided into one or more physical volumes.  This allows for a layer of mgmt above the base disk, before it get&#8217;s presented to the base os, for accessing and using physical storage.<br />
<span id="more-1329"></span></p>
<h3>Why would I use it?</h3>
<p>Why wouldn&#8217;t you?! Most linux operating systems today offer LVM as part of the install.  This can be chosen with no impact on the system even if no future changes are made to the disk layout.  Say you&#8217;ve got a template that is 40G in size, and you&#8217;re deploying out a file server that will need additional space.  Go ahead and use the template, and just add an additional disk (in the form of a physical volume) to the logical volume. easy peasy.  This means you don&#8217;t have to have different templates for every possible use imaginable.  If you need to reutilize a server for a customer, or for a new workload, you can remove physical volumes from a logical volume as well. Coupling this with a standardized base template and you&#8217;ve just tackled the problem of being unable to shrink vmdk files.  (deleting, adding disks, copying data, removing disks gets to be a pain for a busy vmware admin)</p>
<h3>Example base install</h3>
<p>While it&#8217;s different for every distro during install it&#8217;s pretty straightforward during the disk selection and formating section.  In ubuntu for instance, it&#8217;s already the default option you&#8217;re presented with during an 11.04 server installation:<br />
<img alt="" src="http://www.conrey.org/graphics/ubuntulvm01.png" class="alignnone" width="560" height="407" /></p>
<h3>Adding an additional drive</h3>
<p>For this example I&#8217;ve created 10G ubuntu 11.04 vm. The first thing I need to do in order to add additional space to this VM would be to add another disk to the VM. </p>
<p>With the vm powered up, From the vm console, select Edit Settings.  In the Virtual machine properties window select the add button, select settings, select add Hard disk.  In the Add hardware window, select the create new virtual disk radio button and select next.  Set the size of the disk you&#8217;d like to add, and select next.  Make a mental note of the Virtual device node (usually 0:1 for the first disk added after the base), select next, review the selection, and select finish.<br />
With the disk now listed in the Virtual machine properties window in bold, select OK.  This will create and add the disk to your vm.</p>
<h3>rescanning</h3>
<p>Once you&#8217;ve added the disk, you&#8217;ll need to rescan the scsi bus to avoid downtime.  </p>
<p>you can run a </p>
<p><code>ls /sys/class/scsi_host</code> </p>
<p>to identify the scsi hosts on your system.</p>
<p>and run a </p>
<p><code>echo "- - -" &gt; /sys/class/scsi_host/host2/scan</code></p>
<p>command to rescan the host bus and identify and new drives installed.</p>
<h3>adding a physical volume to the new drive</h3>
<p>to prep the disk, first thing I&#8217;ll do is format it:</p>
<p><code>sudo fdisk /dev/sdb</code> </p>
<p>I&#8217;ll create a new partition (select n), primary (select p), select the 1st partition, (select 1), and use the whole disk (selecting the default options for first and last cylinder).  Now I need to identify the partition as an LVM volume (select t to change the type, select 8e for Linux LVM) With that done we need to commit our changes (select w) and that should do it for the disk partition.  To verify, you can run fdisk /dev/sdb and select p to display your disk&#8217;s partition information.</p>
<p><img alt="" src="http://www.conrey.org/graphics/ubuntulvm03.png" class="alignnone" width="650" height="244" /></p>
<p>first thing you need to do is add a physical volume to the new disk.  </p>
<p><code>pvdisplay</code> will list the existing physical volumes.</p>
<p><img alt="" src="http://www.conrey.org/graphics/ubuntulvm02.png" class="alignnone" width="526" height="209" /></p>
<p>I&#8217;ll go ahead and initialize the new physical volume on the new drive.</p>
<p><code>pvcreate /dev/sdb1</code></p>
<p>doing a pvdisplay again will show the new physical volume created.</p>
<h3>adding the new disk to the logical volume</h3>
<p>first thing you want to do is identify what logical volume you want to add the disk to. </p>
<p><code>sudo lvdisplay</code></p>
<p>will list out the existing logical volumes on your system.<br />
<img alt="" src="http://www.conrey.org/graphics/ubuntulvm04.png" class="alignnone" width="619" height="248" /></p>
<p> I&#8217;m going to add the physical volume group I just created to the ubuntu volume group.<br />
<code>vgextend ubuntu /dev/sdb1</code></p>
<p>Now we need to extend the volume group to use the additional space.  You won&#8217;t be able to use all of the drive, but you&#8217;ll get most of it.<br />
<code>lvextend -l +100%FREE /dev/ubuntu/root</code></p>
<p>Now that the volume is using the new disk, we need to get the file system to identify it as well.</p>
<p><strong>warning</strong>: there are tons of reported issues this next command can cause while running on a mounted file system.  While I haven&#8217;t seen it be safe kids, use snapshots.<br />
<code>resize2fs -p /dev/ubuntu/root</code></p>
<h3>done!</h3>
<p>With that done, do a <code>df -h</code> and see your new and improved logical volume. </p>
<p><strong>interesting note:</strong> for those times when you actually are stuck trying to exceed the 2TB single vmdk limitation, and don&#8217;t want to publish new VMFS storage, using LVM is an easy way to get around the limit without having to make changes to your filesystem layout.</p>
<h3>summary</h3>
<p>I see enough linux installs to know that using LVM makes my life easier.  I&#8217;m willing to bet if you&#8217;re using it actively today, you&#8217;d say the same thing.  If you&#8217;re deploying linux vms for anything, take the time and set up your appliances for LVM.  It makes adjusting them down the road that much easier.  (I&#8217;m looking at you EMC)  Additionally, this just scratches the surface of what you can do with LVM, demonstrating a single function to ease growing available space on a single volume. Once you&#8217;ve started using LVM, take the time to familiarize yourself with the rest of what LVM can help you do.</p>
<h3>References:</h3>
<p><a href="http://www.redhat.com/magazine/009jul05/features/lvm2/">http://www.redhat.com/magazine/009jul05/features/lvm2/</a><br />
<a href="http://www.tldp.org/HOWTO/LVM-HOWTO/">http://www.tldp.org/HOWTO/LVM-HOWTO/</a><br />
<a href="http://www.cyberciti.biz/tips/vmware-add-a-new-hard-disk-without-rebooting-guest.html">http://www.cyberciti.biz/tips/vmware-add-a-new-hard-disk-without-rebooting-guest.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://conrey.org/2011/05/18/lvm-and-vmware-linux-guests-just-do-it/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>panologic is still crushing it</title>
		<link>http://conrey.org/2011/04/19/panologic-is-still-crushing-it/</link>
		<comments>http://conrey.org/2011/04/19/panologic-is-still-crushing-it/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 14:18:18 +0000</pubDate>
		<dc:creator>theron</dc:creator>
				<category><![CDATA[Front]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.conrey.org/?p=1236</guid>
		<description><![CDATA[Since vmware view 4.5 was released I&#8217;ve been spending more and more time looking at ways to deploy virtual desktops out to customers. Now that we&#8217;re dropping 4.6 in POCs and customer deployments, I&#8217;ve tried wyse thin clients, 10zig, and a couple of other brands. I&#8217;m still building my own custom view client bootable usb [...]]]></description>
			<content:encoded><![CDATA[<p>  Since <a href="http://www.vmware.com/products/view/">vmware view 4.5</a> was released I&#8217;ve been spending more and more time looking at ways to deploy virtual desktops out to customers.  Now that we&#8217;re dropping 4.6 in POCs and customer deployments,  I&#8217;ve tried wyse thin clients, 10zig, and a couple of other brands.  I&#8217;m still building <a href="http://www.conrey.org/?p=727">my own custom view client bootable usb drives and cdroms</a>.</p>
<p>  The addition of PCoIP to the vmware view arsenal was a watershed moment (or so I thought) as the ability to effectively stream audio and video to the device is critical.*  As most people in the vdi arena I&#8217;ve talked to say, but don&#8217;t always say out loud  &#8220;If you can&#8217;t watch youtube, some decision maker is going to claim vdi is a non starter for your environment&#8221;.<span id="more-1236"></span>  </p>
<p>  I&#8217;d looked at the <a href="http://panologic.com/">panologic</a> zero clients at vmworld for a couple of years, but I was never in a position to really give one a test drive.  The form factor of the devices was awesome.  Talking with the folks on the vmworld floor, the installation was described as easy.  I knew it didn&#8217;t use PCoIP, but even the video streaming appeared to be solid.  Friends of mine kept telling me that they were worth looking into, but I wasn&#8217;t sure what the value add would be.  Until now. </p>
<p><img alt="" src="http://www.conrey.org/graphics/pano.jpg" class="alignright" width="400" height="400" /></p>
<h3>the plan</h3>
<p> When Pano showed interest in being a sponsor for <a href="http://www.vmunderground.com">vmunderground</a> this year, I was thrilled that they&#8217;d send me a unit to <del datetime="2011-04-15T17:35:15+00:00">break</del> test.  Rather than just drooling over the device from now until vmworld, I looked at my office as a potential pano POC envionment.  I sized out the required infrastructure, the number of units, the amount of bandwidth per device required, and the software costs.  If you&#8217;re going to do it, you might as well do it well.  (this article is more of a summary, if you&#8217;re looking for details, feel free to reach out to me)</p>
<h3 style="clear:both">hardware</h3>
<p style="clear:both">When you open a pano zero client box, there is only one response.  Damn this thing is sexy.  They come in black and chromified (silver) and I gotta say, all chromed up, it looks good even powered off.   <a href="http://panologic.com/peripheral-ports-and-network-connections">Ports are ample</a>; a DVI port (with adapter to vga), ethernet, 4 usb ports, and a headphone jack. Brain dead to hook it up.  This is when I&#8217;d wished I made a note of the mac address for later, as it&#8217;s under the vga adapter.  It&#8217;s also solid and heavy enough that if someone is walking fast towards you with one in their hand and they look angry, you should be nervous.</p>
<h3>software</h3>
<p>If you&#8217;re deploying pano, it&#8217;s important to note you really don&#8217;t <em>need</em> full blown vmware view.  If you&#8217;ve got solid templates, good user management software, deduped storage, fast disk, and some cache, the pano management software does the rest.</p>
<p style="clear:both"><img alt="" src="http://www.conrey.org/graphics/pano01.png" class="alignright" width="151" height="143" />First part is go <del datetime="2011-04-15T18:20:33+00:00">install</del> deploy the pano manager virtual appliance.  The link for this is provided from the folks at pano when you get your units.  Save the appliance locally, and from within the vSphere Client select <em>file</em> &gt; <em>Deploy OVF template</em>.</p>
<p style="clear:both"><img alt="" src="http://www.conrey.org/graphics/pano02.png" class="alignleft" width="384" height="240" />Browse to where you&#8217;ve saved the virtual appliance, and select it, and select next.</p>
<p style="clear:both"><img alt="" src="http://www.conrey.org/graphics/pano03.png" class="alignright" width="437" height="328" />play the next, next, next, next game, selecting the datastore for the appliance, as well as how you want it configured to sit on your virtual infrastructure.</p>
<p style="clear:both"><img alt="" src="http://www.conrey.org/graphics/pano05.png" class="alignleft" width="231" height="101" /> Sit back and wait for the appliance to upload.</p>
<p style="clear:both">
<h3>Configuring the pano management software</h3>
<p>The pano manager configuration is as easy as tying it into your AD environment and locating devices on your network. (great directions on the pano website <a href="http://help.panologic.com/4.1/wwhelp/wwhimpl/js/html/wwhelp.htm#href=Deployment/Install_and_Configure_Pano_Manager_VMware.html">here</a>)  My lab environment was overly simplistic, and I&#8217;m sure that I didn&#8217;t take advantage of all of the configuration features I could have.  For me though, the really interesting thing was that it took less than 10 minutes to go from appliance on the network to logging into zero clients.</p>
<h3>testing</h3>
<p>This was the first real test of <a href="http://www.conrey.org/?p=1291">my new vmware lab box</a>, so I was excited to stretch it&#8217;s legs.  During setup one of the key points about pano that should be talked about with more gusto is the simplicity of getting up and running.  The configuration manager functionality was easy to use, the web interface is easy to navigate, and overall the complete lack of management on the end points saved me a significant amount of time.  Basic desktop functionality for work was a no brainer and the redraw times were fast enough that I didn&#8217;t feel I was connecting to a remote VM.  Oh, and youtube works just fine.  Better than fine. amazing.  The pano Control panel software is easy to adjust on the vm that is the target, interestingly the display was still rocking at an amazing 1680&#215;1050 display resolution.</p>
<p>My test case was to use this terminal for a week solely.  This only lasted for about a day.  Not due to any fault of the device, but because I was used to using more screen real estate and I didn&#8217;t have the dual monitor adapter.   I defaulted to installing <a href="http://synergy-foss.org/">synergy plus</a> in the vm and tying it to my laptop.  This worked out perfectly, and the vm worked flawlessly streaming video and other important tasks. <img src='http://conrey.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />   Additionally, I could test it against local applications easily.<br />
<img alt="" src="http://www.conrey.org/graphics/desktop.jpg" class="alignnone" width="500" height="298" /></p>
<p>Video and bandwidth is something that needs to be addressed during planning any type of deployment.  From a completely idle state the port traffic would drop to under 10 kbps a second.  This is next to nothing.  no screen redraws. nothing.  However, when hulu or youtube was opened, the utilization climbed up. and up. and up.</p>
<p>At one point with <a href="http://www.hulu.com">hulu</a>, I has a window open using 3/4 of the available screen real estate and it was over 30 Mbps a second of traffic thru the port.  For those not in the know, that&#8217;s a lot of traffic.  Not saying that most users are going to be watching hulu at work, but I wanted to see what it would top out at.  This was still completely watchable, so I made the window bigger making a larger area to refresh.  This pushed the bandwidth used over 40 Mbps, and the screen started chopping up.  I assume it was just way more than the video could handle locally.  I also noticed at this point the device got warm.  Not quite heat your coffee for you warm, but close.  I understand this isn&#8217;t the target usage for this device but when it is used, it&#8217;s important it works. </p>
<h3>conclusion</h3>
<p>This thing rocks.  With proper bandwidth planning in place, a solid vmware infrastructure, deduped FAST disk and very little effort you could easily deploy an entire small office with this type of solution in an afternoon.  I can see why Pano is still considered top kit in the VDI space.  If you&#8217;re looking for more information you can contact Pano directly for a <a href="http://panologic.com/online-store">starter kit</a>, or contact a pano partner.  If you&#8217;re around the 515 give me a ring and I can help point you in the right direction.</p>
<p>* Hey vmware, where the heck is the PCoIP bits in the freely available linux view client?!  The vendors have had these bits for well over a year.  If I hear the open source argument one more time around this, I&#8217;m now going to redirect those folks to vmware&#8217;s awesome spring / cloud foundry crew to explain how it can be done legally.</p>
]]></content:encoded>
			<wfw:commentRss>http://conrey.org/2011/04/19/panologic-is-still-crushing-it/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New ESXi test box: the green machine</title>
		<link>http://conrey.org/2011/04/18/new-esxi-test-box-the-green-machine/</link>
		<comments>http://conrey.org/2011/04/18/new-esxi-test-box-the-green-machine/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 21:34:55 +0000</pubDate>
		<dc:creator>theron</dc:creator>
				<category><![CDATA[Front]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Virtualization]]></category>

		<guid isPermaLink="false">http://www.conrey.org/?p=1291</guid>
		<description><![CDATA[For the longest time I had effectively removed most of the lab equipment from my house*. I was down to a laptop and a thin client, with most of my test gear either moved into a datacenter, or services moved over to a xenkibbutz guest. As a vExpert for 2010 I&#8217;m grateful that I have [...]]]></description>
			<content:encoded><![CDATA[<p>For the longest time I had effectively removed most of the lab equipment from my house*.  I was down to a laptop and a thin client, with most of my test gear either moved into a datacenter, or services moved over to a xenkibbutz guest.  As a vExpert for 2010 I&#8217;m grateful that I have the chance to really dig in and test the breadth of vmware&#8217;s software offerings.  While I could use a gear here and there at work, there were quite a few things that I needed a different environment for or where I couldn&#8217;t use work gear.<span id="more-1291"></span></p>
<p>So out to newegg I went, credit card (and budget) in hand, and ordered up some new guts for an almost <a href="http://www.tigerdirect.com/applications/SearchTools/item-details.asp?Sku=MTX-GNS-UF&amp;sourceid=qIrKQUAUGgKwAlP-kyGw&amp;siteid=0039059347&amp;CMP=AFC-AFFIL#">john deere green chieftec matrix case</a> that I just haven&#8217;t been able to part with for years.</p>
<p>Here is my newegg parts list:</p>
<li>1 x AMD Phenom II X4 965 Black Edition Deneb 3.4GHz Socket AM3 125W Quad-Core Processor</li>
<li>1 x MSI 890GXM-G65 AM3 AMD 890GX SATA 6Gb/s USB 3.0 HDMI Micro ATX AMD Motherboard</li>
<li>1 x ZALMAN 9500A-LED 92mm 2 Ball CPU Cooler</li>
<li>2 x G.SKILL Ripjaws Series 8GB (2 x 4GB) 240-Pin DDR3 SDRAM DDR3 1600 (PC3 12800) Desktop Memory Model F3-12800CL9D-8GBRL</li>
<li>1 x 2GB usb drive (random vendor swag)</li>
<p>
All in all I made it out of newegg at just under 500 bucks.</p>
<p>I used the instructions for installing esxi from <a href="http://www.vladan.fr/how-to-install-esxi-40-on-usb-memory-key/">here</a> to install esxi on a flash drive for the boot device.  The power supply I poached from a different old computer that I had mostly parted out already. I liberated an old dual port intel nic from an old server in the garage, as the onboard nic doesn&#8217;t work with ESXi and I was set.  For a temporary vm storage solution, I&#8217;m using some spare drives internal to the server.  A storage server is next, and I&#8217;m leaning on Matt B. from <a href="http://www.storageadventures.com">storageadventures.com</a> and <a href="http://www.zfsbuild.com">zfsbuild.com</a> to help out with a crazy cheap <a href="http://www.nexenta.org">nexenta</a> lab box.</p>
<p>It&#8217;s been fun putting a box together, something I haven&#8217;t done for years, and I&#8217;ve got it tucked away in a corner at work for some testing.  It&#8217;s amazing how quickly something like this goes from zero to hosting vms.  If you&#8217;re in the market to piece together or buy an esxi lab box for your lab and don&#8217;t know where to start, I&#8217;d recommended Eric Siebert&#8217;s page <a href="http://vsphere-land.com/vsphere-links/home-lab-links.html">here</a>.  I spent a good deal of time reading up, and I&#8217;m happy with what I pieced together.  I think this old case of mine is going to be appropriate for testing out some new <a href="http://www.veeam.com">veeam</a> hotness as well.<br />
<img alt="" src="http://www.conrey.org/graphics/greenmachine.jpg" class="aligncenter" width="198" height="300" /></p>
<p>*ok maybe I haven&#8217;t gotten rid of EVERYTHING I could have, but most of it&#8217;s at least powered off.</p>
]]></content:encoded>
			<wfw:commentRss>http://conrey.org/2011/04/18/new-esxi-test-box-the-green-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

