Pass qemu args at start time [willing to help]
Description
So lima vm uses ssh tunneling for port forwards. This makes it so I can't shim local dns servers etc without overhead. I suffer that with this project, and I imagine it's because of the prior. I'd like to try another slirp solution.
I came across this: https://github.com/containers/gvisor-tap-vsock
VPNkit looks cool, but it's not user friendly. The libslurp variants have udp issues too. This looks like what I want.
Interestingly enough, this user found the same thing I did, and was looking to do the same thing.
https://github.com/lima-vm/lima/issues/932
I'd like to do that here. Take the whole frame work you built and just see if I can shim in.
TBH, everything I need is probably right here. https://github.com/abiosoft/colima/blob/main/qemu/qemu.go#L49
Idk how env vars work in golang. I don't think it's picking it up from the shell.
Anywho, do you like the option? I can submit a pull if this is anything.
Reading this issue, it sounded like you meant to create this on the Lima project instead.
But if you indeed intend it to be here, kindly note that Colima already uses gvproxy (https://github.com/containers/gvisor-tap-vsock).
However it does not entirely remove slip, rather adds gvproxy as an additional network and makes it the default. I prefer that over removing slirp entirely as I suspect it may break Lima.
Is there anything precisely you are looking to try out?
Interestingly enough, this user found the same thing I did, and was looking to do the same thing. https://github.com/lima-vm/lima/issues/932
This user is me :).
This user is me :)
:P
Is there anything precisely you are looking to try out?
Apparently, I have a fundamental misunderstanding then about how this would even work. Ultimately, UDP forwarding seems to not work, and I assumed it was because it used the same slirp as limavm, but I suppose not.
Oh, gotcha. Yeah, the port forwarding is via Lima's capabilities which is via SSH and currently limited to TCP.
gvproxy can handle the port forwarding as well, will look into that.
Would also be nice to be able to do usb passthough like this : https://gist.github.com/stonehippo/e33750f185806924f1254349ea1a4e68 not sure if this is related to lima or colima