How to resize a virtual machine hard disk (Oracle VM VirtualBox) VBoxManage modifyhd <uuid> | <filename> [-- resize <megabytes> | -- resizebyte <bytes>] -- resize can be used to modify the size of an existing hard disk image file, it only affects the logical size of the virtual hard disk.
It does not affect the size of the physical hard disk, and it is only valid for dynamically allocated VDI and VHD format images.
For example, if you have created a 10 GB disk and want to expand it to 20 GB, run the -- resize 20480 command.
To increase the capacity by 10 Gb, perform the following operations:
First you need to know the uuid of the image to Increase the capacity, you can use the command VBoxManage list hdds results are as follows UUID: b4dfa481-854f-45c7-a54d-85a08f7c9204Parent UUID: base www.2cto.com Format: VDILocation: F: \ Sun VirtualBox \ Windows XP \ xp. vdiState: createdType: normalUsage: Windows XP (UUID: 26dc0f15-43c8-454b-8df9-22cc8e2fa137: b4dfa481-854f-45c7-a54d-85a08f7c9204 then use the command VBoxManage modifyhd b4dfa481-854f-45c7-a54d-8 5a08f7c9204 -- resize 20480 after the operation is successful the virtual hard disk is increased by 10G, but note that this 10G space has not been allocated,
Further allocation is required to meet requirements for use in the system. From Interconnected Space