Category Archives: VMware

ESX4 U1 & the Intel 82576 Gigabit Network Adapter

Previously when installing ESX it has picked up all devices and automatically installed everything needed to use the server as an ESX host, recently whilst installing a new Dell R710 (a great review of the server can be found on the techhead.co.uk site here) I came across an issue where the additional Network Adapter in the PCI slot was not found by ESX.

The R710 has 4 internal adapters which were found as below:

image

Continue reading

PowerCLI: Automating traffic shaping on portgroups

I was contacted by someone who needed to automate some changes to their virtual infrastructure, I can never resist a challenge so of course I agreed to help.

He worked for a Virtual Hosting platform who offer hosting at a low cost of entry.  Each customer where he works is provided with a dedicated  virtual machine, a public IP space in a logical VLAN.   As such his platform is currently 9 hosts, 190 VM’s and 60 Portgroups/VLAN’s. The platform is based on HP c700 Chassis with Cisco 3020 gig switches, with each “half” of the chassis trunked back to our core with a 2Gbps etherchannel. Each Blade’s “production” interface is connected to each “half” of the chassis at 1Gbps with originating VM id based load balancing. Continue reading

PowerCLI: Comparing Clusters

A simple one-liner for today, I needed to check all our current clusters and ensure all the ‘Production’ clusters were set the same, now we could go to each one and look at the settings but in this wonderful PowerCLI world we live why would you do anything more than once ?

The code is simple:

Get-Cluster | Select Name, * -ExcludeProperty id, CustomFields, ParentId | Sort Name | Out-GridView

The Get-Cluster cmdlet gets all the cluster information and then we simple exclude a few of the items I am not really interested in and then push the output through Out-GridView to display a nice filterable table as below:

Cluster

Continue reading

vSphere Quick Start Guide – PowerCLI and PDF

In case you haven’t bought a copy of the “vSphere Quick Start Guide” yet and were thinking of buying one, there are a couple of things I would like to point out…

I was responsible for adding all the PowerCLI throughout the book, basically if something is explained and there is an easy way to do it in PowerCLI, we have added a code reference, this enables you to see how much is covered by PowerCLI and also how easy it actually is.

Continue reading

PowerCLI: Shutdown your Virtual Infrastructure

Imagine your Power intake to your rack has failed, imagine your UPS has kicked in but is about to run out of power, you need to quickly shut down all of your virtual infrastructure…. quick run !

Or, you could let PowerCLI do the work for you and help you safely shutdown your entire virtual infrastructure, you could even tell your UPS software that when it gets to a certain amount of battery life left that it needs to run this script to safely shut things down.

Continue reading

PowerCLI: Copying Advanced Host Configuration

I was asked in my script list comments if there was a way to copy the ESX host advanced configuration from one host to every other host in the cluster, thankfully PowerCLI gives us some nice cmdlets to work with that make this task very easy…

Get-VMHostAdvancedConfiguration and Set-VMHostAdvancedConfiguration

So first of all lets list the current advanced configuration of one of our hosts using Out-GridView:

Continue reading

VESI & PowerGUI PowerPack V3

V3 Nodes

The popularity of this PowerPack never ceases to amaze me, as if it wasn’t enough to have more than 2500 downloads already it was also mentioned by the great Eric Sloof at the recent Dutch VMUG, check out a video of the session here (if you speak Dutch) or check out his slide deck here.

So, I have been working on V3 of the PowerPack and have just finished the final touches.

What’s new ?

To be honest I cant remember everything that is new but as you can see from the left hand node list there are a fair few new nodes which may help in your day to day admin life.

I have not only added my own enhancements but also included a bunch of bug fixes, (thanks Arnim and Luc) and also included some other scripts from Arne over at ICT-Freak.nl

I have re-organised some of the nodes so when you add the latest PowerPack you will receive a prompt like the below:

V3_Move_Nodes

Make sure you click yes to re-organise the nodes into the new areas.

I have also made a dependency on PowerCLI V4.0 Update 1 so if you do not have that version installed then please install it before upgrading to the latest PowerPack, you will not need vSphere 4.0 U1 as PowerCLI 4.0U1 is backward compatable.

In the latest version of PowerCLI VMware have made the connection methods a million times better, if you look at the code you will now see how easy it is to paste your new code into the nodes and create your own enhancements.

So what’s next for V4 ?  More of the same great scripts, more enhanced nodes, a move towards more actions and less nodes, and I am also thinking about opening this up as a community project, we can all add our own scripts to the PowerPack as a community effort and make this THE ULTIMATE FREE TOOL to have when administering or consulting VMware systems, express your interest via the comments please.

If your not a scripter but would like to see something in the PowerPack to make your life easier also please let me know via the comments.

Use the automatic update feature or download the new version now from below.

vSphere 4.0 Quick Start Guide – Available in Europe

Quick Start GuideThe vSphere Quick Start Guide is doing well, I don’t think we will quite take the Christmas Number 1 best seller slot but still, thanks to anyone who has purchased the book so far and a bigger thanks if you have left us a review or published a blog post, its always good to hear how people are finding the book.

After the release I had a few questions about when it would be released on the UK Amazon site, it seams that apart from sharing their name, these two sites do not have anything to do with each other, one would assume that once it was published on the US site it would soon make its way over to the UK site, that doesn’t seam to be the case.

Do not despair, we have now released it via LULU, a self publication site, you can now purchase the book and have it delivered very quickly from here for just…

£12.53 – no I am not missing a 0, that is correct, what a bargain price !

Continue reading

Local Plugin Creator

Recently VMware are adding everything into vCenter to be centrally managed, apart from my PowerCLI prompt I think the vSphere Client is the second most launched application on my computer !

Now wouldn’t it be useful if you could add your other management interfaces into the vCenter Client, even if the vendor hasn’t created a plugin…

One App to rule them all, One App to find them,
One App to bring them all and in the vSphere Client bind them.

Sorry, couldn’t resist it. Continue reading

PowerCLI Quick Reference Guide

Way back in the days of the “Virtual Infrastructure Toolkit” I released a quick guide for people to keep on their desk or in their pocket, the idea was it would give you enough information about the VITK whilst still being on a single (double sided) page.

Well things have moved on and the days of the VITK are no more, now we have PowerCLI and aren’t we pleased !

So to keep us up to date and so that we still have a quick reference, I have updated the single sheet to include all the new cmdlets and I also threw in a few other resources too.

Please download, print off and fold, keep it with you to help with your day to day usage of  PowerCLI (or is that just me ?!?). Continue reading