VirtualBox fails to attach driver when starting VM

0

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.

Details:

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.
(VERR_VD_IMAGE_READ_ONLY).

AHCI: Failed to attach drive to Port0
(VERR_VD_IMAGE_READ_ONLY).

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?

ubuntu
windows-10
virtualbox
virtual-machine
linux-mint
asked on Super User May 28, 2016 by Oskar Persson • edited May 28, 2016 by Oskar Persson

2 Answers

1

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

answered on Super User Jun 2, 2016 by Oskar Persson
0

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.

answered on Super User Jul 4, 2017 by Johny

User contributions licensed under CC BY-SA 3.0