Virtually everything is poshable
Posts tagged vmware
PowerCLI 4.1 Poster and Quick Reference Guide
Aug 25th
Recently released on the PowerCLI site there has been an updated version of the PowerCLI Poster, this time the PowerCLI Documentation and Engineering teams have done a great job of updating it into a readable poster and have even added my quick reference guide to it to make it an awesome document.
Included in this poster you will not only find every cmdlet collated into some nice readable sections but also code examples and further PowerCLI and PowerShell resources, download the pdf from below:
PowerCLI Book Update
Jul 24th
As we announced in our post “We’re writing a book!”, Luc and myself started writing a PowerCLI book.
At about the same time I got a once-in-a-lifetime opportunity to join EMC as a vSpecialist, how could I turn that down !
Now you don’t become a vSpecialist for free, I have been spending a fair amount of time in training, coming up to speed with VCE (VMware/Cisco/EMC) and travelling all over the globe. The little time I did have spare was spent at home with my family.
As a consequence, our chapter-writing schedule failed miserably, something which I am ashamed of as Luc is doing a fantastic job.
And now, for the proverbial “silver lining”, have a look who agreed to help us out:
![]() |
||
| Glenn Sizemore
Winner of the Scripting Games 2010 and vExpert |
Jonathan Medd
Microsoft Valuable Professional (MVP) |
Arnim van Lieshout
vExpert |
In other words, the book will be now be written by “4 vExperts and a MVP” !
Can’t wait to read it
Why EMC for VMware
Jul 22nd
Recently at the London VMware User Group I gave an additional presentation on top of the normal PowerCLI session I normally provide (which was interactive this time and I think worked very well).
The subject of this session was “Why EMC for VMware”, I have had a number of questions from people who know that I have joined EMC and I wanted to address these and show exactly what EMC is doing when it comes to VMware, one thing I didn’t know about EMC before joining them was how tight they actually integrate both their software and hardware product ranges into VMware and vCenter, making both the life of the virtual admin and the storage admin (I know most of us are now both) 100 times better.
During the presentation Simon Seagrave (fellow vSpecialist and blogger) and I gave an overview of some of the EMC products and how they can make your life easier, just one good example of this is using the EMC Plugins for vCenter – strangely out of 2/3 of the room who said they were EMC customers only a few had tried these.
Using these plugins can make both the VMware admin and Storage admin start communicating together and understanding each others language – think of the universal communicator they use in StarTrek, now when the storage admin is talking to the VMware admin about LUNs and RAID levels, what used to be a glazed look will instantly be translated into datastores and performance !
Check out the below slides or Chad’s great post explaining the plugins in detail which can be found here.
London VMUG – Thu 15 July – Lets get interactive !
Jul 12th
I have been given my normal resident slot at the London VMUG this Thursday, 15th July.
At the last VMUG I showed how vEcoShell could be used to add the graphical interface back onto our PowerCLI scripts and also gave an overview of the “VMware Community PowerPack”, when performing the demo I showed how easy it was to drill down into an object using the debugger in the script editor.
Someone asked me if next time I would give more tips and tricks like this, the kind of tips you pick up without realising it and are really helpful to people starting to learn PowerCLI.
So this time there will be a change in the way my session is presented…. We are going to get interactive !
If you are attending my PowerCLI session at the VMUG this Thursday 11-12, please bring along the following equipment:
- Laptop, Windows is preferable but if you have to use one of them Mac things please make sure you have a Windows VM.
- Pre-install Windows PowerShell V2
- Pre-Install PowerCLI 4.0 U1
- Pre-Install vEcoShell and vEcoShell Script editor.
I will bring these on a USB stick also but it will help if you are already setup and raring to go !
My plan is to host a ESX host and a vCenter VM and a few other VMs which we can all hook into and mess with, we can all do the same things and learn at the same time, I will have some mini instructions to follow which will help you along the path – think of this as a free PowerCLI course !
We will start off slow and then I will ask you to do a few things on your own, just to keep you awake.
Hopefully it will go down without a hitch, if you are unable to bring your laptop don’t worry I will try and put you in a group with other people so we can all observe and work together.
See you on Thursday and please remember your laptop !
Goodbye Virtu-Al – Hello Community
Jun 4th
This may not be news to some of you as I have mentioned it at both the Dutch VMUG and the London VMUG but anyway, if you were not lucky enough to make it to these because you live in a far away place then please read on…
The Virtu-Al PowerPack is no more – gone, dead and buried – RIP
However, the “VMware Community PowerPack” has arrived ! Yes it is a rename but also there is new content and a whole lot more to come, to give this the justice it needs I have created a landing page for the PowerPack at the top of my site under featured scripts or click here.
On the landing page you can see how to download it, a video showing how to install it and also how you can get involved in making it even more useful – Come on people we are all managing the same VMware software here !
Don’t worry if you don’t have scripting skills, you can still get involved !
And with great people like the below already adding content it is destine for great things !
Head over to the landing page http://www.virtu-al.net/featured-scripts/vmware-powerpack/ and check out the “VMware Community PowerPack” now !
We’re writing a book
May 4th
Some of you might be interested to know, Alan and Luc are writing a PowerCLI book.
We don’t have many more details at the moment but wanted to let you know, as we are both very excited (and nervous by the amount of work) about this project.
As you know we both live and breathe PowerCLI. And we want to share our knowledge to help others achieve the level of PowerCLI automation we both know is possible.
One thing you can expect from this book is a practical approach with examples galore, we aim to cover most of the common configuration/troubleshooting and reporting areas with easy to understand examples and explanations.
To answer some of your questions:
Q: What’s the title ?
A: Well, in the end we went for “VMware vSphere PowerCLI Reference: Automating vSphere Administration”
Q: Why ?
A: We’re both crazy enough to think we can do this.
Q: When ?
A: Our publisher, Sybex, targets 2011 Q1
Q: What ?
A: Expect a practical, down-to-earth approach. We’re going to show you how you can manage all aspects of your vSphere environment with PowerCLI.
Q: Who are these guys ?
A: Alan, who recently joined EMC’s vSpecialist army, is well-known from his Virtu-Al blog, his UK VMUG appearances, as a co-host of the Get-Scripting podcasts and as the winner of the recent Script-O-Mania contest.
Luc, aka LucD, is known from the PowerCLI Community, his LucD notes blog, his Dutch VMUG and VMworld appearances and as the winner of the first PowerCLI Scripting contest.
Q: Where do these guys live ?
A: Alan, contrary to some rumours, is an English guy and lives in Wiltshire, UK.
Luc lives in Belgium and works in the Netherlands. The best of both worlds
Incorrectly named VMs
Apr 29th
I was recently contacted via my blog and asked if there was a way to find the VMs which are not named in vCenter the same as they are in Active Directory or their hostname, the person contacting me had explained that someone had “accidently” renamed a number of VMs and when there was an issue with the windows VM they were unable to find it as the name of the VM did not relate to the hostname in any way.
The quick way to find the VM was easy enough, we can easily find the VM with this single one-liner:
Get-VM | Where { $_.Guest.HostName -match "HostnameOfVM"} | Select Name, @{N="Hostname";E={$_.Guest.Hostname}}
If you replace “HostnameOfVM” in the above example with the hostname you should get the correct results back showing the name and the Hostname of the VM.
With this in mind I expanded the above one-liner a little to check your vCenter for each VM which may have a VM name which is different to the hostname, now obviously this depends on if you name the VMs with the hostname or the FQDN so I added an option for both.
If you name your VM’s with the FQDN like MyVM.MyDomain.Com rather than just the hostname (MyVM) then simply set the $IncludeFQDN to $true rather than the preset $false.
As it stands at the moment, the below script will tell you about the VMs which are not named correctly and it will also tell you that it would have changed the name, that’s because this script is currently in “Whatif” mode, this mode means it will tell you if it was going to make a change and not actually make the change. I would run the script as it was and if you are happy with the results simply remove the –whatif which is located after the Set-VM cmdlet, this will then enable the cmdlet to set the name of the VM back to the correct name.
Connect-VIServer MyvCenterSRV
# Specify if your virtual machine names include the FQDN
$IncludeFQDN = $false
Get-VM | Where { $_.PowerState -eq "PoweredOn" } | Foreach {
If ($IncludeFQDN) {
$Name = $_.Guest.Hostname
} Else {
$Name = (([string]$_.Guest.HostName).Split("."))[0]
}
If ($_.Name -ne $Name) {
If ($_.Guest.Hostname) {
Write "VM name '$($_.Name)' is not the same as the hostname $Name"
Set-VM $_.Name -Name $Name -whatif
} Else {
Write "Unable to read hostname for $($_.Name) - No VMTools ?"
}
}
}
A gentle reminder that whilst this may rename the VM name correctly it will obviously not touch the name of the folder on the datastore, if the name was not correct in the first place then your folder name will be incorrect which is an entirely different issue (picked up by my vCheck script), this can of course be resolved whilst the VM is powered on by performing a storage vmotion to another datastore, a SVMotion renames the folder and files to the correctly named entities.
PowerShell / PowerCLI / VESI & the Dutch VMUG
Apr 13th
You may have noticed a distinct lack of posts from me recently, I have been on holiday, I had a great time staying in Belgium and The Netherlands, a fantastic country which I would recommend to anyone thinking about travelling in northern Europe, not just for the red lights or “space cakes” either !
Whilst preparing for my trip I heard that the famous “Dutch VMUG” was having a PowerCLI / VESI event, now I know I was on holiday but it would have been rude to pass within an hour of the area and not attend
and I was glad I did.
Having presented at a few VMUGS now I was very impressed at how organised the Dutch VMUG members really are, the presentations were submitted before hand and everything was set for the date well in advance, there were some real superstars presenting too, Armin van Lieshout, Arne Fokkema and Viktor van den Berg.
vCheck v5
Mar 26th
That’s right, its finally here, vCheck v5 has arrived !
If you have been using previous versions of this report then its time to update, I have added lots of cool new features and checks which make this report (even if I do say so) awesome !
Some of the highlighted features of v5 are:
Comments
Each section now has comments telling you why I think it may be an issue, there are often links to blog posts and useful information for further reading, an example is below:
Obviously for the experts among you these comments can easily be removed in the script by changing the $comments = $true to $false
Automatic searching for log warnings
There is now a handy link to both the VMware KB site and Google which will automatically search for the errors found on these sites, no longer do you have a reason for not investigating those errors !
Multiple new checks
There are so many new checks that I have now created a dedicated page on my site for this script which lists some basic information, this will of course change over time as more detail is needed and I hope to shoot some video soon showing how to change some of the key areas.
To access the page click the “Featured Scripts” area above and select “vCheck (Daily Report)” or click here.
Thanks
I have been bugging various people to help me with this script, whether it be for information or html help, thanks to everyone who helped me out and also to the beta testers.
To mention a few of the people specifically, thanks goes to:
Raphael Schitz – As always he has contributed some great checks for v5 and thought of areas I would never have. Amazing job my friend.
Duncan Epping – I have bothered him more than once for clarification on the way things work, cheers mate.
Andy Grant – He did a great job helping me tidy up my HTML and add new areas.
The beta testers – you know who you are !
Sorry if I missed anyone !
Dell ESXi Management
Mar 17th
Unlike the traditional ESX software, the ESXi software does not have a service console. It helps reduce the installation footprint of the software and can allow the hypervisor to be directly installed on the system’s internal flash storage or a USB key.
At the moment I am investigating moving to ESXi from ESX, after resolving the DSET issue I was then faced with the management of the ESXi hosts, currently the full fat ESX hosts have the Dell open management agent installed on them and SNMP configured, this allows the Dell management server to keep track of the underlying hardware and report any hardware issues or firmware updates.
But what happens with ESXi 4.0 and the removal of the service console ?
Earlier with ESXi 3.5, OpenManage component were integrated with the downloadable Dell ESX3i ISO image
but from ESXi 4.0 onwards, VMware introduced a new concept called vSphere Installation Bundle (VIB), this allows the end users to download VIB files and install it directly into ESXi 4.0. Dell are now posting their OpenManage component as a VIB on support.dell.com.
To help reduce the system footprint and to simplify deployment, the ESXi software does not have a traditional service console management interface where Dell OpenManage agents are installed. Instead, to provide the required hardware manageability, VMware has incorporated the standard Common Information Model (CIM) management profiles into the ESXi software.









(3)
(13)
(0)