Page 1 of 1

CreateHD Size

Posted: 14. Sep 2020, 08:10
by millansoft
Hello,

I´m using the following cmd in a bat file: "C:\Program Files\Oracle\VirtualBox\VBoxManage" createhd --filename output.vdi --size 14500 --format VDI --variant Standard

Is there any way to specify the --size in bytes, instead megabytes?

Thanks.

Re: CreateHD Size

Posted: 14. Sep 2020, 11:01
by mpack
What's wrong with looking at the user manual?
User manual s8.21 wrote: VBoxManage createmedium [disk|dvd|floppy] --filename <filename>
[--size <megabytes>|--sizebyte <bytes>]
[--diffparent <uuid>|<filename>
[--format VDI|VMDK|VHD] (default: VDI)
[--variant Standard,Fixed,Split2G,Stream,ESX]
Note however that a VDI is always an integral number of 1MB blocks, so I'm not sure why you would want to use bytes to express the size.