mirror of
https://github.com/containers/podman.git
synced 2026-06-02 21:13:35 -04:00
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>