nixers
Virtual networks - Printable Version
+- nixers (https://nixers.net)
+-- Forum: Operating Systems & Administration (https://nixers.net/Forum-Operating-Systems-Administration)
+--- Forum: Servers Administration, Networking, & Virtualization (https://nixers.net/Forum-Servers-Administration-Networking-Virtualization)
+--- Thread: Virtual networks (/Thread-Virtual-networks)


Virtual networks - citrus - 21-08-2016

Does anyone here have experience setting up virtual networks with qemu? I find the man page for qemu really cryptic and have been unable to find much specific support on the web.

I've have two projects in mind, one is setting up whonix without using virsh, and the other is to create an isolated virtual network between two vms.

I'd be happy to read through anything or your experiences of doing something similar.

With virtualbox at least, it's trivial to create a connection between two vms, but I'm curious about just using qemu.


RE: Virtual networks - z3bra - 22-08-2016

It's pretty easy to do so, especially if you don't want your VMs to access the outside world. You first need to create a bridge (check out bridge-utils), and add all your VMs interfaces to it. After that, well, it should work!


RE: Virtual networks - z3bra - 22-08-2016

You might also want to check my post about linux containers (the networking part especially): http://blog.z3bra.org/2016/03/hand-crafted-containers.html


RE: Virtual networks - movq - 22-08-2016

I feel the urge to point out that QEMU itself does not do "the networking". That's different from "all in one solutions" like VirtualBox. Instead, you set up your networking using common tools like ip(8) and the already mentioned brctl(8). You then only tell QEMU to use what you've set up.

At least, that's how I do it in overqemu: https://github.com/vain/bin-pub/blob/master/overqemu

QEMU also provides the option of building "multicast networks" where you don't have to do any setup in advance. That's easy to use but reeeeeally slow.


RE: Virtual networks - citrus - 23-08-2016

@z3bra I hadn't heard of that tool, thanks. I'll be sure to check out your blog post too.

@vain I appreciate that you pointed that out, that wasn't clear to me.

It seems bridge-utils is designed for just managing virtual bridges. If I want to send all my traffic from the host machine through a vm, a la whonix, will bridge-utils work for that? (Sorry I haven't read the manual yet before asking, I have limited time with an internet connection right now).


RE: Virtual networks - z3bra - 23-08-2016

If you want to use the whonix VM as a proxy, that's entirely different. Using bridges will be overkill in this, as a simple iptables NAT rules would do it.


RE: Virtual networks - citrus - 24-08-2016

Excellent. That should be enough info for me to get this up and running. Thanks for your help :)


RE: Virtual networks - z3bra - 25-08-2016

Don't hesitate to ask if you need some more help!


RE: Virtual networks - apk - 25-08-2016

will do willy thnx


RE: Virtual networks - robotchaos - 25-08-2016

shit, I think I started something... Sorry z3bra :(


RE: Virtual networks - venam - 26-08-2016

This is going offtopic.
Keep it clean.