My computer is a Linux system and I have installed an xp system. Since the C disk is allocated only 7.99G space in the past, the C disk is prone to insufficient space and is now expanded to 4 GB, this is much more convenient.
First, go to the VM virtualBox in Linux.
Run the following command:
Clonehd -- format VDI win-xp-pro-sp3-disk1_1.vmdk win-xp-pro-sp3.vdi
The meaning of this sentence is to convert a virtual machine in the original vmdk format into a virtual machine in the vdi format. If it is a virtual machine in the vdi format, this can be omitted.
This step takes about several minutes, and then you can re-allocate the size:
Vboxmanage modifyhd win-xp-pro-sp3.vdi -- resize 12200
In this step, the size of resize is 12200 M, measured in megabytes and 11.9 GB. this size can be adjusted as needed. For example, to expand to 50 GB, change it to 51200.
The above two steps allocate more space to the virtual machine, but the size of the drive C needs to be attached to the allocated space. Here we use a tool and click here to download it, after the download, the main interface is as follows:
Here we can resize the size of the C disk. It is useful for testing! Before resize, you may need to drag the Unalocated Spase next to disk C and click resize to successfully resize the disk. At this point, the space of disk C becomes larger, you no longer have to uninstall this one.