VirtualBox

Opened 6 years ago

Closed 6 years ago

#18177 closed enhancement (fixed)

GUI: Create new disk should round to sector size (divisible by 512) -> fixed in 6.0.6

Reported by: Socratis Owned by:
Component: other Version: VirtualBox 5.2.22
Keywords: VERR_VD_INVALID_SIZE, sector boundary, VDI creation Cc:
Guest type: all Host type: all

Description

Create a new VM. When creating the matching VDI, the slider and the numeric control for the file size allow you to select any number. In many cases where a decimal number is used (27.87 GB for example), the VDI creation fails with:

Could not create the medium storage unit '/Users/Shared/VirtualBox/Machines/1/1.vdi'.

VD: The given disk size 29925184634 is not aligned on a sector boundary (512 bytes) (VERR_VD_INVALID_SIZE).


which is true; 29925184634 is not evenly divisible by 512 (29925184634/512=58447626.23828125).

But this can be confusing for a new user that doesn't know what 512 or sector stands for. It would be nice if the GUI would round the decimal number to the closest number that's divisible with 512. You could have it "stick" the values in the slider, and/or round them in the numeric control.

Change History (4)

comment:2 by gombara, 6 years ago

This has been addressed and the fix will be available in the next release.

comment:3 by Socratis, 6 years ago

Thanks @gombara for such a swift fix!

comment:4 by Michael Thayer, 6 years ago

Resolution: fixed
Status: newclosed
Summary: GUI: Create new disk should round to sector size (divisible by 512)GUI: Create new disk should round to sector size (divisible by 512) -> fixed in 6.0.6
Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette