spiegel_podman/pkg/machine/vmconfigs
Mario Loriedo 92d186f20d Hyperv machine init/rm: skip win registry operations when possible
Hyper-V VMs require some specific Windows registry keys to allow the
communication between the host and the guest. Creating these registry
keys require elevated privileges.

These keys were created during the first Podman `machine init` and
removed when the last Podman machine is removed.

In this commit we skip the creation of the keys if they already exist in
the registry. So that admin privileges aren't required anymore, even for
the creation of the first Podman machine.

In other words, if the keys are pre-created by an administrator, user
will be able to create and remove machines without requiring to run any
elevated command. Even for the first podman machine.

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2026-04-29 23:00:29 +02:00
..
arch.go Prune FCOS related code 2024-02-15 21:05:17 -06:00
arch_test.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00
config.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
config_common.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
config_darwin.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
config_windows.go Hyperv machine init/rm: skip win registry operations when possible 2026-04-29 23:00:29 +02:00
machine.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
machine_unix.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
machine_windows.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
sockets.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
sockets_darwin.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
volumes.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
volumes_unix.go [CI:MACHINE]Podman5 QEMU refactor 2024-02-07 09:18:36 -06:00
volumes_windows.go [CI:MACHINE]Podman5 QEMU refactor 2024-02-07 09:18:36 -06:00