LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 04-14-2021, 09:00 AM   #1
G65434-2
LQ Newbie
 
Registered: Jul 2020
Posts: 4

Rep: Reputation: Disabled
Question virtual network over multiple libvirt hosts


I have a particular problem and wonder if anyone could give me some advice on how to solve this properly. Basically I need to setup a virtual network over multiple libvirt servers.

Simple example scenario:
3 libvirt hosts. Lets go with Debian 10, libvirt and KVM.
They are connected over ANY kind of network. Let's say Ethernet.
But it could even be a mixed network, made of libvirt hosts that are deployed on different sites, could be IPv6 or InfiniBand... .
On each of these 3 libvirt hosts there is one VM deployed. So in total 3 VMs.
Now I want to create a virtual IPv4 network between these 3 VMs.
Lets call it "Office network".
We could even add an internal virtual router or switch in form of a VM.
But lets just say these 3 VMs are supposed to be directly connect to each other.



There are certain requirements for this Virtual network:
The network runs over the libvirt host network but is isolated from it.
Meaning that if I would look at the traffic coming from e.g. VM1 to VM2,
I would not see any traffic related to the libvirts hosts network.
Ideally there would be no hint to that there is a virtual network switch in place.

Some more caveats:
- Can't be a commercial solutions.
- The solution needs to be scalable. Say 1000 nodes/servers.
- I would prefer not to use solutions like OpenStack.
- Can't use VLAN because I need more than 4095 networks.
- Keep it as simple as possible. And with simple I mean elegant, not reinventing the wheel. Unix philosophy.

So what is your advice and experience?
Routing? SDN? VxLAN? vSwitch? Any other ready made software?

Last edited by G65434-2; 04-14-2021 at 09:21 AM.
 
Old 04-15-2021, 03:58 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,341

Rep: Reputation: Disabled
Your terminology is not very precise. By "libvirt host", I assume you mean a hypervisor?

Implementing multiple virtual networks across multiple hypervisors is not only pretty straightforward, it's what every IaaS provider does. The networks share the same physical infrastructure and are segregated using VLAN tagging.
Quote:
Originally Posted by G65434-2 View Post
- Can't use VLAN because I need more than 4095 networks.
Look up 802.1ad, also known as "QinQ".
 
Old 04-15-2021, 05:41 AM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Use an overlay network (a.k.a. tunneling), e.g. the abovementioned VXLAN, or Geneve or GRE. OpenvSwitch can be used to implement it, but Linuxbridges work as well, at least for VXLAN. OpenStack does it this way, but you don't need OpenStack to create your own overlay.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
isolate libvirt / kvm guests in virtual network tux111 Linux - Virtualization and Cloud 3 12-22-2019 07:31 AM
Libvirt Virtual Machine not being LIVE Migrated by pcs using ocf:heartbeat:VirtualDomain bulletproof.rs Linux - Server 1 06-26-2019 03:46 AM
Trouble with virtual machine manager/libvirt Ryanms3030 Linux - Newbie 7 08-29-2014 08:03 AM
[SOLVED] KVM/libvirt - all traffic from eth0 to virtual guest ericson007 Linux - Virtualization and Cloud 3 04-02-2012 09:43 PM
How to set up multiple SSL sites for multiple IP based and name based Virtual Hosts. Rohit_4739 Linux - Server 11 02-28-2011 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration