Uploaded image for project: 'Container Tools'
  1. Container Tools
  2. RUN-3931

[containers/podman] Propose running in elevated mode when a user tries to `machine init/rm` with Hyper-V

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • rhel-container-tools

      [3674648829] Upstream Reporter: Mario Loriedo
      Upstream issue status: Open
      Upstream description:

      Feature request description

      When users run podman machine init --provider hyperv from a (non-admin) terminal we currently fail with:

      Error: the first time Podman initializes a Hyper-V machine, it requires admin rights. Please run Podman as an administrator

      We can instead automatically re-run the command as an administrator to avoid re-opening a new terminal.

      Suggest potential solution

      As done to automatically install WSL, we should propose to the user to automatically re-run the command as Admin (if he belongs to the admin group). If the user accepts a UAC prompt will appear and then podman machine init will be re-executed as Admin.


      Upstream URL: https://github.com/containers/podman/issues/27627

              Unassigned Unassigned
              upstream-sync Upstream Sync
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: