-
Notifications
You must be signed in to change notification settings - Fork 53
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
Communication between microVMs #18
Comments
Hi. Yes, you need no create the necessary network plumbing on the host to connect the two or more VMs between themselves or the internet. This is not Firecracker specific, you basically need to configure routing on your host to properly route the packets leaving the VMs. See for example https://www.linux-kvm.org/page/Networking and https://werewblog.wordpress.com/2015/12/31/create-a-virtual-network-with-qemukvm/ |
@acatangiu Thanks, I will try to set it up. |
@acatangiu I read the article and I think the easiest way to do this is connect the tap devices attached to each VM to a bridge. These are the steps I followed:
I am not sure what I am missing here. I would really appreciate some help on this. Thanks |
@Anjali05 I've been trying to get communication to work between two VMs for the last few days as well - setting up communication from guest to host and host to guest works this way, but communication between microVMs is not possible. Ethernet broadcasts (i.e. with |
@pojntfx Same for me. Did you find any solution? :) Thanks |
I managed to get this working and blogged about it here: https://devopschops.com/blog/communicating-between-firecracker-microvms-using-bridges/ |
I have set an environment where I can run multiple microVMs at once, using the scripts provided in this repo. I was trying to do network bandwidth measurement between two VMs to check if they can communicate with each other. I am getting the IP using the
gateway-ip.sh
which is like one more than the IP I use to ssh. I have tried with both, the one I use to ssh and the one in thegateway-ip.sh
but I always getiperf3: error - unable to connect to server: Connection refused
. The goal is to have a client and server setting to run few benchmarks. Do I need to change any network settings in the microVMs to facilitate communication between them?Thanks.
The text was updated successfully, but these errors were encountered: