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

Windows 11, multipass unable to create snapshots. Fails with error message "snapshot failed: Failure while looking for snapshot name" #3918

Open
swamyrajamohan opened this issue Feb 5, 2025 · 1 comment

Comments

@swamyrajamohan
Copy link

Describe the bug
Windows 11, multipass unable to create snapshots. Fails with error message "snapshot failed: Failure while looking for snapshot name"
Following is the verbose logs for

multipass snapshot  "mpass-test-ub2404" --name "test" -vvvv
[2025-02-05T01:31:10.215] [trace] [mpass-test-ub2404] [15208] Cmdlet: 'Get-VM -Name mpass-test-ub2404 | Select-Object -ExpandProperty State'
[2025-02-05T01:31:10.368] [trace] [mpass-test-ub2404] Off
[2025-02-05T01:31:10.368] [trace] [mpass-test-ub2404] [15208] Output: Off
[2025-02-05T01:31:10.368] [trace] [mpass-test-ub2404] [15208] Cmdlet exit status is 'true'
[2025-02-05T01:31:10.368] [debug] [mpass-test-ub2404] [15208] Cmdlet: 'Get-VMCheckpoint -VMName mpass-test-ub2404 -Name "@s1"'
[2025-02-05T01:31:10.960] [warning] [powershell.exe] Get-VMCheckpoint : Unable to find a snapshot matching the given criteria.

[2025-02-05T01:31:10.967] [warning] [powershell.exe] At line:1 char:1
+ Get-VMCheckpoint -VMName mpass-test-ub2404 -Name "@s1"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (:) [Get-VMSnapshot], VirtualizationException
    + FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.GetVMSnapshot


[2025-02-05T01:31:10.991] [trace] [mpass-test-ub2404]
[2025-02-05T01:31:10.997] [warning] [mpass-test-ub2404] [15208] stderr: Get-VMCheckpoint : Unable to find a snapshot matching the given criteria.
At line:1 char:1
+ Get-VMCheckpoint -VMName mpass-test-ub2404 -Name "@s1"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (:) [Get-VMSnapshot], VirtualizationException
    + FullyQualifiedErrorId : ObjectNotFound,Microsoft.HyperV.PowerShell.Commands.GetVMSnapshot


[2025-02-05T01:31:10.997] [trace] [mpass-test-ub2404] [15208] Output:
[2025-02-05T01:31:10.999] [debug] [mpass-test-ub2404] [15208] Cmdlet exit status is 'false'
[2025-02-05T01:31:10.999] [warning] [mpass-test-ub2404] Get-VMCheckpoint failed with unexpected output:
snapshot failed: Failure while looking for snapshot name

To Reproduce
How, and what happened?

  1. multipass snapshot "mpass-test-ub2404" --name "test" -vvvv
  2. snapshot failed: Failure while looking for snapshot name

Expected behavior
A snapshot for the specified multipass instances is created.

Logs
Please provide logs from the daemon, see accessing logs on where to find them on your platform.

Additional info

  • OS: Windows 11: Microsoft Windows [Version 10.0.26100.3037]
  • CPU architecture or model: Intel x64
  • `multipass version 1.15.0
  • multipass info
Name:           mpass-test-ub2404
State:          Stopped
Snapshots:      0
IPv4:           --
Release:        --
Image hash:     28d2f9df3ac0 (Ubuntu 24.04 LTS)
CPU(s):         --
Load:           --
Disk usage:     --
Memory usage:   --
Mounts:         --

Name:           novel-kudu
State:          Stopped
Snapshots:      1
IPv4:           --
Release:        --
Image hash:     28d2f9df3ac0 (Ubuntu 24.04 LTS)
CPU(s):         --
Load:           --
Disk usage:     --
Memory usage:   --
Mounts:         S:\work => /mnt/s/work
                    UID map: -2:default
                    GID map: -2:default
  • multipass get local.driver hyperv

Additional context
Add any other context about the problem here.

@swamyrajamohan swamyrajamohan added bug needs triage Issue needs to be triaged labels Feb 5, 2025
@ricab
Copy link
Collaborator

ricab commented Feb 5, 2025

Hi @swamyrajamohan, we had an issue just like this in a previous version: #3748. But it got fixed and released in 1.15.0. I just tried this release and I could not reproduce what you observe. Are you sure you are on 1.15.0?

@ricab ricab added question and removed needs triage Issue needs to be triaged labels Feb 5, 2025
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