Author Archives: Alan

About Alan

Alan Renouf has a role of Automation Frameworks Product Manager at VMware responsible for providing the architects and operators of the cloud infrastructure with the toolkits/frameworks and command-line interfaces they require to build a fully automated software-defined datacenter. Alan is a frequent blogger at http://blogs.vmware.com/vipowershell and has a personal blog at https://virtu-al.net. You can follow Alan on twitter as @alanrenouf.

UK VM User Group – London

Don’t forget that next Tuesday (10th March 2009) will be the next UK London VMware User Group . This meeting will be sponsored by Veeam Software.

The meeting will be held at the following location:

The Thames Suite,
London Chamber of Commerce and Industry,
33 Queen Street,
London EC4R 1AP,

+44 (0)20 7248 4444.

The nearest tube station is Mansion House, location information is available here.

Continue reading →

Setting MMU for your VMs

I was asked by my friend Duncan if it was easy enough to set the Memory Management Unit (MMU) for each of his VM’s.  Read his post here for more information on what he was working on.

He was about to set this by hand for 50+ VM’s which would take a while, so with the power of the VI Toolkit he can now take it easy whilst PowerShell does the hard work:

For one VM:
Get-VM -Name "MyVM" | Get-View | foreach {
    $spec = New-Object VMware.Vim.VirtualMachineConfigSpec
    $spec.flags = New-Object VMware.Vim.VirtualMachineFlagInfo
    $spec.flags.VirtualMMuUsage = "on"
    $taskMoRef = $_.ReconfigVM_Task($spec)
}
For all VMs you could use:
Get-VM | Get-View | foreach {
    $spec = New-Object VMware.Vim.VirtualMachineConfigSpec
    $spec.flags = New-Object VMware.Vim.VirtualMachineFlagInfo
    $spec.flags.VirtualMMuUsage = "on"
    $taskMoRef = $_.ReconfigVM_Task($spec)
}
Or for each of the VMs in a cluster:
Get-Cluster "MyCluster" | Get-VM | Get-View | foreach {
    $spec = New-Object VMware.Vim.VirtualMachineConfigSpec
    $spec.flags = New-Object VMware.Vim.VirtualMachineFlagInfo
    $spec.flags.VirtualMMuUsage = "on"
    $taskMoRef = $_.ReconfigVM_Task($spec)
}

To list each of the VM’s and their current MMU setting use this one-liner:

Get-VM | Get-View | ForEach {Write "$($_.Name) - $($_.Config.Flags.VirtualMmuUsage)"}

VMTN: Ask The Experts – How did it Go ?

VMTN - Ask the Experts

I wanted to say thanks to everyone that came to see us at VMWorld Europe 2009 in Cannes, and especially the people who asked me some questions.

After a slow start to the first day it picked up and we had a fair few visits from people the second day.  I especially want to thank the German guy who came well prepared, he had a sheet of A4 paper full of questions for me. I think I managed to answer most of them.

 

I had some interesting questions from some other people who I have promised to write a few scripts for, I will post these on my blog, hopefully over the next couple of weeks.

Continue reading →

The VESI is on its way

Whilst at VMworld Europe 2009 I managed to get a sneak preview of the VESI, if you are unsure what this is then please check my previous post here.   Judging by the interest of the Vizioncore stand and the fact that Scott Herold was looking rather tired at the end of each day I am sure this product is going to AMAZING.

I managed to capture a few sneaky pics of the vDiagram portion of the app and let me tell you, if you liked my original script then you are in for a treat when they release this app, as you can see below they have added more features, nicer shapes and a whole can of kick ass in the process.

Continue reading →

Scripted Install and Configuration of Dell OpenManage Client

I have installed a fair few Dell Open manage client’s on our ESX hosts to give us the nice hardware monitoring of the Dell Open Manage software, I have just found an easier way to install it here at the Dell Tech center.  

This script will install and configure the OMSA agent on VMware ESX 3.x. It will also configure the SNMP settings, and open the default ports in the firewall to allow communication.

If you’ve never installed OMSA on ESX, don’t start with this script ! Read this piece of documentation first, “Installing Dell OpenManage in a VMware ESX Server Software Environment”.

Then once you have a grasp of the steps necessary, you can use this script as a standalone, or integrate it as part of your standard installation procedures.

Continue reading →

The Frenchman in Cannes

In one of the VMTN Round table podcasts I was mistakenly taken for a Frenchman as my last name is Renouf and I guess this sounds French to the Americans, whilst I haven’t found a way to re-pay John Troyer for this mistake yet I certainly will.

It would seem that at VMworld I was recognised as ‘The Frenchman’ rather than the guy who writes PowerShell scripts or the guy from the UK, I was expecting this after the multiple blog posts which have been added by people stating that I was French.  I decided to go prepared and the below is the sum of my payback !

Continue reading →

VI Toolkit voted Number 1

In a recent VMTN Round table podcast we were asked what our predictions would be for 2009, mine was “Automation of VMware Products”,  after visiting VMWorld Europe 2009 in Cannes it would seam that my prediction was coming true.

Whilst there I attended ‘TA01 – Managing VMware With PowerShell’ presented by Carter Shanklin (VI Toolkit Product Manager), one of the developer of the VI toolkit and also Dennis Zimmer (CTO of Icomasoft).

Continue reading →

VI Toolkit Quick Reference Guide

 

VI Toolkit Quick Reference Guide

VI Toolkit Quick Reference Guide

I’m currently sat in Heathrow Airport Terminal 1, I have just found a nice Zurich stand where they give you place to sit, a plug for the laptop and even an Ethernet cable with free Internet access, how nice is that !

So I thought I would best use my time to upload a Quick Reference guide to the VI Toolkit, hopefully I will be handing a few of these out at VMWorld but thought I would also add it to my blog for those of you who were unable to make it.

If you are interested in getting started with the VI Toolkit then print off the attached pdf file on a duplex printer, fold it in half and you have the ultimate getting started guide.

Thanks to C.Shanklin, S.Herold, L.Dekens and C.Bunch for their help with the editing and for the one-liners.

Have Fun !

More Network Info

Following my previous network information script I was asked to add the VSwitch, so here it is…

The following script will add some nice host network information into an object which is exported to a csv file for passing to the network guys or can be used to find your server in that mess of cables that are always meaning to be tidied in the data center.

Continue reading →