I have three VirtualBox VMs on my Windows 10 host, one Linux Mint 17.3 and two Ubuntu 14.04.4. Often when I start any of the VMs I get the following error message at launch:

Failed to open a session for the virtual machine Mint.


Failed to open image 'D:\OneDrive\VMs\Mint.vdi' for writing due to wrong permissions (VERR_VD_IMAGE_READ_ONLY).

Failed to attach driver below us! Image is read-only.

AHCI: Failed to attach drive to Port0

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

This is temporarily solved by using the VirtualBox installer to repair the install. Though the problem occurs again after a few launches of VMs.

What else can I do?


Having the VM files in OneDrive folder can cause this error. Temporarily stopping OneDrive when opening VMs solves this issue.


Sometime this error appears in case something wrong with VB drivers themselves.

If you can't start ANY virtual machine try to reinstall/upgrade VirtualBox.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.