spiegel_podman/pkg/machine/provider
lstocchi 57eeb47143
auto-add user to Hyper-V Administrators group
Currently, running Podman on Hyper-V as a non-administrator requires the user to be a member of the "Hyper-V Administrators" local group. If they are not, various WMI calls fail with access denied.

This commit automates the permission setup.
1. During podman machine init, if Podman is running with elevated privileges (required for registry/networking setup anyway), it will now automatically add the current user to the localized "Hyper-V Administrators" group
2. If a user is added to the group, the change is not reflected until the next login. We now detect this state and explicitly instruct the user to log out and back in.
3. Modified the Hyper-V stubber to handle permission checks at the method level rather than the provider selection level (GetAll). This allows init to continue far enough to perform the elevation and setting.

Signed-off-by: lstocchi <lstocchi@redhat.com>
2026-04-22 11:03:37 +02:00
..
platform.go Bump Go version to v6 2025-10-23 11:00:15 -04:00
platform_darwin.go Remove Intel MacOS support 2025-12-07 07:03:06 -06:00
platform_test.go fix failing windows platform tests 2025-12-02 16:19:50 +01:00
platform_unix.go Machine init --provider 2025-10-29 07:59:34 -05:00
platform_windows.go auto-add user to Hyper-V Administrators group 2026-04-22 11:03:37 +02:00
platform_windows_test.go auto-add user to Hyper-V Administrators group 2026-04-22 11:03:37 +02:00