Score:0

Can I achieve this VirtualBox network configuration using libvirt?

kr flag

I asked a similar question here but I messed up logging in with my SE account and so I can't edit it.

Here is what I would specifically like to achieve with libvirt under the "Internal Network" heading.

A comment in the previous question mentioned Isolated mode, but according to the libvirt wiki:

In this mode, guests connected to the virtual switch can communicate with each other, and with the host. However, their traffic will not pass outside of the host, nor can they receive traffic from outside the host.

The diagram shows the virtual switch between the host and guests, but I want to have a similar configuration to the virtualbox diagram linked above, with one VM1 having 2 NICs of an internal network and a bridge (NAT in the picture but bridged is preferable).

Does the first answer apply here still given my more specific explanation? It seems like a bridge of this sort would not exactly do what I want. Should I do a VLAN instead?

Tom Yan avatar
in flag
You can have two bridges, one with no IP configured on the host (and perhaps further nftables / ebtables protection) and no physical NIC enslaved to it, one with opposite configuration on both terms. The former will act as the "internal switch" that connects all VM, the latter will be used by only "VM1". VM1 will then be able to work like a (second-level) home router for the other VMs.
A.B avatar
cl flag
A.B
About your account issue, please visit this help page: https://serverfault.com/help/merging-accounts (you created a new account and gave the same name, but https://serverfault.com/users/796910/supportivedante != https://serverfault.com/users/796993/supportivedante )
SupportiveDante avatar
kr flag
Thanks @TomYan this seems to have worked!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.