VBOX_E_IPRT_ERROR 0x80BB0005 when cloning a vm that is in savestate

Discussions related to using VirtualBox on Linux hosts.

VBOX_E_IPRT_ERROR 0x80BB0005 when cloning a vm that is in savestate

Postby Guideloom » 2. Jul 2020, 19:47

I was having a devil of a time with 5.2.42 with seemingly random guest crashes when the guest resumes from save state (crash when resuming from "savestate" (invalid opcode: 0000)).

In hoping for a fix in the "latest" version, I upgraded to 6.1.10, I get a very different error on most of my guests.

This is entirely reproducable on the systems it fails on. I've attached the showvminfo and vbox file of the "t1" guest.
virtualbox version 6.1.10
Code: Select all   Expand viewCollapse view
[vbox@vm001 vms]$ vboxmanage --version
6.1.10r138449

Change machine to "savestate"
Code: Select all   Expand viewCollapse view
[vbox@vm001 vms]$ vboxmanage controlvm t1 savestate
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

Try to clone the machine (note this is all on local disk. No NFS/SMB mounts)
Code: Select all   Expand viewCollapse view
[vbox@vm001 vms]$ vboxmanage clonevm t1 --mode all --basefolder /mnt/lv001-r0/backup/vms --name t1-20200702-112825-vbbu
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...
Progress state: VBOX_E_IPRT_ERROR
VBoxManage: error: Clone VM failed
VBoxManage: error: Code VBOX_E_IPRT_ERROR (0x80BB0005) - Runtime subsystem error (extended info not available)
VBoxManage: error: Context: "RTEXITCODE handleCloneVM(HandlerArg*)" at line 610 of file VBoxManageMisc.cpp

As you can see, the clone fails with "VBOX_E_IPRT_ERROR (0x80BB0005)".

Now we do the same thing, but poweroff the vm before doing the clone.
Let's resume the VM from the savestate above.
Code: Select all   Expand viewCollapse view
[vbox@vm001 vms]$ vboxmanage startvm t1 --type headless
Waiting for VM "t1" to power on...
VM "t1" has been successfully started.

Poweroff the VM
Code: Select all   Expand viewCollapse view
[1803 vbox@scvm001 vms]$ vboxmanage controlvm t1 poweroff       
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%

and rerun the clone...
Code: Select all   Expand viewCollapse view
[vbox@vm001 vms]$ vboxmanage clonevm t1 --mode all --basefolder /mnt/lv001-r0/backup/vms --name t1-20200702-112825-vbbu
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Machine has been successfully cloned as "t1-20200702-112825-vbbu"

The clone runs sucessfully to completion.
This is entirely reproducable.
Any insights?

Update: Virtualbox ticket: https://www.virtualbox.org/ticket/19696
Attachments
showvminfo.txt
(5.91 KiB) Downloaded 12 times
t1.vbox.txt
(3.25 KiB) Downloaded 7 times
Last edited by Guideloom on 2. Jul 2020, 20:25, edited 1 time in total.
Guideloom
 
Posts: 26
Joined: 5. Sep 2018, 18:42

Re: VBOX_E_IPRT_ERROR 0x80BB0005 when cloning a vm that is in savestate

Postby mpack » 2. Jul 2020, 20:01

"Save state" information has never been guaranteed to be portable between versions. It is liable crash, just as if you hibernated your laptop and then changed the motherboard.

If you can't remember to shut down VMs before upgrading, which would be me too, then you should probably stop using the feature entirely - which is what I did (in fact I never used it).
mpack
Site Moderator
 
Posts: 37018
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: VBOX_E_IPRT_ERROR 0x80BB0005 when cloning a vm that is in savestate

Postby Guideloom » 2. Jul 2020, 20:08

Every VM was shutdown (not savestated) before the upgrade.

Steps to upgrade that I took. I'm using the offical virtualbox repos.
- Logon to EVERY VM and do a controlled shutdown.
- apt remove virtualbox-5.2
- reboot host server
- apt install virtualbox-6.1
- restart every VM
- confirm all VMs running
- shutdown every VM again
- reboot host server to confirm autostart works on all VMs set for autostart
Guideloom
 
Posts: 26
Joined: 5. Sep 2018, 18:42


Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 17 guests