Open grossmj opened 5 years ago
Every time I needed to expand the GNS3 VM storage size in the past, I could never properly unmount the device while GNS3 VM was running. As I result I could not modify the partition size.
The only easy solution for me is to mount Live Ubuntu ISO into GNS3 VM, and use GParted GUI from there to expand the partition.
@grossmj @SairusCZ You could use the following sequence of commands to resize the disk
sudo service gns3 stop
sudo service docker stop
sudo umount /dev/sdb1
sudo parted /dev/sdb resizepart 1 100%
sudo umount /dev/sdb1
sudo e2fsck -f /dev/sdb1
sudo resize2fs /dev/sdb1
sudo e2fsck -f /dev/sdb1
sudo mount /opt
df -h
Could be based on vmware-vdiskmanager for VMware or VBoxManage for VirtualBox.
https://www.cyberciti.biz/tips/howto-resize-vmware-virtual-harddisk-size.html