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

Improper detection of Virtual Machine Platform #7211

Open
nt-baker opened this issue May 14, 2024 · 3 comments
Open

Improper detection of Virtual Machine Platform #7211

nt-baker opened this issue May 14, 2024 · 3 comments

Comments

@nt-baker
Copy link

Bug description

While trying to install Podman during Podman Desktop setup, it claims that Virtual Machine Platform is not enabled even though Windows itself says it is.

image

The setup correctly detects that WSL2 is installed and up-to-date. I'm not sure it's possible to have that without Virtual Machine Platform being enabled.

Operating system

Windows 10 Enterprise

Installation Method

Installer from website/GitHub releases

Version

1.10.2

Steps to reproduce

No response

Relevant log output

No response

Additional context

Docker Desktop is also installed, and able to use WSL2 - not sure if that could cause some kind of interference.

@nt-baker nt-baker added the kind/bug 🐞 Something isn't working label May 14, 2024
@benoitf
Copy link
Collaborator

benoitf commented May 15, 2024

hi @nt-baker

the detection code is using powershell with the command

(Get-WmiObject -Query "Select * from Win32_OptionalFeature where InstallState = \'1\'").Name | select-string VirtualMachinePlatform

could you try on a shell and provides the response ?

@nt-baker
Copy link
Author

From Powershell 5:
image

I tried a number of more basic uses of the Get-WmiObject command, most of which failed. It seems like my WMI repository is corrupt. (Based on this StackOverflow thread) So it fails to query classes that would ordinarily be available.

image

Going to try to restore my WMI repository.

@odockal
Copy link
Contributor

odockal commented May 27, 2024

@nt-baker Did it help? Is the issue gone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

4 participants