Allow to override remote user in machine init #15402
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
macos
MacOS (OSX) related
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
It is allowed to provide custom image during init https://github.com/containers/podman/blob/main/cmd/podman/machine/init.go#L92 and it is supported, but there is no way to provide remote user in the same time and one will need to edit config manually afterwards. Introducing this parameter will grant more options for custom images.
This will become valuable, when multiple providers are supported for a single target (Qemu + vfkit for Apple Macs or Qemu + WSL + Hyper-V for Windows hosts). Discovered during experiment with #13006
Steps to reproduce the issue:
podman machine init
Describe the results you received:
No way to change remote user during the init command.
Describe the results you expected:
--remote-user myuser
would be supported. Name of the key could be different to match all the scenarios better.Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes (built from source)
Additional environment details (AWS, VirtualBox, physical, etc.):
Podman machine on Mac and Windows hosts.
The text was updated successfully, but these errors were encountered: