canonical / multipass

Multipass orchestrates virtual Ubuntu instances
https://multipass.run
GNU General Public License v3.0
7.52k stars 631 forks source link

Snapshots of Hyper-V VMs fail to restore after the daemon restarts #3488

Closed ricab closed 2 months ago

ricab commented 2 months ago

Describe the bug The constructor for Hyper-V snapshots that are loaded from disk leave a field uninitialized. That field is used to command Hyper-V to restore them. Consequently, restoring such snapshots fails.

To Reproduce How, and what happened?

  1. multipass snapshot -n s1 <instance>
  2. restart daemon
  3. multipass restore -vvvv <instance>.s1

Expected behavior Snapshots would restore normally.

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

Additional info