To increase the VDI file size in Linux
1) click on Settings--> Storage and click on add harddisk
add a new harddisk with the required size (choose dynamic expanding storage)
2) Create the clone:
Go to the terminal and run the below command with original HDD and newly added HDD path.
sudo VBoxManage clonehd old.vdi new-clone.vdi --existing
3) This will take few minutes depends on your old HDD size.
Once done go to tVirtual Box Settings--> Storage and remove the old.vdi and new.vdi both and only add new.vdi back again.
4) once done login to the server using the new cloned server and go to disk management and click extend volume to extend it.
It will increase the space.
Thanks
1) click on Settings--> Storage and click on add harddisk
add a new harddisk with the required size (choose dynamic expanding storage)
2) Create the clone:
Go to the terminal and run the below command with original HDD and newly added HDD path.
sudo VBoxManage clonehd old.vdi new-clone.vdi --existing
3) This will take few minutes depends on your old HDD size.
Once done go to tVirtual Box Settings--> Storage and remove the old.vdi and new.vdi both and only add new.vdi back again.
4) once done login to the server using the new cloned server and go to disk management and click extend volume to extend it.
It will increase the space.
Thanks