<?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>Shogan.tech &#187; VMware</title>
	<atom:link href="http://www.shogan.co.uk/tag/vmware/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shogan.co.uk</link>
	<description>VMware, PowerCLI, IT, how-tos and other tech</description>
	<lastBuildDate>Thu, 21 Mar 2013 12:15:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>The vExpert 2013 applications are now open &#8211; apply now</title>
		<link>http://www.shogan.co.uk/vmware/the-vexpert-2013-applications-are-now-open-apply-now/</link>
		<comments>http://www.shogan.co.uk/vmware/the-vexpert-2013-applications-are-now-open-apply-now/#comments</comments>
		<pubDate>Thu, 21 Mar 2013 12:15:58 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[2013]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[vExpert]]></category>

		<guid isPermaLink="false">http://www.shogan.co.uk/?p=1753</guid>
		<description><![CDATA[&#160; Applications are now open here: http://blogs.vmware.com/vmtn/2013/03/vexpert-2013-applications-are-now-open.html &#160; The vExpert 2013 applications are now open. This is a great group to be a part of, so if you have been an active contributor to the VMware community, I highly recommend applying! There are three tracks you can follow though for application, so follow the link above [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>&nbsp;</p>
<p>Applications are now open here: <a href="http://blogs.vmware.com/vmtn/2013/03/vexpert-2013-applications-are-now-open.html" target="_blank">http://blogs.vmware.com/vmtn/2013/03/vexpert-2013-applications-are-now-open.html</a></p>
<p>&nbsp;</p>
<p>The vExpert 2013 applications are now open. This is a great group to be a part of, so if you have been an active contributor to the VMware community, I highly recommend applying! There are three tracks you can follow though for application, so follow the link above for more information and guidance on applying. This last year I was lucky enough to be awarded the title, and I hope to be able to retain it this year &#8211; as such I have been blogging as regularly as possible and have also released some cool little utilities, scripts and other bits and pieces to the community. Hopefully this will all pay off and I will be able to retain vExpert status through 2013 <img src='http://www.shogan.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Over the past year, John Troyer has done a sterling job keeping the group going and organising events and other collateral, so much thanks go to him and the other vExperts who have of course helped out where possible.</p>
<p>Good luck on the applications and don&#8217;t forget to keep contributing. This is what makes the community stronger!</p>
<div class="shr-publisher-1753"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.shogan.co.uk/vmware/the-vexpert-2013-applications-are-now-open-apply-now/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cloud Credibility challenges &#8211; blogging about my team members</title>
		<link>http://www.shogan.co.uk/vmware/cloud-credibility-challenges-blogging-about-my-team-members/</link>
		<comments>http://www.shogan.co.uk/vmware/cloud-credibility-challenges-blogging-about-my-team-members/#comments</comments>
		<pubDate>Wed, 20 Mar 2013 13:06:37 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[cloud cred]]></category>
		<category><![CDATA[virtualization]]></category>

		<guid isPermaLink="false">http://www.shogan.co.uk/?p=1749</guid>
		<description><![CDATA[So there is a fun website called &#8220;CloudCred&#8221; that allows individuals or teams to participate in various tasks and challenges &#8211;  everything from technical challenges to social and fun are covered and it is quite a good team building exercise, apart from the leaderboard challenge aspect! One of the tasks is to blog about my [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>So there is a fun website called &#8220;<a href="https://www.cloudcredibility.com" target="_blank">CloudCred</a>&#8221; that allows individuals or teams to participate in various tasks and challenges &#8211;  everything from technical challenges to social and fun are covered and it is quite a good team building exercise, apart from the leaderboard challenge aspect!</p>
<p>One of the tasks is to blog about my team members and include links to their own blogs. We have quite a few team members so I can&#8217;t cover all of them, but here goes:</p>
<ul>
<li><a href="https://www.cloudcredibility.com/profile/669">GreggRobertson5</a> - Great blog covering wide variety of topics &#8211; a lot of great certification stuff too - <a href="http://thesaffageek.co.uk/" target="_blank">http://thesaffageek.co.uk/</a></li>
<li><a href="https://www.cloudcredibility.com/profile/1341">dawoo</a> - Excellent resources also covering a broad selection of topics - <a href="blog.vmote.net" target="_blank">blog.vmote.net</a></li>
<li><a href="https://www.cloudcredibility.com/profile/1009">Paul Wood</a> - Nice technical blog, mainly focused around VMware - <a href="http://www.virtualwood.co.uk/" target="_blank">http://www.virtualwood.co.uk/</a></li>
<li><a href="https://www.cloudcredibility.com/profile/677">Yattong</a> - Cloud / VMware guru - <a href="http://blog.vmpact.com" target="_blank">http://blog.vmpact.com</a></li>
<li><a href="https://www.cloudcredibility.com/profile/855">Ather Beg</a> - Good detailed blog posts around VMware and other tech - <a href="http://atherbeg.wordpress.com" target="_blank">http://atherbeg.wordpress.com</a></li>
<li><a href="https://www.cloudcredibility.com/profile/1016">GrantsFriend</a> - Great Citrix and Virtualisation blog - <a href="http://uszaim.wordpress.com/" target="_blank">http://uszaim.wordpress.com/</a></li>
</ul>
<p>Of course this task is for our team &#8211; Xtravirt Limited, so we also have a <a href="http://xtravirt.com/blog" target="_blank">company blog</a> you can go and visit for some excellent content around the Cloud and Virtualisation industry.</p>
<div class="shr-publisher-1749"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.shogan.co.uk/vmware/cloud-credibility-challenges-blogging-about-my-team-members/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another update! ESXi Host Backup &amp; Restore GUI Utility (PowerCLI based) updated to 1.3</title>
		<link>http://www.shogan.co.uk/vmware/another-update-esxi-host-backup-restore-gui-utility-powercli-based-updated-to-1-3/</link>
		<comments>http://www.shogan.co.uk/vmware/another-update-esxi-host-backup-restore-gui-utility-powercli-based-updated-to-1-3/#comments</comments>
		<pubDate>Tue, 26 Feb 2013 17:36:32 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[powercli]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://www.shogan.co.uk/?p=1738</guid>
		<description><![CDATA[The other weekend I managed to get some spare time to do another update to my ESXi 5.0 / 5.1 Host Backup &#38; Restore GUI utility, this time it has been updated to version 1.3. I didn&#8217;t post up the changes as it was done by special request from one of my blog readers (thanks [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>The other weekend I managed to get some spare time to do another update to my ESXi 5.0 / 5.1 Host Backup &amp; Restore GUI utility, this time it has been updated to version 1.3. I didn&#8217;t post up the changes as it was done by special request from one of my blog readers (thanks Flavio!) However, after receiving more comments with a few others having a similiar issue to what Flavio had, I thought I should definitely post the updated version here, which should hopefully solve the issues some people are seeing.</p>
<p>&nbsp;</p>
<p>The changes are based on feedback received in the comments I have received about the utility relating to exceptions received when users in some circumstances try to backup their host configurations. Specifically the exception message &#8220;<strong>Exception caught: Get-VMHost VMHost with name &#8216;xxx&#8217; was not found using the specified filter(s).</strong>&#8221;</p>
<p><a title="ESXi 5.0 / ESXi 5.1 Host Backup &amp; Restore GUI Utility (PowerCLI based)" href="http://www.shogan.co.uk/vmware/esxi-5-0-host-backup-restore-gui-utility-powercli-based/" target="_blank">You can check the utility out over on it’s page here</a>.</p>
<p><strong>Updates (17-02-2013) – version 1.3:</strong></p>
<ul>
<li>Hosts are retrieved using a new method (for both backup and restore options)</li>
</ul>
<p>&nbsp;</p>
<div class="shr-publisher-1738"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.shogan.co.uk/vmware/another-update-esxi-host-backup-restore-gui-utility-powercli-based-updated-to-1-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A function to lookup Host System friendly name by MoRef using PowerCLI</title>
		<link>http://www.shogan.co.uk/vmware/a-function-to-lookup-host-system-friendly-name-by-moref-using-powercli/</link>
		<comments>http://www.shogan.co.uk/vmware/a-function-to-lookup-host-system-friendly-name-by-moref-using-powercli/#comments</comments>
		<pubDate>Sun, 24 Feb 2013 11:20:21 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[How-tos]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[by]]></category>
		<category><![CDATA[friendly name]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[MoRef]]></category>
		<category><![CDATA[powercli]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.shogan.co.uk/?p=1729</guid>
		<description><![CDATA[In a recent blog post, I showed a simple method of outputting a list of hosts with their friendly names, as well as their MoRef (Managed Object Reference) names alongside eachother, enabling you to match up which host belongs to which MoRef. I wanted to take that a little further, with a function that is [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>In a recent blog post, I showed a simple method of outputting a list of hosts with their friendly names, as well as their MoRef (Managed Object Reference) names alongside eachother, enabling you to match up which host belongs to which MoRef. I wanted to take that a little further, with a function that is able to return the friendly name of a host&#8217;s MoRef that is input into the function. I have used this is a larger reporting script, where I can only get the MoRef of a host via it&#8217;s property within a cluster object. Basically, I look for any Failover hosts (admission control policy), which is an array, and the hosts are listed as indexed objects of this array. They are also only displayed as MoRef names, so at this point, instead of inserting the MoRef into my results, I insert the MoRef into this function, return the friendly name, and input this instead. Which allows the person reading the report to easily identify the host!</p>
<p>$cluster.ExtensionData.Configuration.DasConfig.AdmissionControlPolicy.FailoverHosts &lt;- In this example, $cluster is a particular cluster using the &#8220;specify a failover host&#8221; policy, and &#8221;FailoverHosts&#8221; is the array, with each object within containing a host MoRef. For example FailoverHosts[0].Value would be one instance, and may equate to &#8220;HostSystem-host-28&#8243; for example.</p>
<p>&nbsp;</p>
<p>So here is the function. It takes two mandatory parameters: -MoRef (the MoRef of the host in question of course), and -Cluster (the name of the Cluster to do the lookup in) &#8211; the function loops through each host in this cluster to look for a host that matches the input MoRef.</p>
<p>&nbsp;</p>
<pre class="brush: powercli; gutter: true">Function Get-VMHostByMoRef() {

&lt;#
.SYNOPSIS
Fetches host name by input MoRef and Cluster to look in

.DESCRIPTION
Fetches host name by input MoRef and Cluster to look in

.PARAMETER MoRef
The MoRef of the host system

.PARAMETER Cluster
The name of the cluster to do the lookup in

.EXAMPLE
PS F:\&gt; Get-VMHostByMoRef -MoRef HostSystem-host-28 -Cluster MyCluster01

.LINK

http://www.shogan.co.uk

.NOTES
Created by: Sean Duffy
Date: 22/02/2013
#&gt;

[CmdletBinding()]
param(
[Parameter(Position=0,Mandatory=$true,HelpMessage=&quot;Specify the Host MoRef name you would like to query for it&#039;s friendly name.&quot;,
ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true)][String]$MoRef,[Parameter(Position=1,Mandatory=$true,HelpMessage=&quot;Specify the Cluster to search hosts in.&quot;,
ValueFromPipeline=$true,ValueFromPipelineByPropertyName=$true)][String]$Cluster
)

process {

$AllHosts = Get-Cluster $Cluster | Get-VMHost
foreach ($vmhost in $AllHosts)
{

}
$thehost = $AllHosts | Where {$_.ExtensionData.MoRef -match $MoRef} | Select-Object -Property Name

return $thehost

}
}</pre>
<p>Here is a quick sample of the output when called directly from the PowerCLI prompt (note the MoRef of &#8220;host-22&#8243; used to find the real host name of &#8220;esxi02.homelab.local&#8221;:</p>
<p><a href="http://www.shogan.co.uk/wp-content/uploads/host-by-moref-powercli.jpg" rel="lightbox[1729]"><img class="alignnone size-full wp-image-1734" title="host-by-moref-powercli" src="http://www.shogan.co.uk/wp-content/uploads/host-by-moref-powercli.jpg" alt="" width="587" height="68" /></a></p>
<p>Hopefully this may be of use to some &#8211; add it to your PowerCLI script/function toolkit or throw it into your PowerShell $profile for easy access in the future!</p>
<p>&nbsp;</p>
<div class="shr-publisher-1729"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.shogan.co.uk/vmware/a-function-to-lookup-host-system-friendly-name-by-moref-using-powercli/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Setting up vCenter 5.0.x Inventory Service wrapper.log rotation</title>
		<link>http://www.shogan.co.uk/vmware/setting-up-vcenter-5-0-x-inventory-service-wrapper-log-rotation/</link>
		<comments>http://www.shogan.co.uk/vmware/setting-up-vcenter-5-0-x-inventory-service-wrapper-log-rotation/#comments</comments>
		<pubDate>Tue, 19 Feb 2013 11:26:03 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[How-tos]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[disk space]]></category>
		<category><![CDATA[Inventory service]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[low]]></category>
		<category><![CDATA[rotation]]></category>
		<category><![CDATA[run out]]></category>
		<category><![CDATA[vcenter]]></category>
		<category><![CDATA[wrapper.log]]></category>

		<guid isPermaLink="false">http://www.shogan.co.uk/?p=1719</guid>
		<description><![CDATA[I noticed a trend recently on one of our vCenter servers where the disk space on the C:\ drive kept running low. The OS being run is Windows Server 2008 R2. Eventually if the disk fills up, the vCenter service will fail and stop. &#160; &#160; I used the free utility &#8220;TreeSize&#8221; to inspect the [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I noticed a trend recently on one of our vCenter servers where the disk space on the C:\ drive kept running low. The OS being run is Windows Server 2008 R2. Eventually if the disk fills up, the vCenter service will fail and stop.</p>
<p>&nbsp;</p>
<p><a href="http://www.shogan.co.uk/wp-content/uploads/large-wrapper-log-file.jpg" rel="lightbox[1719]"><img class="alignnone size-full wp-image-1720" title="large-wrapper-log-file" src="http://www.shogan.co.uk/wp-content/uploads/large-wrapper-log-file.jpg" alt="" width="303" height="48" /></a></p>
<p>&nbsp;</p>
<p>I used the free utility &#8220;TreeSize&#8221; to inspect the drive and see where all the disk space was being used up &#8211; the culprit was the C:\ProgramData\VMware\Infrastructure\Inventory Service\Logs\wrapper.log file &#8211; sitting at a massive 16GB in my case.</p>
<p>By default this log file seems to be configured to have no limits in size. I am not sure what caused the log file to grow so rapidly over the course of a week or so, but I&#8217;m sure closer inspection of the contents of the log file will reveal more detail.</p>
<p>For now, I will just point anyone having a similiar issue to the steps required to enable log rotation and file size limit on this wrapper.log file, which will prevent your vCenter server from running out of disk space. These steps are taken from a VMware KB article, which I will link to below.</p>
<p>&nbsp;</p>
<h2>High level process is as follows:</h2>
<p>&nbsp;</p>
<ul>
<li>Stop vCenter service</li>
<li>rename the wrapper.log file to something else (e.g. wrapper.log.bak) &#8211; after everything is up and a new log file is in place, this could be compressed and stored away, or deleted</li>
<li>open up the configuration file at C:\Program Files\VMware\Infrastructure\Inventory Service\conf and locate the wrapper.conf</li>
<li>edit the following two lines to change to:
<ul>
<li><strong>wrapper.logfile.maxsize=100m</strong> (original value is 0)</li>
<li><strong>wrapper.logfile.maxfiles=2</strong> (original value is 0)</li>
</ul>
</li>
<li>Save the file and close it</li>
<li>Start the vCenter service again</li>
</ul>
<p>The actual <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=2034687" target="_blank">VMware KB article</a> details the above process.</p>
<p>&nbsp;</p>
<div class="shr-publisher-1719"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.shogan.co.uk/vmware/setting-up-vcenter-5-0-x-inventory-service-wrapper-log-rotation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Troubleshooting the Autolab vCloud Director 1.5.1 installation</title>
		<link>http://www.shogan.co.uk/vmware/troubleshooting-the-autolab-vcloud-director-1-5-1-installation/</link>
		<comments>http://www.shogan.co.uk/vmware/troubleshooting-the-autolab-vcloud-director-1-5-1-installation/#comments</comments>
		<pubDate>Sun, 10 Feb 2013 22:24:45 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[How-tos]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[1.5]]></category>
		<category><![CDATA[autolab]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[vCloud Director]]></category>

		<guid isPermaLink="false">http://www.shogan.co.uk/?p=1711</guid>
		<description><![CDATA[I have had this issue twice now, where deploying vCD via the Autolab PXE boot option on the vCD VM fails. As far as I can tell, the process seems to fail on the Oracle Express DB installation, due to the RPM not being a valid package.  The vCloud Director steps seem to be the [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I have had this issue twice now, where deploying vCD via the Autolab PXE boot option on the vCD VM fails. As far as I can tell, the process seems to fail on the Oracle Express DB installation, due to the RPM not being a valid package.  The vCloud Director steps seem to be the same for Autolab 1.0 or 1.1, so the following applies to both.</p>
<pre class="brush: bash; gutter: true">error: /root/oracle-xe-11.2.0-1.0.x86_64.rpm: not an rpm package (or package manifest)</pre>
<p>You can see the error I was getting in the screenshot I captured during boot time below. I had checked the RPM file and everything else to ensure it was in place, and indeed it was. Even vCD installs via the script, although it of course does not work due to the database not being there.</p>
<p>&nbsp;</p>
<p><a href="http://www.shogan.co.uk/wp-content/uploads/vCloud-2012-11-25-12-36-12.png" rel="lightbox[1711]"><img class="alignnone  wp-image-1712" title="vCloud-2012-11-25-12-36-12" src="http://www.shogan.co.uk/wp-content/uploads/vCloud-2012-11-25-12-36-12.png" alt="" width="504" height="280" /></a></p>
<p>&nbsp;</p>
<p>Here is the process I used to correct my vCD install.</p>
<ul>
<li>Allow VM to finish booting, even with the missing oracle DB.</li>
<li>Use PuTTy to SSH to the vCD VM (either direct from your VC or DC VM, or if you have the route setup, from your host machine (in the case you are using VMware Workstation for example). Default credentials are in the Autolab setup guide document</li>
<li>Open up the &#8220;Build&#8221; share on the NAS VM, and location the vcd-install script. Default location: \\192.168.199.7\Build\Automate\CentOS\vcd-install (open this with a text editor)</li>
<li>Locate the method for each section of the install script. There is a section for each process in the script. For each method, copy out the entire block, paste it into a new text document, and remove any exclamation marks from any &#8220;echo&#8221; parts of the script. I found that manually tracking through this script using PuTTy gave me issues with the exclamation marks being misinterpreted by the shell, so I removed these. You&#8217;ll need to get a script block for the following sections and do this:
<ul>
<li>verify() {}</li>
<li>installOracle() {}</li>
<li>configureOracle() {}</li>
<li>generateCertificates() {}</li>
<li>installvCD() {}</li>
<li>configurevCD() {}</li>
</ul>
</li>
<li>Remember to copy the whole block, including the start and end braces {} &#8211; paste these into a new text document, remove the exclamation marks, then copy-paste them back into your shell open in PuTTy. Hit enter, and the method will be entered and ready for use.</li>
<li>Once all the methods have  been copied in, you can simply type the name of the method, followed by enter to execute them. By doing it this way, you can manually step through the process and figure out where any potential remaining issues may be. This script is normally executed during the PXE boot installation process so you don&#8217;t really get a chance to slowly track through it.</li>
<li>Type each method in until you reach and complete the last &#8220;configurevCD&#8221; one
<ul>
<li>verify</li>
<li>installOracle</li>
<li>configureOracle</li>
<li>generateCertificates</li>
<li>installvCD</li>
<li>configurevCD</li>
</ul>
</li>
<li>You may find that the generateCertificates and installvCD methods complete and echo out that they had already been completed prior &#8211; this is fine.</li>
<li>After configurevCD finished, all being well, you should now have vCD started, and you should be able to browse over to https://vcd.lab.local and finish the initial configuration via the vCD web page.</li>
</ul>
<div></div>
<p><a href="http://www.shogan.co.uk/wp-content/uploads/vcd-welcome.jpg" rel="lightbox[1711]"><img class="alignnone size-full wp-image-1713" title="vcd-welcome" src="http://www.shogan.co.uk/wp-content/uploads/vcd-welcome.jpg" alt="" width="600" height="472" /></a></p>
<p>&nbsp;</p>
<p>Other tips to try would be to:</p>
<ul>
<li>MD5 hash check the RPM of the Oracle Express database that you download and place in your Build share &#8211; make sure it is not a corrupted file</li>
<li>Ensure you have the correct version of vCD and the Oracle Express database downloaded</li>
</ul>
<div></div>
<p>&nbsp;</p>
<div class="shr-publisher-1711"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.shogan.co.uk/vmware/troubleshooting-the-autolab-vcloud-director-1-5-1-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vMetrics for WordPress blogs updated to version 1.1</title>
		<link>http://www.shogan.co.uk/vmware/vmetrics-for-wordpress-blogs-updated-to-version-1-1/</link>
		<comments>http://www.shogan.co.uk/vmware/vmetrics-for-wordpress-blogs-updated-to-version-1-1/#comments</comments>
		<pubDate>Sun, 20 Jan 2013 18:27:08 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[information]]></category>
		<category><![CDATA[metric]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[powercli]]></category>
		<category><![CDATA[stats]]></category>
		<category><![CDATA[vMetrics]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.shogan.co.uk/?p=1701</guid>
		<description><![CDATA[I spent a little bit of time updating my vMetrics plugin for WordPress blogs. To give you a brief run-down, vMetrics allows you to display information from your VMware vCenter Cluster or ESX hosts / lab on your WordPress blog. It works with vSphere 4, 5 and 5.1. &#160; &#160; In version 1.1 I have made the [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I spent a little bit of time updating my vMetrics plugin for WordPress blogs. To give you a brief run-down, vMetrics allows you to display information from your VMware vCenter Cluster or ESX hosts / lab on your WordPress blog. It works with vSphere 4, 5 and 5.1.</p>
<p>&nbsp;</p>
<p><a href="http://www.shogan.co.uk/wp-content/uploads/vmetrics-plugin-example-1-1.jpg" rel="lightbox[1701]"><img class="alignnone  wp-image-1704" title="vmetrics-plugin-example-1-1" src="http://www.shogan.co.uk/wp-content/uploads/vmetrics-plugin-example-1-1.jpg" alt="" width="190" height="389" /></a></p>
<p>&nbsp;</p>
<p>In version 1.1 I have made the following changes:</p>
<p><strong>Change log for version 1.1:</strong></p>
<ul>
<li>Added new metrics section for hardware information (Model and Vendor of first host in cluster &#8211; this is editable in the PowerCLI script)</li>
<li>Added configurable widget title section for Hardware</li>
<li>Updated PowerCLI updater script to have a DO WHILE loop (allowing you to run the script once on a management machine and it will keep updating your blog vMetrics every 30 minutes. (The script is called once every half hour). Thanks <a href="https://twitter.com/dawoo" target="_blank">@dawoo</a> for the idea <img src='http://www.shogan.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>Added PowerCLI section to send the vendor and model type of the first ESX host it finds back to vMetrics so that you can display this information in the widget too</li>
<li>Cleaned up PHP in main plugin code</li>
</ul>
<p>You can take a look at the <a href="http://www.shogan.co.uk/apps/vmetrics-plugin-for-wordpress/" target="_blank">main plugin page here</a> or use the links below to download the latest version right away. Installation and configuration steps can be found on the main plugin page.</p>
<p><strong>Latest version downloads (get the plugin and updater script):</strong></p>
<p><a class="downloadlink" href="http://www.shogan.co.uk/wp-content/plugins/download-monitor/download.php?id=vmetrics-plugin-1-1.zip" title="Version1.1 downloaded 132 times" >Download vMetrics Plugin for Wordpress 1.1 (132)</a><br />
<a class="downloadlink" href="http://www.shogan.co.uk/wp-content/plugins/download-monitor/download.php?id=vMetrics-updater-1-1.zip" title="Version1.1 downloaded 141 times" >Download vMetrics PowerCLI Updater script 1.1 (141)</a></p>
<div class="shr-publisher-1701"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.shogan.co.uk/vmware/vmetrics-for-wordpress-blogs-updated-to-version-1-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ESXi Host Backup &amp; Restore GUI Utility (PowerCLI based) updated to 1.2</title>
		<link>http://www.shogan.co.uk/vmware/esxi-host-backup-restore-gui-utility-powercli-based-updated-to-1-2/</link>
		<comments>http://www.shogan.co.uk/vmware/esxi-host-backup-restore-gui-utility-powercli-based-updated-to-1-2/#comments</comments>
		<pubDate>Sat, 29 Dec 2012 15:23:50 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://www.shogan.co.uk/?p=1658</guid>
		<description><![CDATA[A quick post today to just mention that I have updated my ESXi 5.0 / 5.1 Host Backup &#38; Restore GUI utility to version 1.2. &#160; There are a couple of improvements in 1.2 based on feedback received in the comments I have received about the utility. The main improvement introduces a function in the [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>A quick post today to just mention that I have updated my ESXi 5.0 / 5.1 Host Backup &amp; Restore GUI utility to version 1.2.</p>
<p>&nbsp;</p>
<p>There are a couple of improvements in 1.2 based on feedback received in the comments I have received about the utility. The main improvement introduces a function in the script which backs the GUI to check that ESX hosts are valid before attempting to backup or restore these. <a title="ESXi 5.0 / ESXi 5.1 Host Backup &amp; Restore GUI Utility (PowerCLI based)" href="http://www.shogan.co.uk/vmware/esxi-5-0-host-backup-restore-gui-utility-powercli-based/" target="_blank">You can check the utility out over on it&#8217;s page here</a>.</p>
<p>&nbsp;</p>
<p><strong>Updates (29-12-2012) – version 1.2:</strong></p>
<ul>
<li>Added ESX/ESXi host validation into utility – will now test that the host is valid and either connected or in maintenance mode before attempting backup or restore (See the script’s new “Check-VMHost” function for those interested)</li>
<li>Minor UI improvements</li>
</ul>
<p>&nbsp;</p>
<div class="shr-publisher-1658"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.shogan.co.uk/vmware/esxi-host-backup-restore-gui-utility-powercli-based-updated-to-1-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Writing files to an NTFS volume in OSX using VMware Fusion</title>
		<link>http://www.shogan.co.uk/vmware/writing-files-to-an-ntfs-volume-in-osx-using-vmware-fusion/</link>
		<comments>http://www.shogan.co.uk/vmware/writing-files-to-an-ntfs-volume-in-osx-using-vmware-fusion/#comments</comments>
		<pubDate>Mon, 24 Dec 2012 11:50:42 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[How-tos]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[Fusion]]></category>
		<category><![CDATA[NTFS]]></category>
		<category><![CDATA[partition]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[volume]]></category>
		<category><![CDATA[write]]></category>

		<guid isPermaLink="false">http://www.shogan.co.uk/?p=1646</guid>
		<description><![CDATA[This is more of a quick tip than the usual full blog posts I do, but a useful one none the less (at least for me). By default when you plug an NTFS (Windows) volume into an Apple Mac, you are able to read the volume, but not write to it. There are ways to [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>This is more of a quick tip than the usual full blog posts I do, but a useful one none the less (at least for me). By default when you plug an NTFS (Windows) volume into an Apple Mac, you are able to read the volume, but not write to it. There are ways to forcefully allow NTFS writes, but for those who do not wish to mess with system settings and are using VMware Fusion, this may come in handy.</p>
<ul>
<li>Make sure your Windows VM is powered on and booted, then your plug external USB drive with the NTFS formatted volume into Mac</li>
<li>When prompted, choose to connect the drive to your Windows VM</li>
<li>Make sure you have a folder from your Mac shared to your Windows VM (e.g. Documents) through Fusion</li>
</ul>
<div></div>
<p><a href="http://www.shogan.co.uk/wp-content/uploads/fusion-sharing-settings.jpg" rel="lightbox[1646]"><img class="alignnone  wp-image-1648" title="fusion-sharing-settings" src="http://www.shogan.co.uk/wp-content/uploads/fusion-sharing-settings.jpg" alt="" width="461" height="346" /></a></p>
<p>&nbsp;</p>
<ul>
<li>Place any files you would like to write to your NTFS volume in your shared folder on your Mac (e.g. Documents folder)</li>
<li>Using your Windows VM, open explorer, navigate to the shared folder presented to Windows via Fusion, find the files you want to copy, and then copy/paste them to your NTFS volume that has been passed through and mounted on your Windows VM</li>
<li>As Windows is doing the writing it will of course allow writes to the NTFS volume which has been passed through from the Mac</li>
</ul>
<p>&nbsp;</p>
<div class="shr-publisher-1646"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.shogan.co.uk/vmware/writing-files-to-an-ntfs-volume-in-osx-using-vmware-fusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using plink to modify ESXi host configuration files via SSH from a PowerCLI script</title>
		<link>http://www.shogan.co.uk/vmware/using-plink-to-modify-esxi-host-configuration-files-via-ssh-from-a-powercli-script/</link>
		<comments>http://www.shogan.co.uk/vmware/using-plink-to-modify-esxi-host-configuration-files-via-ssh-from-a-powercli-script/#comments</comments>
		<pubDate>Mon, 17 Dec 2012 20:25:43 +0000</pubDate>
		<dc:creator>Sean</dc:creator>
				<category><![CDATA[How-tos]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[automate]]></category>
		<category><![CDATA[plink]]></category>
		<category><![CDATA[powercli]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.shogan.co.uk/?p=1635</guid>
		<description><![CDATA[I am a big advocate of automation and saving time with a good script. Whenever I can find a task that is fairly lengthy, and is likely to be repeated in future, I always consider scripting it. There are many way to configure an ESXi host when it comes to writing build or automation scripts. [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I am a big advocate of automation and saving time with a good script. Whenever I can find a task that is fairly lengthy, and is likely to be repeated in future, I always consider scripting it. There are many way to configure an ESXi host when it comes to writing build or automation scripts. In fact, I often feel we are quite spoilt for choice. Here are just some of the tools we have available to use:</p>
<ul>
<li>PowerCLI</li>
<li>esxcli</li>
<li>vMA</li>
<li>vCLI</li>
</ul>
<p>I was working on a build configuration script the other day using PowerCLI and found the need to edit some configuration files on the hosts. I wanted to edit the configuration file <strong>/etc/vmware/config </strong>during the execution of a single PowerCLI script without needing to stop the script or have an additional step to do myself. The following is what I came up with to achieve this:</p>
<ul>
<li>Configure host as normal using PowerCLI</li>
<li>Use PowerCLI to start SSH service on host</li>
<li>execute plink script to connect to host, run command via SSH, then disconnect</li>
<li>Use PowerCLI to stop SSH service on host</li>
<li>Continue with rest of PowerCLI script</li>
</ul>
<p>&nbsp;</p>
<p>Plink is a command line connection tool &#8211; essentially a command line version of PuTTy. You can call it from dos prompt and issue it with a single, (or list) of commands to run once connected to a specified host. You can <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">download Plink over here</a>.</p>
<p>&nbsp;</p>
<p>So without further ado, let&#8217;s take a look at the script as I described above.</p>
<pre class="brush: powercli; gutter: true"># At start of our script we ask for the host&#039;s IP or name (this could be automated if you like)
$hostIP = Read-Host &quot;Enter ESX host IP/dns name: &quot;
$vmhost = Get-VMHost $hostIP

# Start the SSH service
$sshService = Get-VmHostService -VMHost $vmhost | Where { $_.Key -eq “TSM-SSH”}
Start-VMHostService -HostService $sshService -Confirm:$false

# Use SSH / plink to configure host with some additional script
cmd /c &quot;plink.exe -ssh -pw HOSTROOTPASSWORD -noagent -m commands.txt root@$hostIP&quot;

# Stop SSH service
Stop-VMHostService -HostService $sshService -Confirm:$false</pre>
<p>&nbsp;</p>
<p>As you can see, we start off by asking for the host IP or name, this is the only bit of manual input, but even this could be automated. The script then finds the SSH service on the host, and starts it. After this, the script calls the plink.exe file via cmd /c and connects using the root user@ the host&#8217;s IP as we entered at the beginning of the script over SSH. Plink is pointed to a commands.txt file (previously placed in the script execution folder), which contains the actual lines of bash script to be executed on the ESXi host via SSH.</p>
<p>Here is the content of the commands.txt file that I refer plink.exe to use (as an example, this bit of script enables copy/paste operations on all VMs running on this host in the guest OS&#8217; console, as per <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1026437" target="_blank">VMware KB 1026437</a>), but could contain any other commands you wish to execute on the ESXi host over SSH.</p>
<pre class="brush: bash; gutter: true">echo &#039;isolation.tools.copy.disable=&quot;FALSE&quot;&#039; &gt;&gt; /etc/vmware/config
echo &#039;isolation.tools.paste.disable=&quot;FALSE&quot;&#039; &gt;&gt; /etc/vmware/config</pre>
<p>&nbsp;</p>
<p>* Note two very useful techniques show by Alan in the comments section below, showing how to automatically download plink.exe if it is not available when the script is run, and also how to accept the SSH fingerprint key request by piping Y to plink.exe via the script &#8211; check out <a href="http://www.virtu-al.net/2013/01/07/ssh-powershell-tricks-with-plink-exe/" target="_blank">Alan&#8217;s blog post here</a> for more detail.</p>
<div class="shr-publisher-1635"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic --><!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.shogan.co.uk/vmware/using-plink-to-modify-esxi-host-configuration-files-via-ssh-from-a-powercli-script/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

 Served from: www.shogan.co.uk @ 2013-05-26 03:56:22 by W3 Total Cache -->