![]() # fdisk /dev/sdb # <- The extra disk, just attached to be resized Assumes that you only have one partition and possibly swap. NOW DO THE RESIZE (instantanious): :/datadisk/VirtualBox VMs/TestInception 64 bit$ VBoxManage modifyhd -resize 8192 TestInception\ 64\ bit-cloned.vdi ![]() VBoxManage: error: Resize hard disk operation for this format is not implemented yet!ĭAMN, "fixed-size" DOESN'T WORK! 'clonehd' to the rescue, as that leaves a 'dynamically allocated' cloned disk: :/datadisk/VirtualBox VMs/TestInception 64 bit$ VBoxManage clonehd TestInception\ 64\ bit.vdi TestInception\ 64\ bit-cloned.vdiĠ%.10%.20%.30%.40%.50%.60%.70%.80%.90%.100%Ĭlone hard disk created in format 'VDI'. Try the resize again: :~/VirtualBox VMs/TestInception 64 bit$ VBoxManage modifyhd TestInception\ 64\ bit.vdi -resize 8192 ![]() :~/VirtualBox VMs/TestInception 64 bit$ VBoxManage list hdds Remove/delete the disk from the VirtualBox disk list ("closemedium"): :~/VirtualBox VMs/TestInception 64 bit$ VBoxManage closemedium disk 6cd99209-e4db-4178-a6c2-53f9581b1fad Location: /home/virt_box/VirtualBox VMs/TestInception 64 bit/TestInception 64 bit.vdi Location: /home/virt_box/VirtualBox VMs/TestInception 32 bit/TestInception.vdi VBoxManage: error: Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, enmAccessMode, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 178 of file VBoxManageDisk.cppĪh, the disk is still "in the system": :~/VirtualBox VMs/TestInception 64 bit$ VBoxManage list hdds VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBox, interface IVirtualBox, callee nsISupports VBoxManage: error: Cannot register the hard disk '/media/data/winxp_vm/wim.vdi' already exists The suggestion below gives this error :/media/data/winxp_vm$ VBoxManage modifyhd wim.vdi -resize 20000 Is there an easy way to increase it to, say, 20 GB? I can't see any obvious option in VirtualBox settings. I have run out of space on my WinXP virtual machine, which I only gave 10 GB space for when I created it.
0 Comments
Leave a Reply. |