-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shared network with both host to vm anv vm to vm access #75
Comments
The tart/softnet processes - we see unique mac addresses and use of the allow 0.0.0.0/0 which should allow access between vms based on #37.
|
Hi Nir 👋 Let me take a stab in the dark here, the issue here is likely related to one or both of the VMs using the DUID/IAID as a DHCP client identifier instead of the MAC address. This is problematic, because macOS's DHCP server putting this DUID/IAID into both the As a result:
If you're building your VMs yourself, you need to disable the DUID/IAID/non-MAC identifiers to work around that. If you're using Cirrus Labs VM images, this should be fixed in the latest You can further debug this by looking at the |
I created the vm few days ago using:
I'll try to delete |
The issue was resolved after deleting I did:
Server started with the expected 192.168.105.2, creating this record:
name=ubuntu seems wrong - when using vfkit or lima you usually get the same name used in the tool. I think this is the host name. Then I created and ran another vm:
Which got the expected ip address 192.168.105.3 and added another record:
Both vms are accessible and I could run iperf3 from host and between the vms. Previously I had many entries with name=client from other vms created with vfkit and lima, and maybe I had also name=ubuntu for another vm. I guess this issue should be documented somewhere. Thanks for the quick response! |
I'm trying tart with --net-softnet, and it seems to work for single vm.
I created a linux vm by cloning the ubuntu vm, and starting it using:
In the vm I get ip address 192.168.105.12, and I can access it from host, for example:
However tart ip reports the vm ip as 192.168.105.13:
This address is not reachable:
When starting a second vm with the same options, it get exactly the same ip address (192,168.105.12), the first vms is not accessible any more, the second vm is accessible on the same ip address. Also the first vm is not accessible from the second.
The vms get different mac address so it does not make sense they will get the same ip address from the macOS DHCP server.
I can use tart --net-bridged with multiple vms, but this makes the vms accessible in the local network with I'm trying to avoid. The purpose of the vms is testing local k8s clusters, and limiting access the the local host is better.
Looks like this this is a dup of #37 and should be resolved. Maybe I need a newer version?
Tested on latest tart from brew:
The text was updated successfully, but these errors were encountered: