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 start Hyper-V VM on Windows 11 after reboot #23627

Closed
jingyuwa opened this issue Aug 15, 2024 · 8 comments
Closed

unable to start Hyper-V VM on Windows 11 after reboot #23627

jingyuwa opened this issue Aug 15, 2024 · 8 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. machine windows issue/bug on Windows

Comments

@jingyuwa
Copy link

jingyuwa commented Aug 15, 2024

Issue Description

I have successfully run podman machine init using Hyper-V and my VM provider and have successfully deployed and run a container yesterday. But after reboot, I was not able to start the podman machine anymore.
podman_start_debug_log.txt
gvproxy.log

Steps to reproduce the issue

Steps to reproduce the issue

  1. podman machine init and build, deploy and run container using podman desktop GUI
  2. reboot computer
  3. Try to run podman machine start with admin privilege in powershell

Describe the results you received

Please see attachment in issue description. I was not able to get podman started
image

Describe the results you expected

Podman machine can be successfully started, and previous containers can be started again.

podman info output

OS: windows/amd64
provider: hyperv
version: 5.2.0

Cannot connect to Podman. Please verify your connection to the Linux system using `podman system connection list`, or try `podman machine init` and `podman machine start` to manage a new Linux VM
Error: unable to connect to Podman socket: Get "http://d/v5.2.0/libpod/_ping": dial unix /run/podman/podman.sock: connect: A socket operation encountered a dead network.

Podman in a container

No

Privileged Or Rootless

None

Upstream Latest Release

No

Additional environment details

NA

Additional information

This issue happened once and was resolved by executing bcdedit /set hypervisorlaunchtype auto.
It happened again and I also tried to execute the command bcdedit /set hypervisorlaunchtype auto but it does not help this time.

@jingyuwa jingyuwa added the kind/bug Categorizes issue or PR as related to a bug. label Aug 15, 2024
@Luap99 Luap99 added machine windows issue/bug on Windows labels Aug 15, 2024
@Luap99
Copy link
Member

Luap99 commented Aug 15, 2024

Did you try running podman machine stop first?

@jingyuwa
Copy link
Author

jingyuwa commented Aug 15, 2024

Did you try running podman machine stop first?

No

But after trying it gives same error as before.
**
image
**

@Luap99
Copy link
Member

Luap99 commented Aug 15, 2024

Can you try running the stop command before the reboot and see if this works?

Also please copy and paste your terminal output and not use screenshots for the terminal.

@jingyuwa
Copy link
Author

Can you try running the stop command before the reboot and see if this works?

Also please copy and paste your terminal output and not use screenshots for the terminal.

 podman machine rm
The following files will be deleted:


C:\Users\wajin\.config\containers\podman\machine\hyperv\podman-machine-default.json
C:\Users\wajin\AppData\Local\Temp\podman\podman-machine-default.sock
C:\Users\wajin\AppData\Local\Temp\podman\podman-machine-default-gvproxy.sock
C:\Users\wajin\AppData\Local\Temp\podman\podman-machine-default-api.sock
C:\Users\wajin\AppData\Local\Temp\podman\podman-machine-default.log
Are you sure you want to continue? [y/N] y
Error: failed to remove machines files: unable to find connection named "podman-machine-default"

Now I'm not even able to remove my previous machine. Should I manually delete those files and start again from podman machine init?

@Luap99
Copy link
Member

Luap99 commented Aug 15, 2024

I think it might already deleted the other files even when it report this error. Looks like we got in a bad state somehow.
Does podman machine ls still show it after the rm command?

@jingyuwa
Copy link
Author

jingyuwa commented Aug 15, 2024

I think it might already deleted the other files even when it report this error. Looks like we got in a bad state somehow. Does podman machine ls still show it after the rm command?

The machine was gone and I've gone through the podman machine init process again.
I've tried to execute podman machine stop command before rebooting the machine, and tried directly reboot the machine, and also tried cut off the power and re-start the machine. None of those can reproduce this issue. The current VM can always be brought up by podman after reboot now.

@baude
Copy link
Member

baude commented Aug 19, 2024

so its safe to say we got into some unknown state and we can no longer replicate this? if so, is it worth closing this until it happens again ?

@jingyuwa
Copy link
Author

so its safe to say we got into some unknown state and we can no longer replicate this? if so, is it worth closing this until it happens again ?

Not able to reproduce. Closing this issue now.
Thanks!

@stale-locking-app stale-locking-app bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Nov 19, 2024
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators Nov 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Categorizes issue or PR as related to a bug. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. machine windows issue/bug on Windows
Projects
None yet
Development

No branches or pull requests

3 participants