S
S
Studencheskaya322021-10-18 12:17:51
linux
Studencheskaya32, 2021-10-18 12:17:51

How to combine Docker and QEMU virtual bridge?

Hello.
It's about Linux.
I have docker installed on my computer. Accordingly, a default bridge was created for containers:

$ brctl show
bridge name bridge id STP enabled interfaces
docker0 8000.02428fd9cc33 no
>


As you can see, network interfaces have not yet been screwed to it. They dynamically appear there at the time of container start.

Is it possible, without creating additional separate bridges for the entire history with QEMU \ KVM, to somehow fasten virtual machines launched under QEMU \ KVM to the same bridge? So that everything is in a single network domain. And if so, how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hint000, 2021-10-18
@Studencheskaya32

In theory, this is how it should work:
$ echo allow docker0 > /etc/qemu/bridge.conf
This is how qemu knows which bridge to add virtual interfaces to.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question