-
I've been trying to create multiple VMs on the same subnet, with the same, stable gateway IP. Whenever a tap name is specified on more than one VM, the request gets rejected, whether pre-created or created by cloud-hypervisor at start-up. There's some rather complex and undocumented code in Firecracker's Go SDK which sets up new network namespaces, and allows for this configuration using a host bridge and CNI along with tc-redirect-tap - which has zero documentation. Is there a way that a stable IP can be set up i.e. 172.16.0.1/24 for the host, and each cloud-hypervisor VM can obtain a working IP within that subnet i.e. 172.16.0.2, 172.16.0.3, 172.16.0.4 and so forth? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You can't reuse tap names on the host (or maybe you can inside a network namespace, IDK) but if you want those machines to be able to reach other then create a bridge, create taps in advance, add them to the bridge and give them to each VM without specifying any IP configuration. You can then give the bridge interface an IP on the host and then you have host to guest and guest to guest communication. If you only care about guest to host communication I think you can reuse the same host IP/guest IP (or change it per guest) as each network will be isolated. |
Beta Was this translation helpful? Give feedback.
-
Hi @alexellis :
I created 32 vms and no warning is printed. |
Beta Was this translation helpful? Give feedback.
You can't reuse ta…