lima icon indicating copy to clipboard operation
lima copied to clipboard

Support `lima:shared`, `lima:bridged`, `lima:host` on Linux hosts

Open AkihiroSuda opened this issue 1 month ago • 1 comments

At KubeCon @nirs suggested me to adopt libvirtd's standard to managing networks.

https://wiki.libvirt.org/VirtualNetworking.html

Our implementation may invoke the same brctl commands used by libvirtd, however, it should not introduce a dependency on libvirtd

AkihiroSuda avatar Nov 19 '25 07:11 AkihiroSuda

If we don't depend on libvirt, we need to reinvent part of it. We will need a daemon running as root that can set up the network for qemu. My suggestion was to use libvirt API on Linux. This is how minikube kvm driver is implemented, and we are a happy user of minikube on Linux :-)

We can use a pluggable driver depending on libvirt. It will require modifying lima to separate the networking code from the main program.

nirs avatar Nov 25 '25 20:11 nirs