Open
Description
Description
Add a generic driver for external virtual machines and physical servers.
It is similar to running ssh
, but includes all the Lima features like agent.
The user is supposed to have an existing server, with key-based ssh login.
Previously it was hardcoding 127.0.0.1
as the hostname
Host keys are being used (and should be set up), to verify the external server.
Previously it was hardcoding StrictHostKeyChecking=no
A guest-install
command is added, to install lima-guestagent and nerdctl-full.
The external machine lifecycle (boot/reboot/etc) is managed outside of Lima.
- Experiment with managing external machines with lima #2000
- Add hidden command to install the guest components #2028
Tested with Digital Ocean, and with Raspberry Pi.
Note: this driver does not create cloud instances.
- The Linux physical machines #2029
- docker machine cloud drivers (archived 2019)
Activity
afbjorklund commentedon Jan 2, 2024
The hardware resources are specified by the user, matching the external:
The OS installation is supposed to be aligned, but is not using the "images".
e.g. you would use the cloud web interface or the SD card image for Ubuntu
afbjorklund commentedon Jan 9, 2024
Note that since machine start and stop are handled externally, it only affects the hostagent.
The user is supposed to install and start the guestagent, and to install containerd/buildkitd.
start
stop
The external server keeps running, including lima-guestagent and friends.
Now also includes support for provisioning, as shown in the above output.
afbjorklund commentedon Jan 9, 2024
Changed output for non-localhost:
Into a slightly more interesting IP: