Page 1 of 1

Failed to attach drive to port - verr_sharing_violation

Posted: 16. May 2016, 14:59
by Bilbo Baggins
Hi,

We have Windows 8 guest running on a Mac host.

When we try to open the VM we get this:

Failed to open a session for the virtual machine Windows 8.
AHCI: Failed to attach drive to Port1
VERR_SHARING_VIOLATION

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: ConsoleWrap
Interface: lConsole {872da645-4a9b-1727-bee2-5585105b9eed}

Can anyone shed light on what we should do?

Re: Failed to attach drive to port - verr_sharing_violation

Posted: 17. May 2016, 08:56
by socratis
In order to better understand the problem you need to submit some more information. Please read the following: Minimum information needed for assistance. As far as the "VBox.log.zip" goes, here's what you do:
  1. Start the VM. Not from a saved or suspended state. Clean start.
  2. Take the steps required to generate/observe the error.
  3. Record the error message. EXACTLY. Post a screenshot if you have to.
  4. Shut down the VM (if it hasn't aborted by itself). Not suspended, not paused. Shut down. If you can't shut it down by normal means, close the VM window and select "Power off".
  5. Right-click on the VM in the VirtualBox Manager.
  6. Select "Show Log..."
  7. Save it (just the first one), ZIP it and attach it in your response (see the "Upload attachment" at the bottom of the form).
Are you by any chance trying to access a hard drive/partition using RAW access?