VirtualBox

Opened 7 years ago

Closed 7 years ago

#17010 closed defect (fixed)

Don't work option --variant Fixed on 32bit Linux host => fixed in 5.1.28

Reported by: cerig Owned by:
Component: virtual disk Version: VirtualBox 5.1.26
Keywords: Fixed, Static, Variant Cc:
Guest type: Linux Host type: Linux

Description

=HOST=

OS: Debian 9 i686 GNU/Linux
FS: ext4 or xfs
user: root

# VBoxManage createmedium disk --filename /mnt/data/test.vdi --size 1024 --format VDI --variant Fixed

0%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage: error: Failed to create medium
VBoxManage: error: Could not create the medium storage unit '/mnt/data/test.vdi'.
VBoxManage: error: VDI: setting image size failed for '/mnt/data/test.vdi' (VERR_INVALID_PARAMETER)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium
VBoxManage: error: Context: "RTEXITCODE handleCreateMedium(HandlerArg*)" at line 450 of file VBoxManageDisk.cpp

Used util fallocate from utils-linux - works!
# fallocate -l 1G /mnt/data/test.bin

on Debian 9 x86_64 GNU/Linux - WORKS fine!!!

P.S.:

  • also tried on Gentoo x32 - don't work
  • it looks like it belongs to the entire branch 5.1.x, when there
    fallocate support (RTFileSetAllocationSize)

Change History (5)

comment:1 by aeichner, 7 years ago

Summary: Don't work option --variant Fixed on 32bit Linux hostDon't work option --variant Fixed on 32bit Linux host => fixed in SVN/next maintenance

Thanks for the report, should be fixed in the next maintenance release. Please try the latest 5.1.x build from here.

comment:2 by cerig, 7 years ago

Tried 5.1.27-117538 and 5.2.0 BETA2... FIXED!
Thanks a lot! :)

P.S.: It seems, these tickets #16563 #16464 can be closed :)

Last edited 7 years ago by cerig (previous) (diff)

comment:3 by Frank Mehnert, 7 years ago

Thank you for the feedback and for pointing to relevant other tickets!

comment:4 by duanewhitty, 7 years ago

I just installed test release VirtualBox-5.1.27-117558-Linux_x86 and can confirm that after installation I was able to create a 10 GB fixed hard disk.

Operating System: $ lsb_release -a

Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty

$ uname -a Linux alice 4.4.0-91-generic #114~14.04.1-Ubuntu SMP Wed Aug 9 08:48:24 UTC 2017 i686 i686 i686 GNU/Linux

comment:5 by Michael Thayer, 7 years ago

Resolution: fixed
Status: newclosed
Summary: Don't work option --variant Fixed on 32bit Linux host => fixed in SVN/next maintenanceDon't work option --variant Fixed on 32bit Linux host => fixed in 5.1.28
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use