Ticket #5335 (new defect)

Opened 6 years ago

When running a VM, Hard Disks should be opened ShareMode=0 to prevent other processes writing to them

Reported by: MarkCranness Owned by:
Priority: major Component: other
Version: VirtualBox 3.0.8 Keywords:
Cc: Guest type: other
Host type: other


While a VM is running, the Hard Disk file (VDI) is opened in a mode that allows shared read-write by other processes. The hard disk files should be opened in locked/exclusive write/no write sharing mode to ensure safe access.

e.g. In Windows, while a VM is running, the following test C code succesfully opens the VDI for writing (but should be blocked):


Existing behaviour of allowing other processes write access allows another VM on a remote PC to boot a VDI on a network share, resulting in two VMs having concurrent access to the VDI which causes a BSOD. Instead an error message prevent starting of the second remote VM. See  Windows XP Guest BSOD

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use