Skip to content
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

[Question]: Multiple network interfaces #511

Open
2 tasks done
ttocsr opened this issue May 16, 2024 · 1 comment
Open
2 tasks done

[Question]: Multiple network interfaces #511

ttocsr opened this issue May 16, 2024 · 1 comment
Labels
question Further information is requested

Comments

@ttocsr
Copy link

ttocsr commented May 16, 2024

Is your question not already answered in the FAQ?

  • I made sure the question is not listed in the FAQ.

Is this a general question and not a technical issue?

  • I am sure my question is not about a technical issue.

Question

Is it possible to pass multiple network interfaces from the host via macvlan to the VM?
I've tried creating two macvlan networks pointing to the two physical network interfaces on the host I want to pass to the container. When I attach to the shell of the container the interfaces are there.
Is it possible to get them to come up in the VM?

@ttocsr ttocsr added the question Further information is requested label May 16, 2024
@kroese
Copy link
Contributor

kroese commented May 17, 2024

I have not build-in support for that, but you can pass extra QEMU parameters via your compose file. So if you know exactly which command you need, you can add it yourself. For example:

environment:
  ARGUMENTS: "-netdev user,id=hostnet1 -device virtio-net-pci,romfile=,netdev=hostnet1,id=net1"

will add a second network adapter with user-mode networking (see https://wiki.qemu.org/Documentation/Networking ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants