VirtualBox

Opened 16 years ago

Closed 14 years ago

#2034 closed defect (fixed)

Warn about file size limits

Reported by: Michal Suchanek Owned by:
Component: virtual disk Version: VirtualBox 3.0.0
Keywords: Cc:
Guest type: other Host type: other

Description

When the disk image is stored on a fat filesystem it may easily overflow the 4G file size limit.

When that happens the VM is paused and the contents of the image is destroyed. The image is shown as having only a few megabytes in disk image manager. Using a 5G resizable image.

Change History (4)

comment:1 by Frank Mehnert, 16 years ago

Component: othervirtual disk

This bug is not easy to fix. Actually we are aware of this issue and would like to detect the maximum file size at VM startup. The reason for not doing this is that there is absolutely no trusted API call for determining this limit. On Linux one can do seek to check if the file pointer can be moved beyond 4GB. But this does not work for NFS or smb shares and neither does this work for Windows hosts.

comment:2 by Frank Mehnert, 15 years ago

Summary: poor handling of file size limitationsWarn about file size limits
Version: VirtualBox 1.6.2VirtualBox 3.0.0

comment:3 by Joe, 15 years ago

Isn't it possible to control this at vdi creation time, or even during openmedium (in case user moved the vdi)?

It's possible to check the filesystem of the proposed path isn't it? Eg in Win32 the GetVolumeInformation api call. And then, if it's FAT32 and the size is 4GB or greater, raise an error?

comment:4 by aeichner, 14 years ago

Resolution: fixed
Status: newclosed

3.2.6 adds a size check and warns the user if the maximum size of the VDI exceeds the limit of the filesystem.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use