Reference:
Resizing a VirtualBox Disk Image (. vmdk) on a Mac
Capacity expansion in MAC environments. VMDK mirrored capacities
When the virtual machine is installed, the original VMDK mirror capacity is only 20G, which occupies all the disk capacity (19.3G) during the experiment, and causes the virtual machines to lose power and not work;
There are several solutions, one is to re-install the virtual machine directly, this method is simple and rough but long time;
The second is by expanding the capacity of the. vmdk to increase memory by cloning the. Vmdk into a. vdi file, expanding the. vdi file, and finally converting it back to. VMDK:
# Clone the .vmdk image to a .vdi.vboxmanage clonehd "virtualdisk.vmdk" "new-virtualdisk.vdi" --format vdi# Resize the new .vdi image (30720 == 30 GB).vboxmanage modifyhd "new-virtualdisk.vdi" --resize 30720# Optional; switch back to a .vmdk.VBoxManage clonehd "cloned.vdi" "resized.vmdk" --format vmdk
Another approach is to refer to the second method in the literature, restart the virtual machine by Gparted.iso and modify the disk size, as follows: https://www.jeffgeerling.com/blogs/jeff-geerling/ Resizing-virtualbox-disk-image
2018.3
Capacity expansion in MAC environments. VMDK mirrored capacities