Recently i had to resize one my virtual disk on Oracle V BOX environment , thought to share the command used to resize the disk.
Command on VBOX is VBoxManage.exe
VBoxManage.exe modifyhd "file_path" --resize newsizeinMB
Example: To resize disk to 35200M
VBoxManage.exe modifyhd "C:\vmware-machines\Linux00001-02.vdi" --resize 35200
Few Thing learn
* you can extand the size of disk
* you can't reduce the disk size, even if its empty as its not supported VBOX_E_NOT_SUPPORTED
* you can't resize .vmdk disk, as its not supported VBOX_E_NOT_SUPPORTED
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe list hdds
UUID: a87912c8-c09d-47c7-b34f-b64bcec0235e
Parent UUID: base
State: created
Type: normal (base)
Location: C:\Users\acxxkkj2\VirtualBox VMs\Linux0001\Linux0001.vmdk
Storage format: VMDK
Capacity: 20480 MBytes
Encryption: disabled
UUID: 27802d35-b106-419b-a2c1-454ce4b3a838
Parent UUID: base
State: created
Type: normal (base)
Location: C:\vmware-machines\Linux00001.vmdk
Storage format: VMDK
Capacity: 20480 MBytes
Encryption: disabled
UUID: 811c45e4-46ec-4989-a9a1-f8a7fb2498b5
Parent UUID: base
State: created
Type: normal (base)
Location: C:\vmware-machines\Linux00001-02.vdi
Storage format: VDI
Capacity: 35200 MBytes
Encryption: disabled
No comments:
Post a Comment