GNS3 Server ESXi Disk Resize

My GNS3 server is running on ESXi and was running out of space. I was not able to create new projects, add devices to existing projects and some of devices would turn off.
The process to increase the disk size in ESXi is very simple, with no data loss to my projects.

Increase Disk Size in ESXi

Delete all snapshots first! If not a deceptive error of “Failed to reconfigure virtual machine GNS3. Invalid operation for device ‘3’” is presented.
The deleting of my snapshots took quite a long time. But completed with no errors.

Now that the snapshots have been deleted the disk size can be increased. A snapshot will be created after the disk has been resized in ESXi.

Take Snapshot

Now we can take a snapshot. This is made after the disk has been increased on the ESXi side, but before the disk is increased in Linux.

Start VM and Stop Services

Become root and stop running services

Unmount Disk and Expand Partition

First unmount the second hard disk, then use parted to expand the partition to the full size (100%).
It’s extremely important, that you use /dev/sdb in the parted command – NOT /dev/sdb1.

 May need to rerun umount again, as mine mounted after running parted. To check run mount -l

Expand File System within the Partition

Check the file system structure, expand the file system, check the structure again, mount /opt.
Once done and the file size has been confirmed. Reboot the GNS3 server and done!

Leave a Comment

Your email address will not be published. Required fields are marked *