canonical / multipass

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

Always failed to stop instance #3127

Open battersky opened 1 year ago

battersky commented 1 year ago

Describe the bug Always failed to stop instance

To Reproduce

  1. multipass list

~ multipass list

Name                    State             IPv4             Image
obliging-seagull        Running           192.168.64.11    Ubuntu 22.04 LTS
oriented-fossa          Running           192.168.64.10    Ubuntu 22.04 LTS
  1. multipass stop instance

~ multipass -vvvv stop obliging-seagull

[2023-06-16T20:55:09.189] [debug] [ssh session] Executing 'wall The system is going down for poweroff now'
[2023-06-16T20:55:09.567] [debug] [obliging-seagull] QMP: {"return": {}}
{"timestamp": {"seconds": 1686920109, "microseconds": 567074}, "event": "POWERDOWN"}
[2023-06-16T20:55:10.450] [debug] [obliging-seagull] QMP: {"timestamp": {"seconds": 1686920110, "microseconds": 450187}, "event": "SHUTDOWN", "data": {"guest": true, "reason": "guest-shutdown"}}
[2023-06-16T20:55:10.450] [info] [obliging-seagull] VM shut down
  1. multipass list again instance obliging-seagull is still on 'running' state and also the 'list' command is slow, it took about nearly 10 seconds to return the list result

~ multipass list

Name                    State             IPv4             Image
obliging-seagull        Running           192.168.64.11    Ubuntu 22.04 LTS
oriented-fossa          Running           192.168.64.10    Ubuntu 22.04 LTS

Expected behavior instance stop successfully

Logs multipassd.log

Additional info

Additional context Add any other context about the problem here.

georgeliao commented 1 year ago

Hi, @battersky, thanks for reporting this. It looks like a macOS specific issue. We will look into that.

khurshid-alam commented 1 year ago

I can reproduce this on Linux server running 22.04. VM is also running 22.04 along with gui-desktop.

townsend2010 commented 1 year ago

Hi @khurshid-alam!

Although the symptom may be similar, it's possible that something else is happening on your system. Could you please open a new bug and provide the requested logs? Thanks!