Page 1 of 1

Move VM to a new PC

Posted: 27. Oct 2021, 18:39
by stawes
I have been running an small application developed for Windows XP using Virtualbox. Now it is time to move the VM to Virtualbox on another PC.
I got the information that it is just to move the VM to the new Virtualbox installation on the new PC.
I followed the information and doubble clicked the .vbox file on the new host.
The result was very positive and I could display the snapshots and select the last one.

However when starting the machine i got this error.
Failed to open a session for the virtual machine Windows XP Mode.

The VM session was closed before any attempt to power it on.

Result Code: E_FAIL (0x80004005)
Component: SessionMachine
Interface: ISession {c0447716-ff5a-4795-b57a-ecd5fffa18a4}

See the screenshot
What does that mean?

Re: Move VM to a new PC

Posted: 27. Oct 2021, 18:42
by mpack
Please provide a VM log file. Make sure the VM is fully shut down, then right click it in the manager UI. Select "Show Log" and save "VBox.log" (no other file) to a zip file. Attach the zip here.

Re: Move VM to a new PC

Posted: 27. Oct 2021, 20:06
by stawes
The file is very short.

Re: Move VM to a new PC

Posted: 27. Oct 2021, 22:03
by fth0
stawes wrote:The file is very short.
Well, less to read then. ;)

At least it tells that a saved-state file is missing. Generally speaking, a VM in a saved state is like a paused PC, and can usually only continue on the same (physical and virtual) hardware. If this is the only problem, the easy solution is to discard the saved-state by right-clicking on the VM in the VirtualBox Manager and selecting Discard Saved State..., and the more complex solution is to shut down the guest OS on your original VM before copying it anew. When you choose the easy solution, you only lose the content of the guest OS memory, not the content of the guest OS disks.

Re: Move VM to a new PC

Posted: 28. Oct 2021, 11:12
by stawes
The new host operating system is now 64 bit home edition and not 64bit Pro. Is the resultit likely to change if I upgrade to Pro?
New error message with current changed state:
Failed to open a session for the virtual machine Windows XP Mode.

Could not open the medium 'C:\KIT\XPMode\XPMode-write\VirtualXP.VHD'.

VD: error VERR_PATH_NOT_FOUND opening image file 'C:\KIT\XPMode\XPMode-write\VirtualXP.VHD' (VERR_PATH_NOT_FOUND).

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

Should I save a copy of the saved VM before shutting down the current VM so I can change back to the current workin VM?
I definitely dont want to get back to the state where I need to give the administrator password.