How to dynamically modify the disk size of VirtualBox when downloading the Android source code today, the virtual machine suddenly says that the disk is not enough. It was really big. When creating this virtual machine, it was directly built based on the recommended size, I did not expect the Android source code to be so space-consuming. No way. You can't create a new disk. You need to create a new disk. Google, find the following method to dynamically modify the disk size of the virtual machine. A dynamic modification is to first create a new disk of the expected size, then clone the content of the existing disk to the new disk, and then replace the original disk with the new disk. Www.2cto.com VBoxManage createhd-filename new-file.vdi-size-in-MB-rememberVBoxManage clonehd oldfile newfile-existing to VirtualBox GUI, replace the Virtual Machine hard disk. then start the system and use DiskUtility to format the new space and mount the volume. in fact, we can use the following command to complete: 1 VBoxManage createhd-filename D: \ VirtualPC \ Ubuntu120.vdi-size 1200000-remember2 VBoxManage clonehe D: \ VirtualPC \ Ubuntu. vdi D: \ VirtualPC \ Ubuntu120.vdi-existing
VBoxManage.exe is in the c: \ Program Files \ Oracle \ VirtualBox directory. We can add this directory to the system environment variable (I. e. PATH) www.2cto.com PATH = % PATH %; c: \ Program Files \ Oracle \ VirtualBox references: www.2cto.com http://serverfault.com/questions/365423/how-to-run-vboxmanage-exehttp://www.kiwwito.com/article/expanding-virtualbox-dynamic-hard-disks