VirtualBox

Ticket #18177 (closed enhancement: fixed)

Opened 9 months ago

Last modified 5 months ago

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

comment:1 Changed 9 months ago by socratis

comment:2 Changed 9 months ago by gombara

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

comment:3 Changed 9 months ago by socratis

Thanks @gombara for such a swift fix!

comment:4 Changed 5 months ago by michael

  • Status changed from new to closed
  • Resolution set to fixed
  • Summary changed from GUI: Create new disk should round to sector size (divisible by 512) to 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.

www.oracle.com
ContactPrivacy policyTerms of Use