VirtualBox

Opened 5 years ago

Closed 5 years ago

#18394 closed defect (wontfix)

Problem with USB Disk data coruption

Reported by: jkister Owned by:
Component: USB Version: VirtualBox 5.2.24
Keywords: Cc:
Guest type: Linux Host type: Windows

Description

Win10+VB 5.2.24 - I have an external usb disk mapped through to a Debian guest - mounted and being written to.

When I pause a guest, close->save state, or the host operating system goes to sleep, when the guest comes back online there is usually data corruption on the usb disk. the guest is using the disk with ext4 fs - and barrier=1 makes no difference.

if i stop the guest's disk usage and umount the disk before pause/save state, then start the guest again and remount - everything is always fine.

is there anything i can do to be able to pause/save state without the unmount & remount ?

Change History (1)

comment:1 by aeichner, 5 years ago

Resolution: wontfix
Status: newclosed

This is not a supported setup. When saving a VM state we detach all attached USB devices (with one exception being the emulated USB MSD which supports saving the state) and attach them afterwards again. The rationale behind this is that we can't guarantee the USB device being still in the exactly same state it was during the save state operation when the VM state is restored (typically when the VM is terminated all USB devices are handed back to the host OS which will reset it and load the appropriate host driver to communicate with the device).

You either have to resort unmount/remount or use the raw disk access feature of VirtualBox instead of passing through the USB MSD.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use