VirtualBox

Ticket #17010 (closed defect: fixed)

Opened 3 months ago

Last modified 2 months ago

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

Reported by: cerig Owned by:
Priority: critical 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

comment:1 Changed 3 months ago by aeichner

  • Summary changed from Don't work option --variant Fixed on 32bit Linux host to Don'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 Changed 3 months ago by cerig

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 3 months ago by cerig (previous) (diff)

comment:3 Changed 3 months ago by frank

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

comment:4 Changed 3 months ago by duanewhitty

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 Changed 2 months ago by michael

  • Status changed from new to closed
  • Resolution set to fixed
  • Summary changed from Don't work option --variant Fixed on 32bit Linux host => fixed in SVN/next maintenance to Don't work option --variant Fixed on 32bit Linux host => fixed in 5.1.28
Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use