Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to reopen a project with a VM in the topology #3542

Open
Addefan opened this issue Nov 18, 2023 · 4 comments
Open

Unable to reopen a project with a VM in the topology #3542

Addefan opened this issue Nov 18, 2023 · 4 comments

Comments

@Addefan
Copy link

Addefan commented Nov 18, 2023

Describe the bug
Adding a virtual machine to the topology happens without problems. But when I close the project and then try to open it again, I can't open it, getting an error related to the UUID.

GNS3 version and operating system:

  • OS: Linux (Ubuntu 22.04)
  • GNS3 version: 2.2.44.1
  • No use of the GNS3 VM or remote server
  • VitrualBox version: 7.0.12

To Reproduce
Steps to reproduce the behavior:

  1. Create a new empty project
  2. Add a new VM to the topology
  3. Close GNS3
  4. Reopen the project
  5. See the error

Screenshots or videos
image

After adding to the topology:
image

After reopen project:
image

Unable.to.reopen.a.project.with.a.VM.in.the.topology.mp4

Additional context
Apparently, the problem does not depend on the OS: I installed GNS3 on Windows 11 and get exactly the same error. Perhaps this problem depends on the hardware?

@Addefan Addefan added the Bug label Nov 18, 2023
@grossmj
Copy link
Member

grossmj commented Feb 12, 2024

Do you have the same issue if you untick "Use as linked base VM" option in the template config?

Image

@Addefan
Copy link
Author

Addefan commented Feb 12, 2024

No, the issue only appears if the option is ticked.

@grossmj
Copy link
Member

grossmj commented Apr 23, 2024

When you open your project, do you see errors in the logs (~/.config/GNS3/2.2/gns3_server.log) or if you manually start the gns3server in the terminal, i.e. python -m gns3server --local? Thanks 👍

@Addefan
Copy link
Author

Addefan commented Apr 23, 2024

Yes, I see one message with the type ERROR:

2024-04-23 16:21:51 ERROR route.py:221 Node error detected: VirtualBoxError
Traceback (most recent call last):
  File "/usr/share/gns3/gns3-server/lib/python3.10/site-packages/gns3server/web/route.py", line 200, in control_schema
    await func(request, response)
  File "/usr/share/gns3/gns3-server/lib/python3.10/site-packages/gns3server/handlers/api/compute/virtualbox_handler.py", line 56, in create
    vm = await vbox_manager.create_node(request.json.pop("name"),
  File "/usr/share/gns3/gns3-server/lib/python3.10/site-packages/gns3server/compute/base_manager.py", line 259, in create_node
    await node.create()
  File "/usr/share/gns3/gns3-server/lib/python3.10/site-packages/gns3server/compute/virtualbox/virtualbox_vm.py", line 201, in create
    await self.manager.execute("registervm", [self._linked_vbox_file()])
  File "/usr/share/gns3/gns3-server/lib/python3.10/site-packages/gns3server/compute/virtualbox/__init__.py", line 132, in execute
    raise VirtualBoxError("VirtualBox has returned an error: {}".format(vboxmanage_error))
gns3server.compute.virtualbox.virtualbox_error.VirtualBoxError: VirtualBox has returned an error: VBoxManage: error: A differencing image of snapshot {5e05d38c-21ca-4fb6-a760-2bd3c6dfd3d2} could not be found. Could not find an open hard disk with UUID {8cb25dbf-cbc4-427c-9d8e-253972da554d}
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component SnapshotMachine, interface IMachine, callee nsISupports
VBoxManage: error: Context: "OpenMachine(Bstr(a->argv[0]).raw(), machine.asOutParam()))" at line 88 of file VBoxManageMisc.cpp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants