Why can not unregister machine?

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
aaronchen2k
Posts: 4
Joined: 7. Sep 2021, 08:45

Why can not unregister machine?

Post by aaronchen2k »

2021/09/07 18:27:24 session.UnlockMachine error: VirtualBox error: rc=0x8000ffff The session is not locked (session state: Unlocked) (0x8000ffff)
2021/09/07 18:27:29 virtualbox.IMachineunregister error: VirtualBox error: rc=0x80bb0007 Cannot unregister the machine 'win10-01' while it is locked (0x80bb0007)
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Why can not unregister machine?

Post by scottgus1 »

I have never played with the API. But I remember reading from other topics that "session locked" errors are used when the VM is still running or another VM depends on the locked VM, such as if it is a base VM for a linked clone.
aaronchen2k
Posts: 4
Joined: 7. Sep 2021, 08:45

Re: Why can not unregister machine?

Post by aaronchen2k »

scottgus1 wrote:I have never played with the API. But I remember reading from other topics that "session locked" errors are used when the VM is still running or another VM depends on the locked VM, such as if it is a base VM for a linked clone.
It works well now, thanks.
Post Reply