Skip to content

[Bug]: Switching between snapshots #544

@gskoczylas

Description

@gskoczylas

Version

7.2.6

Host OS Type

Windows

Host OS name + version

Windows 11 Pro Build 26200.7623

Host Architecture

x86

Guest OS Type

Windows

Guest Architecture

x86

Guest OS name + version

Windows 11 Pro

Component

Snapshots

What happened?

I often use VBox to test software. From time to time, I need to switch to a different snapshot, but I want to save the current state of the VM. If I first create a snapshot of the current state of the VM and then switch to another snapshot, VBox does this without any problems. However, if I want to create a snapshot of the current state of the VM and switch to another snapshot in one step, VBox will only perform the first step (create a snapshot), but instead of restoring the state from the specified snapshot, it displays the following error.

VM Name: Testing
Snapshot Name: Szwecja

Cannot delete the current state of the running machine (machine state: Snapshotting).
Result Code:
VBOX_E_INVALID_VM_STATE (0x80bb0002)
Component:
SessionMachine
Interface:
IMachine {e36a5081-a82a-40bd-9e4e-42a44d6ce50f}

Despite this message, I can now click Restore again and restore this snapshot without any problems.

How can we reproduce this?

  1. Create at least two snapshots for a VM. Ensure that the current state of the VM differs from the state saved in the snapshot, for example, by running the VM for some time.
  2. In the main VBox window, select another snapshot and click the Restore button.
  3. Ensure that the Create a snapshot of the current machine state option is selected in the dialog box.
  4. Click the Restore button.
  5. You will be asked for the name of the snapshot you are creating.
  • Expected outcome: a snapshot of the current state of the VM was created and then another snapshot was restored
  • Current outcome: A snapshot of the current state of the VM was created, but then VBox displayed an error and other snapshot was not restored.

The problem concerns the operation of the main VBox window, i.e. Oracle VirtualBox Manager.

HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter-Dhcpd.log
selectorwindow.log
VBoxSVC.log

Did you upload all of your necessary log files, screenshots, etc.?

  • Yes, I've uploaded all pertinent files to this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions