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:
- Make the existing VM HD larger.
- 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