Page 1 of 1

modifyhd - failed to work (without snapshot)

Posted: 3. Jan 2016, 02:42
by moreira
Hi,

My virtual box version : 5.0.12 r104815, running on Windows 10.

When I create my VDI, I don't have enough disk space so I just allocate 50gb for it. Now, I want to expand to 120gb but run into error.
I managed to do it in the past but not sure why I got this error.

C:\Program Files\Oracle\VirtualBox>vboxmanage modifyhd "G:\VirtualBox\Temp\Windows 2008R2 x64\Windows 2008R2 x64.vdi" --resize 1200000
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage.exe: error: Resize medium operation for this format is not implemented yet!

Any suggestions on how to resolve it ?

Thanks ...
Name: Windows 2008R2 x64
Groups: /
Guest OS: Windows 2008 (64-bit)
UUID: 4c570aaa-8c53-4090-b008-ebe6857e271e
Config file: G:\VirtualBox\Temp\Windows 2008R2 x64\Windows 2008R2 x64.vbox
Snapshot folder: G:\VirtualBox\Temp\Windows 2008R2 x64\Snapshots
Log folder: G:\VirtualBox\Temp\Windows 2008R2 x64\Logs
Hardware UUID: 4c570aaa-8c53-4090-b008-ebe6857e271e
Memory size: 10947MB
Page Fusion: off
VRAM size: 27MB
CPU exec cap: 100%
HPET: off
Chipset: piix3
Firmware: BIOS
Number of CPUs: 1
PAE: off
Long Mode: on
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode: message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI: on
IOAPIC: on
Time offset: 0ms
RTC: local time
Hardw. virt.ext: on
Nested Paging: on
Large Pages: on
VT-x VPID: on
VT-x unr. exec.: on
Paravirt. Provider: Default
State: powered off (since 2016-01-02T01:55:24.000000000)
Monitor count: 1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration:
Autostart Enabled: off
Autostart Delay: 0
Default Frontend:
Storage Controller Name (0): SATA
Storage Controller Type (0): IntelAhci
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0): 30
Storage Controller Port Count (0): 2
Storage Controller Bootable (0): on
SATA (0, 0): G:\VirtualBox\Temp\Windows 2008R2 x64\Windows 2008R2 x64.vdi (UUID: 6624a9dc-6fa1-468c-9398-64a66e5541f7)
NIC 1: MAC: 080027CBAE50, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 1 Settings: MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 2: disabled
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
Pointing Device: USB Tablet
Keyboard Device: PS/2 Keyboard
UART 1: disabled
UART 2: disabled
LPT 1: disabled
LPT 2: disabled
Audio: enabled (Driver: DSOUND, Controller: HDA, Codec: STAC9221)
Clipboard Mode: disabled
Drag and drop Mode: disabled
VRDE: disabled
USB: enabled
EHCI: disabled
XHCI: disabled

USB Device Filters:

<none>

Bandwidth groups: <none>

Shared folders:

Name: 'Softwares', Host path: 'F:\Data\Softwares' (machine mapping), readonly

Video capturing: not active
Capture screens: 0
Capture file: G:\VirtualBox\Temp\Windows 2008R2 x64\Windows 2008R2 x64.webm
Capture dimensions: 1024x768
Capture rate: 512 kbps
Capture FPS: 25

Guest:

Configured memory balloon size: 0 MB

Re: modifyhd - failed to work (without snapshot)

Posted: 3. Jan 2016, 05:19
by loukingjr
Try 120000. 1200000 is 1200 GBs.

Re: modifyhd - failed to work (without snapshot)

Posted: 3. Jan 2016, 13:05
by mpack
moreira wrote: C:\Program Files\Oracle\VirtualBox>vboxmanage modifyhd "G:\VirtualBox\Temp\Windows 2008R2 x64\Windows 2008R2 x64.vdi" --resize 1200000
0%...
Progress state: VBOX_E_NOT_SUPPORTED
VBoxManage.exe: error: Resize medium operation for this format is not implemented yet!
Is this a fixed size disk? If so then you can't resize it using VBoxManage. You'd have to use CloneVDI, which will create a dynamic (not fixed size) clone, as it should be.

Re: modifyhd - failed to work (without snapshot)

Posted: 4. Jan 2016, 16:11
by moreira
mpack wrote:Is this a fixed size disk? If so then you can't resize it using VBoxManage. You'd have to use CloneVDI, which will create a dynamic (not fixed size) clone, as it should be.
This one works like magic. I managed to use CloneVDI to extend my disk. It is fixed size.

loukingjr wrote:Try 120000. 1200000 is 1200 GBs.
Tried changing the number but no luck getting it done.




Thanks for helping ...

Re: modifyhd - failed to work (without snapshot)

Posted: 4. Jan 2016, 16:14
by loukingjr
I was just letting you know you were trying to create a 1200GB drive. :(

Re: modifyhd - failed to work (without snapshot)

Posted: 4. Jan 2016, 17:33
by socratis
moreira wrote:It is fixed size.
That's one case where reading the user manual would have taken 1/2 the time that it took you to register, post the question, read the answer and reply (and again)...
User Manual, [url=http://www.virtualbox.org/manual/ch08.html#vboxmanage-modifyvdi]Ch. 8.23[/url] wrote:The --resize x option ... currently works only for VDI and VHD formats, and only for the dynamically allocated variants...