GNS3 / gns3-vm

FOR DEVELOPMENT ONLY GO TO GNS3.COM FOR THE VM WITH GNS3 INCLUDED
http://www.gns3.com
GNU General Public License v3.0
88 stars 31 forks source link

Provide an easier way to resize the project disk #121

Open grossmj opened 5 years ago

grossmj commented 5 years ago

Could be based on vmware-vdiskmanager for VMware or VBoxManage for VirtualBox.

https://www.cyberciti.biz/tips/howto-resize-vmware-virtual-harddisk-size.html

bpozdena commented 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.

abhi1693 commented 4 years ago

@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