Last week my VMWare virtual machine ran out of disk space - I’d only given it 8gb when i created it so it was my own fault. I had all sorts of trouble (basically me being a moron) expanding it so I thought I’d add it here for prosperity.
I ended up creating a duplicate of the existing virtual machine disk so i had two bootable machines - I used the vmware-vdiskexpander.exe to convert and expand the virtual disk to the new larger size. I then created a new virtual machine pointing to the OLD virtual machine disk but attached the new large virtual machine disk as a slave. Once booted into the old disk I used diskpart.exe (ships with Windows) to expand the disk to make full use of the space - if you look in disk manager you’d see unallocated space where the disk was expanded but the partition was expanded to use it. Once expanded, I attached the new expanded disk back as the primary and rebooted - deleted the temporary VM attached to the old disk - Job done, all without opening cases, connecting up disks!
Recent Comments