You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently became a new user of lima, via colima, while looking for an alternative of docker-desktop on the Mac.
As I have been adopting the tool to my development workflow I have encountered issues where the network inside the VM seems to stall for long periods of time; this is visible as network operations are issued inside the VM leading to timeouts and lack of connectivity. I spent some time scouring bug reports and documents to try to find a workaround. Here are some of my findings (everything to be reported was tested with MacPorts lima 0.8.3 and macOS 12.2.1):
As the SLIRP user mode networking seems to be root cause of the problem Network in containers breaks under bigger network load abiosoft/colima#140, I have tried to use vde_vmnet. The first thing I have noticed is that when enabling use of the alternate network modes, the SLIRP network is still created and has a higher precedence as default route in the routing table, which means that default network activity is going to still flow via the SLIRP network and be subject the stalling issues.
As part of the provisioning step, I remove the default route going via eth0 and this solved the previous problem, but seems the vde_switch based connectivity is really slow as reported by Networking speeds are slow, is this expected? vde_vmnet#26.
Since I was seeing the vde2 problems as reported in [vde_switch] No buffer space available vde_vmnet#19 and seeing there is a new patch related in virtualsquare!vde-2#35, I decided to upgrade vde-2 to virtualsquare/vde-2@506ce85. This seemed to improve speeds, but I still could see timeouts happening within my VM.
Instead of using switch mode, I switched to PTP mode and this seems to have solved most of the reliability and speed problems. But adds the question of how to manage the vde_vmnet process seamlessly.
A few questions:
Since limactl is already able to start vde_switch and vde_vmnet when using host, shared or bridged networking, is it possible to also start vde_vmnet for the PTP mode? It becomes cumbersome to have to manage vde_vmnet manually for every VM we want to boot.
When using an alternate networking mode in addition to SLIRP is it possible to remove entirely SLIRP as a default network route automatically?
As a reference, this is the template that I am now using, based off colima:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I recently became a new user of lima, via colima, while looking for an alternative of docker-desktop on the Mac.
As I have been adopting the tool to my development workflow I have encountered issues where the network inside the VM seems to stall for long periods of time; this is visible as network operations are issued inside the VM leading to timeouts and lack of connectivity. I spent some time scouring bug reports and documents to try to find a workaround. Here are some of my findings (everything to be reported was tested with MacPorts lima 0.8.3 and macOS 12.2.1):
vde_vmnet
. The first thing I have noticed is that when enabling use of the alternate network modes, the SLIRP network is still created and has a higher precedence as default route in the routing table, which means that default network activity is going to still flow via the SLIRP network and be subject the stalling issues.eth0
and this solved the previous problem, but seems thevde_switch
based connectivity is really slow as reported by Networking speeds are slow, is this expected? vde_vmnet#26.vde_vmnet
process seamlessly.A few questions:
vde_switch
andvde_vmnet
when usinghost
,shared
orbridged
networking, is it possible to also startvde_vmnet
for the PTP mode? It becomes cumbersome to have to managevde_vmnet
manually for every VM we want to boot.As a reference, this is the template that I am now using, based off colima:
Beta Was this translation helpful? Give feedback.
All reactions