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

GNS3 VM size #115

Open e1ext opened 5 years ago

e1ext commented 5 years ago

Hello,

Is there any way that I can clean up and optimize the size of disk2's gns3vm so i can get more space for projects? maybe such as clean up temporary files and so on. I used 200GB for the disk2, but after I explore using winscp, I saw kcore on /proc/ is eating 137GB. Can you give some advice to do maintenance on gns3vm disk?

Thank you

cristian-ciobanu commented 5 years ago

Kcore is a virtual file is does not take any space on the disk since it's part of the proc virtual system. You can safely ignore that file size. You can read about it here https://support.microfocus.com/kb/doc.php?id=7004153

e1ext commented 5 years ago

ok...thank you for the explanation, but is there any way to clean up unused or temporary files which can reduce GNS3 VM size?

grossmj commented 5 years ago

The problem is that you used all of the 200GB on disk2 and now you have no more space, right?

First you can expand the disk in VMware:

expand_disk

Then expand the partition & file system in the GNS3 VM itself by using the shell:

service gns3 stop
service docker stop
umount /dev/sdb1
parted resizepart /dev/sdb1 1 (check where to end using parted -l)
resize2fs -f /dev/sdb1

However, I agree we should make this easier or at least document that. Maybe even an option to compress all the projects?