<?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>BeyondVM &#187; tutorials</title>
	<atom:link href="http://beyondvm.com/topics/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://beyondvm.com</link>
	<description>Virtualization, UNIX, Business</description>
	<lastBuildDate>Mon, 02 Nov 2009 19:03:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Tutorial: ESX 4.0 Syslog Configuration</title>
		<link>http://beyondvm.com/tutorial-esx-4-0-syslog-configuration/</link>
		<comments>http://beyondvm.com/tutorial-esx-4-0-syslog-configuration/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 17:27:24 +0000</pubDate>
		<dc:creator>beyondvm</dc:creator>
				<category><![CDATA[ESX]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[syslog]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://beyondvm.com/?p=138</guid>
		<description><![CDATA[This tutorial is intended to explain how to configure syslog on both ESX and ESXi to point to a remote syslog server (for this tutorial I will be using vSphere, but the concepts apply to earlier versions as well as many*nix distros).  In both cases the configuration is fairly simple, but can be confusing.  I [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial is intended to explain how to configure syslog on both ESX and ESXi to point to a remote syslog server (for this tutorial I will be using vSphere, but the concepts apply to earlier versions as well as many*nix distros).  In both cases the configuration is fairly simple, but can be confusing.  I also wanted to include a sample configuration that I use for syslog-ng which is an excellent logging platform for syslog.</p>
<p><strong>ESX</strong></p>
<p>First, I have a single host with ESX 4.0 installed and configured with a service console IP address.  I have connected to this IP address with putty over SSH.  Once logged in to the ESX server, there are just a few steps that need to be taken. Also, I use the VI editor &#8211; check on google for <a href="http://www-acs.ucsd.edu/info/vi_tutorial.shtml" target="_blank">more information</a> on VI and its commands. I am going to assume that readers posses a basic knowledge of this.</p>
<p>1. First, edit the syslog configuration file (/etc/syslog.conf) by typing:</p>
<blockquote class="code"><p>vi /etc/syslog.conf</p></blockquote>
<p>The display will look similar to the following:</p>
<div id="attachment_146" class="wp-caption alignnone" style="width: 410px"><a href="http://beyondvm.com/wp-content/uploads/2009/08/esxSyslog3_1.png" rel="lightbox[138]"><img class="size-full wp-image-146" title="Edit Syslog File" src="http://beyondvm.com/wp-content/uploads/2009/08/esxSyslog3_1.png" alt="esxSyslog3_1" width="400" height="248" /></a><p class="wp-caption-text">Click To Enlarge</p></div>
<p>I added a line at the end of this file that has the following contents:</p>
<blockquote class="code"><p>*.debug                                      @&lt;ip of syslog server&gt;</p></blockquote>
<p>What this will do is send syslog messages from all <a href="http://www.kiwisyslog.com/help/syslog/index.html?protocol_facilities.htm" target="_blank">facilities</a> and <a href="http://www.kiwisyslog.com/help/syslog/index.html?protocol_facilities.htm" target="_blank">levels</a> to the IP address of the server following the @ symbol.  One caveat with this line is that the space between the *.debug and the @ symbol <strong>must </strong>be the tab character.  If not the syslog daemon will simply drop the line.  If you desire more than one destination, just add another line with a different host after the @ symbol.</p>
<p>2. Next we need to restart the syslog service, to do that enter one of the following:</p>
<blockquote class="code"><p>service syslog restart</p>
<p>or</p>
<p>/etc/init.d/sysog restart</p></blockquote>
<p>The display should look similar to the following:</p>
<div id="attachment_147" class="wp-caption alignnone" style="width: 410px"><a href="http://beyondvm.com/wp-content/uploads/2009/08/esxSyslog4_1.png" rel="lightbox[138]"><img class="size-full wp-image-147" title="Restart Services" src="http://beyondvm.com/wp-content/uploads/2009/08/esxSyslog4_1.png" alt="esxSyslog4_1" width="400" height="248" /></a><p class="wp-caption-text">Click To Enlarge</p></div>
<p>If there are any errors at this point, troubleshoot accordingly.</p>
<p>3. Next we need to open firewall ports for the syslog traffic.  We are not able to do this through the service console, so we must do this at the command line.  It is a pretty simple command and if it is successful, it won&#8217;t produce any output.</p>
<blockquote class="code"><p>esxcfg-firewall &#8211;openPort 514,udp,out,&#8221;Syslog&#8221;</p></blockquote>
<div id="attachment_139" class="wp-caption alignnone" style="width: 409px"><a href="http://beyondvm.com/wp-content/uploads/2009/08/esxSyslog1.PNG" rel="lightbox[138]"><img class="size-full wp-image-139" title="Firewall Settings" src="http://beyondvm.com/wp-content/uploads/2009/08/esxSyslog1.PNG" alt="esxSyslog1" width="399" height="248" /></a><p class="wp-caption-text">Click To Enlarge</p></div>
<p>4. Next we need to reload firewall rules on the server and then verify that the rule was added.  For this, we need to type in two commands. The first one reloads the firewall (this will not produce any output if it is successful).  The second one will query the firewall for all active rules and will produce a lot of output. The two commands are:</p>
<blockquote class="code"><p>esxcfg-firewall -l<br />
esxcfg-firewall -q</p></blockquote>
<div id="attachment_149" class="wp-caption alignnone" style="width: 410px"><a href="http://beyondvm.com/wp-content/uploads/2009/08/esxSyslog7_1.png" rel="lightbox[138]"><img class="size-full wp-image-149" title="Firewall Verification" src="http://beyondvm.com/wp-content/uploads/2009/08/esxSyslog7_1.png" alt="esxSyslog7_1" width="400" height="248" /></a><p class="wp-caption-text">Click To Enlarge</p></div>
<p>The output outlined in red indicates the rule that we added.  This change is not visible in the GUI &#8211; the only way to verify these changes is via the command line.</p>
<p><strong>ESXi</strong></p>
<p>This configuration is much simpler &#8211; you only need to change one variable in the advanced settings.  One downside is that ESXi is limited to one destination server However, there are other ways to get around this (via syslog relays).</p>
<p>In ESXi the following configuration can be found by clicking on your server, then navigating to the configuration tab and then clicking on &#8220;Advanced Settings&#8221; under the Software Settings section.  Once that window is open, there is a syslog section near the bottom.  Expand that section and click on &#8220;Remote&#8221; and fill in an IP address or hostname in the box for the variable &#8216;Syslog.Remote.Hostname&#8221; and click save.  Screenshot:</p>
<p style="padding-left: 30px;">
<div id="attachment_206" class="wp-caption alignnone" style="width: 310px"><a href="http://beyondvm.com/wp-content/uploads/2009/08/syslog.esxi.png" rel="lightbox[138]"><img class="size-medium wp-image-206" title="Advanced Settings" src="http://beyondvm.com/wp-content/uploads/2009/08/syslog.esxi-300x248.png" alt="Click To Enlarge" width="300" height="248" /></a><p class="wp-caption-text">Click To Enlarge</p></div>
<p><strong>Bonus</strong></p>
<p>I wanted to include a sample <a href="http://www.balabit.com/network-security/syslog-ng/opensource-logging-system/" target="_blank">syslog-ng </a>config section for syslog-ng which is what I use to collect my syslogs and sort them accordingly.  Syslog-ng is awesome because it allows much greater flexibility in the processing and archiving of logs.  The extended configuration of syslog-ng is a topic for another post, but here is the configuration I use for most hosts:</p>
<div id="attachment_150" class="wp-caption alignnone" style="width: 410px"><a href="http://beyondvm.com/wp-content/uploads/2009/08/esxSyslog5_1.png" rel="lightbox[138]"><img class="size-full wp-image-150" title="Syslog-ng configuration" src="http://beyondvm.com/wp-content/uploads/2009/08/esxSyslog5_1.png" alt="esxSyslog5_1" width="400" height="248" /></a><p class="wp-caption-text">Click To Enlarge</p></div>
<p>This configuration separates each server into an individual file by day according to the time from the source server (in this case the ESX server).  This gives file names like &#8220;vm0.09.02.2009.log&#8221;, which is great for log rotation.  Also note the &#8220;S_&#8221; infront of each macro; this tells syslog-ng to use the source information instead of re-writing the logs to the timezone of the syslog-ng server.  It is also possible to filter based on syslog facility, but I will cover that in another post dealing with the analysis of ESX logs.</p>
<p><strong>Update: Videos!</strong></p>
<p>I am going to try and include videos of these tutorials, here is my first go at it so please be kind!</p>
<p><strong>ESX:</strong></p>
<p><strong><br />
<object width="600" height="510"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=6510909&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=6510909&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="600" height="510"></embed></object><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://beyondvm.com/tutorial-esx-4-0-syslog-configuration/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Tutorial: 802.3ad Port Configuration with ESX</title>
		<link>http://beyondvm.com/tutorial-802-3ad-port-configuration-with-esx/</link>
		<comments>http://beyondvm.com/tutorial-802-3ad-port-configuration-with-esx/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 18:51:38 +0000</pubDate>
		<dc:creator>beyondvm</dc:creator>
				<category><![CDATA[networking]]></category>
		<category><![CDATA[tutorials]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[802.3ad]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[ESX]]></category>

		<guid isPermaLink="false">http://beyondvm.com.s75180.gridserver.com/?p=49</guid>
		<description><![CDATA[Just wanted to post a quick post about how to configure 802.3ad port consolidation with a Cisco switch and VMware ESX (vSphere was used for this example).  I was using an HP DL380 with 2 onboard NIC and 2 24 port Cisco 3750G connected with stackwise cables.
Switch Configuration:
&#8230;
interface GigabitEthernet1/0/14
description ESX NIC 2
switchport trunk encapsulation dot1q
switchport [...]]]></description>
			<content:encoded><![CDATA[<p>Just wanted to post a quick post about how to configure 802.3ad port consolidation with a Cisco switch and VMware ESX (vSphere was used for this example).  I was using an HP DL380 with 2 onboard NIC and 2 24 port Cisco 3750G connected with stackwise cables.</p>
<p>Switch Configuration:</p>
<blockquote class="code"><p>&#8230;<br />
interface GigabitEthernet1/0/14<br />
description ESX NIC 2<br />
switchport trunk encapsulation dot1q<br />
switchport mode trunk<br />
channel-group 1 mode on<br />
end<br />
&#8230;<br />
interface GigabitEthernet2/0/14<br />
description ESX NIC 2<br />
switchport trunk encapsulation dot1q<br />
switchport mode trunk<br />
channel-group 1 mode on<br />
end<br />
&#8230;<br />
interface Port-channel1<br />
description ESX PortChannel<br />
switchport trunk encapsulation dot1q<br />
switchport mode trunk<br />
end<br />
&#8230;</p></blockquote>
<p>What I did was group two gigabit ports (1/0/14 and 2/0/14) into one port channel group (1).  Then I applied the trunk settings to the port channel instead of the individual ports.  As for the ESX side, I configured the virtual switch with more than one active adapter and set the &#8220;load balancing&#8221; to &#8220;Route based on IP hash.&#8221;</p>
<p style="padding-left: 30px;"><a href="http://beyondvm.com/wp-content/uploads/2009/08/iphash.JPG" rel="lightbox[49]"><img class="alignnone size-full wp-image-50" title="iphash" src="http://beyondvm.com/wp-content/uploads/2009/08/iphash.JPG" alt="iphash" width="400" height="499" /></a></p>
<p>If this set up would not have been using a trunk, the following configuration would have been used:</p>
<blockquote class="code"><p>&#8230;<br />
interface Port-channel1<br />
description ESX PortChannel<br />
switchport mode access<br />
switchport access vlan &lt;vlan for port group&gt;<br />
end<br />
&#8230;</p></blockquote>
<p>This configuration has seemed to be fairly reliable. I plan to do some load testing to investigate how balanced the load really is. I will post a follow-up if there are any interesting findings.</p>
]]></content:encoded>
			<wfw:commentRss>http://beyondvm.com/tutorial-802-3ad-port-configuration-with-esx/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
