-
Download the gParted .iso http://gparted.org/download.php
-
vagrant halt your machine
-
Open vmware fusion, go to machine settings, select the disk drive and point it to the gParted .iso
-
In machine settings, change your disk size to whatever you want
-
Save settings, boot the machine
-
Quickly press f2 to bring up the bios menu. Go to boot options, and move the cd drive to the top. Save settings and exit bios menu
-
Let gParted boot. Choose your language, and choose the 0th option when it asks about using X.
-
Once the gParted GUI starts, click the gParted icon. Select your disk, and increase the size to fill all the free space you added in vmware fusion.
-
Apply changes in gParted, and shut down the vm from the vmware fusion menu.
-
Completely close vmware fusion
-
vagrant up; vagrant ssh
-
Now do a df -h and you'll see your space isn't there. Find the name of the volume you wish to increase, mine was /dev/mapper/centos-root
-
Now run a command like this, where you replace '+25G' with - sudo lvextend -L +43G /dev/mapper/centos-root
-
Then run sudo xfs_growfs mine was /dev/mapper/centos-root
Created
October 21, 2015 23:23
-
-
Save dzoba/8908418ff9604dd2319b to your computer and use it in GitHub Desktop.
Updating Vagrant Disk Size
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment