Tag Archives: VMWare

Getting Started with VMWare PowerCLI

Share

I’ve recently been spending some time “cleaning up” our VMWare infrastructure and making it more functional – both for demos and for internal lab use. To that end, I’ve been trying to automate/simplify as many things as possible. One task that I’d been wanting to simplify is snapshot creation/deletion of multiple VMs at once since this is something we do all the time. Imagine you have a set of VMs that are used for a single lab instance of a product. Before you make any major changes – for example patching or upgrading the product – you want to create a clean snapshot so that you can revert if something goes wrong. Unfortunately, this is something you can only do one VM-at-a-time in a vanilla-vCenter environment. However, it’s dead simple using Powershell and PowerCLI!

Continue reading

Adding Additional Disk Space to an ESXi Boot Partition

Share

This post aims to solve the most common issue that I’ve faced with our (admittedly not too large) ESXi infrastructure – how to add more drive space to a CentOS VM that only has one virtual HD. Strangely enough, this is more obtuse than it really should be!

Note: this would be normally be completely unnecessary if you allocate enough space when creating the VM, but sometimes that’s just not an option.

Warning: you cannot expand the disk of a VM with snapshots!

In general, you have two options for adding drive space:

  1. Make the existing VM HD larger.
  2. Add another VM HD.

I’ll cover option one here, since this makes things somewhat easier because you’re not adding additional virtual hardware.
Continue reading