CreateHD Size

Discussions related to using VirtualBox on Windows hosts.
Post Reply
millansoft
Posts: 1
Joined: 14. Sep 2020, 08:09

CreateHD Size

Post 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.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: CreateHD Size

Post 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.
Post Reply