runfinch / finch

The Finch CLI is an open source client for container development
https://www.runfinch.com
Apache License 2.0
3.59k stars 95 forks source link

[Feature] Support vzNAT for vz VM type #1173

Open henry118 opened 3 weeks ago

henry118 commented 3 weeks ago

What is the problem you're trying to solve?. Today Finch requires root privilege to bootstrap the LIMA VM on MacOS. It would be great if the root privilege is not required.

Describe the feature you'd like Root privilege is only required to setup the VM networking via vmnet (socket_vmnet) and sudoers for QEMU VM type. However even though Finch's default VM type has already moved from QEMU to VZ, the vmnet is still setup as part of the current VM bootstrap process. We should use vzNAT instead of vmnet in VZ case so that the root privilege is not required.

Additional context