Moved VM

Discussions about using Windows guests in VirtualBox.
Post Reply
ERB01
Posts: 1
Joined: 22. Sep 2021, 13:54

Moved VM

Post by ERB01 »

Hi,

I moved two VM's (CentOS & Win2016) to an external drive to temporarily make some space on my laptop. The CentOS VM works when starting from the external drive but the Windows 2016 VM does not and I get the following error:

Failed to open a session for the virtual machine 2016-Oktaice.

Could not open the medium 'D:\VirtualBox\2016-Oktaice\2016-Oktaice\2016-Oktaice.vdi'.

VD: error VERR_PATH_NOT_FOUND opening image file 'D:\VirtualBox\2016-Oktaice\2016-Oktaice\2016-Oktaice.vdi' (VERR_PATH_NOT_FOUND).

Result Code: E_FAIL (0x80004005)
Component: MediumWrap
Interface: IMedium {ad47ad09-787b-44ab-b343-a082a3f2dfb1}


I have move the Windows VM back to my laptop but I still get the same error.

Has anyone come across this before? Has anyone be able to fix this with out having to rebuild the virtual machine?

Many thanks for any help and suggestions in advance.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Moved VM

Post by scottgus1 »

ERB01 wrote:VERR_PATH_NOT_FOUND opening image file 'D:\VirtualBox\2016-Oktaice\2016-Oktaice\2016-Oktaice.vdi'
This means the file "2016-Oktaice.vdi" was not found in "D:\VirtualBox\2016-Oktaice\2016-Oktaice\". :lol:

Apparently all the moving about didn't put things where Virtualbox is programmed to look for them. Find "2016-Oktaice.vdi" and put it back in "D:\VirtualBox\2016-Oktaice\2016-Oktaice\", then the VM will start, assuming further misplacements haven't happened.

If you want to move a VM and have it still work, right-click the VM in Virtualbox's VM list and choose Move. Also see the File menu's Virtual Media Manager, Move command, for moving a drive file that is not in the VM folder. VMs and drives moved with these Move commands don't get lost by Virtualbox, as long as no host OS errors occur during the Move.
Post Reply