solo-io / unik

The Unikernel & MicroVM Compilation and Deployment Platform
Apache License 2.0
2.71k stars 191 forks source link

Fix UDP broadcast IP #139

Closed sguyennet closed 6 years ago

sguyennet commented 6 years ago

When using a network like 10.10.20.0/24, the DefaultMask function will return 255.0.0.0.

The instance listener will use the UDP broadcast IP 10.255.255.255, which is wrong as it should be 10.10.20.255.

Here is how to troubleshoot it on vSphere:

1- SSH to the ESXi where the instance listener VM is running. 2- esxcli network vm list | grep -i vsphereunik It will give you the VM world ID. 3- esxcli network vm port list -w [vm_world_id] It will give you the vswitch port ID were the VM is plugged. 4- pktcap-uw --switchport -o /tmp/unik.pcap

This seems linked to the issue: https://github.com/cf-unik/unik/issues/130

ilevine commented 6 years ago

Thanks!