<?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>cyborgworkshop.org &#187; VMWare</title>
	<atom:link href="http://cyborgworkshop.org/category/vmware/feed/" rel="self" type="application/rss+xml" />
	<link>http://cyborgworkshop.org</link>
	<description>Blurring the line</description>
	<lastBuildDate>Wed, 25 Aug 2010 16:53:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Enabling SNMP on an ESXi 4 free edition</title>
		<link>http://cyborgworkshop.org/2010/08/01/enabling-snmp-on-an-esxi-4-free-edition/</link>
		<comments>http://cyborgworkshop.org/2010/08/01/enabling-snmp-on-an-esxi-4-free-edition/#comments</comments>
		<pubDate>Sun, 01 Aug 2010 18:05:05 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://cyborgworkshop.org/?p=633</guid>
		<description><![CDATA[ESXi doesn&#8217;t include a lot of the management functions that the licensed product carries (see my previous post on doing backups in ESXi) but most of those functions are already installed, just disabled.   Here is how to enable SNMP queries and traps on an ESXi server. Enable ssh on your server I&#8217;m assuming you have [...]]]></description>
			<content:encoded><![CDATA[<p>ESXi doesn&#8217;t include a lot of the management functions that the licensed product carries (see my previous post on doing <a href="http://cyborgworkshop.org/2010/07/31/backing-up-an-esxi-4-server/">backups in ESXi</a>) but most of those functions are already installed, just disabled.   Here is how to enable SNMP queries and traps on an ESXi server.</p>
<ol>
<li><a href="http://www.vm-help.com/esx40i/ESXi_enable_SSH.php">Enable ssh</a> on your server</li>
<li>I&#8217;m assuming you have already licensed your server, we&#8217;re going to need to back that out so ssh to the server as root</li>
<li>run the following commands</li>
<p><code>mv /etc/vmware/vmware.lic /etc/vmware/vmware.lic.orig<br />
mv /etc/vmware/license.cfg /etc/vmware/license.cfg.orig<br />
services.sh restart<br />
</code></p>
<li>That will temporarily put you back into an eval license, you will be disconnected from your vsphere client while the services restart</li>
<li>Now you need access to the ESX remote command line. You can do that by either downloading and installing the <a href="http://www.vmware.com/downloads/eula.do">appliance</a> or you can install it locally on your machine.</li>
<li>Configure SNMP for your environment. -c is the snmp community you want to set for queries and -t is the trap destination</li>
<p><code>vicfg-snmp.pl –server 192.168.1.1 -c public -t 192.168.1.2@162/public</code></p>
<li>enable snmp</li>
<p><code>vicfg-snmp.pl –server 192.168.1.1 -E</code></p>
<li>Test your new snmp config</li>
<p><code>vicfg-snmp –server 192.168.1.1 -T </code></p>
<li> and lastly, download the <a href="http://downloads.vmware.com/d/details/esx40_snmp_mib_dt/ZHcqYmQqaCViZHdlZQ==">snmp MIBs</a> for your management platform</li>
<li>Now move your license keys back</li>
<p>         <code>mv /etc/vmware/vmware.lic.orig /etc/vmware/vmware.lic<br />
mv /etc/vmware/license.cfg.orig /etc/vmware/license.cfg<br />
services.sh restart
</ol>
<p>And that's it, you have snmp queries and traps on your ESXi server now. </p>
]]></content:encoded>
			<wfw:commentRss>http://cyborgworkshop.org/2010/08/01/enabling-snmp-on-an-esxi-4-free-edition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backing up an ESXi 4 server</title>
		<link>http://cyborgworkshop.org/2010/07/31/backing-up-an-esxi-4-server/</link>
		<comments>http://cyborgworkshop.org/2010/07/31/backing-up-an-esxi-4-server/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 15:21:17 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://cyborgworkshop.org/?p=630</guid>
		<description><![CDATA[ESXi is one of my favorite products on the market and is really excellent for home use. It&#8217;s missing out on a few enterprise features like SNMP (I&#8217;ll show you how to get around that in a later post) but is otherwise very complete. I had previously been using a separate storage server using iscsi [...]]]></description>
			<content:encoded><![CDATA[<p>ESXi is one of my favorite products on the market and is really excellent for home use.  It&#8217;s missing out on a few enterprise features like SNMP (I&#8217;ll show you how to get around that in a later post) but is otherwise very complete.  I had previously been using a separate storage server using iscsi for my vmfs, but the dependency of the two boxes kept me from shutting down either server as needed. So, I converted everything back to local SATA storage (another post) and went on a hunt for how to backup my VMDKs.  My iSCSI SAN had dual power supplies, 2 hot standby drives and I could do snapshot based backups whenever I wanted. My ESXi server has two SATA drives, one power supply and no easy way to backup. Enter <a href="http://communities.vmware.com/docs/DOC-8760">GhettoVCB</a>. <a href="http://communities.vmware.com/docs/DOC-8760">GhettoVCB</a> is a brilliant little shell script that runs on the ESXi server and performs backups of your vms using snapshots that can be stored on local, attached or network storage.  Getting <a href="http://communities.vmware.com/docs/DOC-8760">GhettoVCB</a> up and running isn&#8217;t difficult at all, you just need to make sure you have a few things in place first.</p>
<ul>
<li>A place to store the backups (NFS, iSCSI, Local storage and potentially DAS)</li>
<li>Decide how many backups you want to have available</li>
<li>Decide How you want to store the files (thin, thick, etc) This consideration will impact how many backups you have available because of the different space requirements.</li>
<li>And lastly when you want your backups to run.</li>
</ul>
<p>I&#8217;ve decided to take thin copies of my vmdks at midnight every night and store them on an NFS share with 5 backups available before the older ones get replaced.  I&#8217;m not going to try to replicate the excellent instructions that already exist for <a href="http://communities.vmware.com/docs/DOC-8760">GhettoVCB</a>,  but here is how I did it.</p>
<ol>
<li>Create an NFS mount on my <a href="https://help.ubuntu.com/community/SettingUpNFSHowTo">NFS server</a> with the following options</li>
<p><code>/mnt/raid5/VMWare       10.0.0.0/24(rw,async,all_squash,anonuid=99,anongid=99)</code></p>
<li>Mount the NFS share in vSphere and call it Backups</li>
<li><a href="http://www.vm-help.com/esx40i/ESXi_enable_SSH.php">enable ssh </a>on your ESXi server</li>
<li>scp ghettovcb.tar.gz to your ESXi server</li>
<li>untar ghettovcb.tar.gz to /usr/ghettovcb</li>
<li>edit ghettoVCB.sh and change VM_BACKUP_VOLUME to be VM_BACKUP_VOLUME=/vmfs/volumes/Backups</li>
<li>edit DISK_BACKUP_FORMAT to be DISK_BACKUP_FORMAT=thin</li>
<li>edit VM_BACKUP_ROTATION_COUNT to VM_BACKUP_ROTATION_COUNT=5</li>
<li>edit EMAIL_LOG to EMAIL_LOG=0  unless you want to setup logs to be emailed to you.</li>
<li>edit cron by running this command</li>
<p><code>echo "0 6 * * * /usr/ghettoVCB/ghettoVCB.sh -a &gt; /var/log/ghettoVCB-backup-$(date +\%s).log" &gt;&gt; /var/spool/cron/crontabs/root<br />
kill $(cat /var/run/crond.pid)<br />
busybox crond </code></p>
<li>My cron is set for 6am because my clock is set to UTC, to 6am is midnight for me</li>
<li>Wait until midnight for the cron to run or run it by hand yourself.</li>
</ol>
<p>Logs will be stored in /var/log/  .  I&#8217;m backing up 8 VMs in roughly an hour using about 60GB of space (thin provisioned) and have tested restores successfully. Good luck and let me know if you have any issues!</p>
]]></content:encoded>
			<wfw:commentRss>http://cyborgworkshop.org/2010/07/31/backing-up-an-esxi-4-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install VMWare ESXi 4 onto a USB thumbdrive in two commands</title>
		<link>http://cyborgworkshop.org/2009/10/09/install-vmware-esxi-4-onto-a-usb-thumbdrive-in-two-commands/</link>
		<comments>http://cyborgworkshop.org/2009/10/09/install-vmware-esxi-4-onto-a-usb-thumbdrive-in-two-commands/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 02:34:13 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Best Tools]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[thumbdrive]]></category>
		<category><![CDATA[USB]]></category>

		<guid isPermaLink="false">http://cyborgworkshop.org/?p=567</guid>
		<description><![CDATA[Install ESXi 4 onto a USB thumbdrive in two commands]]></description>
			<content:encoded><![CDATA[<p><em>Updated for ESXi 4</em><br />
If you have a linux box and a 1 gig thumb drive, here is how to install VMWare ESXi onto that drive in 2 commands.    Download the ESXi ISO and then mount it in linux like so</p>
<blockquote><p>mount -t iso9660 -o loop VMware-VMvisor-Installer-4.0.0-171294.x86_64.iso /mnt/esx</p></blockquote>
<p>Now we&#8217;re going to write the installer file to the thumbdrive. I&#8217;m assuming the thumbdrive is /dev/sdb</p>
<blockquote><p>tar xvzf /mnt/esx/image.tgz usr/lib/vmware/installer/VMware-VMvisor-big-171294-x86_64.dd.bz2 -O | bzip2 -d -c | dd of=/dev/sdb</p></blockquote>
<p>This will take a little bit, but once it&#8217;s done you&#8217;re good to go. pop that drive into a USB boot capable board, configure your storage and away you go!</p>
]]></content:encoded>
			<wfw:commentRss>http://cyborgworkshop.org/2009/10/09/install-vmware-esxi-4-onto-a-usb-thumbdrive-in-two-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>kill an unruly VM in ESX 3.5</title>
		<link>http://cyborgworkshop.org/2009/07/27/kill-an-unruly-vm-in-esx-3-5/</link>
		<comments>http://cyborgworkshop.org/2009/07/27/kill-an-unruly-vm-in-esx-3-5/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 15:35:17 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://cyborgworkshop.org/?p=467</guid>
		<description><![CDATA[Sometimes VMs in ESX get into a bad way and just won&#8217;t shut down. When you absolutely, positively have to kill every reference to a VM, nothing does the job quiet like your Fathers light sabre the vmsupport command. vm-support -x Will give you a list of all of the running VMs and their VMIDs. [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes VMs in ESX get into a bad way and just won&#8217;t shut down. When you absolutely, positively have to kill every reference to a VM, nothing does the job quiet like your<span style="text-decoration: line-through;"> Fathers light sabre</span> the vmsupport command.</p>
<blockquote><p>vm-support -x</p></blockquote>
<p>Will give you a list of all of the running VMs and their VMIDs.</p>
<blockquote><p>vm-support -X VMID</p></blockquote>
<p>Will kill that VM like Qui-Gon Jinn.</p>
]]></content:encoded>
			<wfw:commentRss>http://cyborgworkshop.org/2009/07/27/kill-an-unruly-vm-in-esx-3-5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Start a vmware server vm without the GUI</title>
		<link>http://cyborgworkshop.org/2009/07/07/start-a-vmware-server-vm-without-the-gui/</link>
		<comments>http://cyborgworkshop.org/2009/07/07/start-a-vmware-server-vm-without-the-gui/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 13:28:13 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[VMWare]]></category>

		<guid isPermaLink="false">http://cyborgworkshop.org/?p=448</guid>
		<description><![CDATA[nabbed from command line fu with a clarification from blalor. appears that this is only for Fusion, You can start a virtual machine in vmware without using the gui by using the vmrun command line. vmrun start /PathTo/virtual_machine.vmx nogui]]></description>
			<content:encoded><![CDATA[<p>nabbed from <a href="http://www.commandlinefu.com/commands/browse">command line fu</a> with a clarification from blalor. appears that this is only for Fusion,<br />
You can start a virtual machine in vmware without using the gui by using the vmrun command line.</p>
<blockquote><p>vmrun start /PathTo/virtual_machine.vmx nogui</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://cyborgworkshop.org/2009/07/07/start-a-vmware-server-vm-without-the-gui/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
