Category Archives: VMware

Quick PowerCLI- Getting VM hardware versions

A quick PowerCLI snippet for examining what VM Hardware versions exist in your virtual environment:

Using the “Group-Object” cmdlet we can run up a quick count of all the VMs on each hardware version

Get-VM | Group-Object Version

Count Name                      Group
----- ----                      -----
42    v13                       {VM1,VM2,VM3...}
257   v8                        {VM4,VM5,VM6...}
70    v11                       {VM7,VM8,VM9...}
2     v4                        {VM10,VM11}
5     v10                       {VM12,VM13,VM14...}
2     v9                        {VM15,VM16}
2     v7                        {VM17,VM18}

This can be refined using “Sort-Object” to put the most common hardware version at the top of the list.

Get-VM  | Group-Object Version | Sort-Object Count -Descending
Count Name                      Group
----- ----                      -----
257   v8                        {VM4,VM5,VM6...}
70    v11                       {VM7,VM8,VM9...}
42    v13                       {VM1,VM2,VM3...}
5     v10                       {VM12,VM13,VM14...}
2     v7                        {VM17,VM18}
2     v9                        {VM15,VM16}
2     v4                        {VM10,VM11}

We may only be concerned with VMs that are Powered On, so “Where-Object” can be used to filter the original list.

Get-VM  | Where-Object {$_.PowerState -eq "PoweredOn"} | Group-Object Version | Sort-Object Count -Descending
Count Name                      Group
----- ----                      -----
66    v8                        {VM4,VM5,VM19...}
51    v11                       {VM7,VM8,VM9...}
33    v13                       {VM1,VM21,VM22...}
5     v10                       {VM12,VM13,VM20...}
2     v9                        {VM15,VM16}
1     v4                        {VM10}

This quick snippet can be useful when establishing the range of hardware versions in an environment, or estimating the amount of work involved in updating VM hardware to a modern standard across an estate.

VMworld 2018 Banner

VMworld 2018: Dev 4 The Ops Team

A recording of my VMworld 2018 talk, thanks to the vBrownbag team.

I believe every IT Ops person, SysAdmin, and vSphere administrator should do some coding, and this session will explain how to get started. This session will cover the core concepts required along with some PowerShell/ PowerCLI examples. The session is aimed at vSphere admins with little coding experience and they should come away understanding that coding isn’t something to be fearful of.

The additional resources mentioned at the end of the video can be found here: Devs4Ops Resources

VMworld 2018 Banner

VMworld Europe 2018 Sunday

VMworld Europe 2018 officially started today (4th November) with registration opening this afternoon. The IT world has descended again upon Barcelona and you can’t go far in the airport or on the streets or metro without overhearing talk of virtualisation and VMware.

pyrreneesAfter flying in over the snow-capped Pyrenees (yay for November!) the Sunday offers a chance to get settled in, collect your conference badge, and find your bearings before the doors fully open tomorrow,

Delegates visiting the Fira Gran Via conference centre this afternoon got a glimpse of what is in store this week. The Hands on Labs area is adjacent to the main entrance in Hall 6.0 again, with the VMware Store opposite. Further down the hall are the VMTN, vCommunity, and {code} areas, and the VMware Education lounge. These areas are currently off limits to us regular delegates, but doors open bright and early tomorrow.

IMG_20181104_155013078

After registering there’s the option to collect your VMworld 2018 bag or –in a new scheme this year- donate the equivalent money to a charity. And don’t worry if you can’t register today- the desks are open all week.

Top tips for registration:

  • Remember your passport (or other “Government issued ID”- you’ll need it to collect your badge.
  • Install the VMworld App (and login to it) before you get to the venue- this makes badge pickup really quick.
  • Swing by the information desk and ask for your complimentary 10-trip Metro ticket.

vRockstarSponsorsThe vCommunity is out in full force as usual and I’ve already caught up with several familiar faces. Tonight I’ll be attending the annual vRockstar gathering where I’ll be looking to meet up with even more friends from previous years and make some new ones too.

How to extend disk on a HyTrust KeyControl Appliance

Symptoms

An alert (and corresponding email) has been issued by the KeyControl service stating that free disk space is running low.

Freespace available on <KeyControl Server> has fallen below 2G. An upgrade to the storage for this system should be considered.

image

Solution

Locate the appliance within vSphere and increase the size of the hard disk.

image

Next, login to the web GUI of the appliance node in question and reboot the system. This restart should have no impact on the service as other node(s) in the  cluster will automatically take over.

image

When the node reboots it will automatically expand the appropriate filesystem to make use of the space and an email alert is sent out confirming that the KeyControl storage pool has been resized.

See the HyTrust DataControl Audit Messages page for more information.