LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-18-2015, 10:19 AM   #1
inforeqd
LQ Newbie
 
Registered: Aug 2015
Posts: 1

Rep: Reputation: Disabled
Assign Multiple NICs to 1 Virtual Machine


I have a server with 4 physical nics (eth0, 1,2,3). I bridge eth0 and eth1 to be used by my 4 virtual machines (the load of network traffic is light so I put 2 VMs to each bridge. I have the additional two physical nics (2,3) available and I need to assign them to 2 of my virtual machines in order for the VMs to connect to devices directly on a private subnet (the devices are software defined radios and they pass a ton of traffic).

The layout just to ensure I have it right is this

VM 1 ---- bridge0 (Public IPs)
VM 2 ---- bridge0 (Public IPs)
VM 3 ---- bridge1 (Public IPs)
VM 4 ---- bridge1 (Public IPs)

VM3 requires connection to 1st SDR through physical nic eth2 (Private IP space)/ Requires both a public and private IP
VM4 requires connection to 2nd SDR through physicl nic eth3 (Private IP space)/ Requires both a public and private IP

Any ideas??? Bridge the other two?? If so how do I assign multiple nics to the VMs??
 
Old 08-19-2015, 09:53 AM   #2
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
So, you are saying "I have a vehicle. Can you guys tell me how to pop the trunk open?"...
...it would help us greatly if you told us exactly what vehicle you have.

Read this, and try again ;-)
 
Old 08-19-2015, 10:10 AM   #3
dyasny
Member
 
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
What you're doing wrong in the first place, is direct NIC assignment to VMs. 99 of the use cases, this is wasteful.

If you want to use all the NICs you have, you might want to bond them, but unless there's a very specific need, do not assign them directly.

Now, the standard networking scheme for KVM and other hypervisors, is to create a virtual switch, connect it to a physical NIC or bond, for physical network access, and plug VMs into that switch, so they can interconnect as well as reach the physical network. In Linux, a simple bridge works as a switch, unless you need more features, and go with OVS
 
Old 08-21-2015, 02:49 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
I'll chime in with a hello and welcome to LQ.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Xen hypervisor: Assign Virtual Disk to a Virtual Machine LXer Syndicated Linux News 0 07-23-2014 03:32 PM
set dgw on multiple nic virtual machine HagueTech Linux - Newbie 0 10-03-2005 12:13 PM
Combining multiple NICs to one virtual NIC damista Linux - Networking 2 04-26-2005 10:00 PM
Multiple NICs, virtual terminals? Ned2 Linux - Networking 6 02-27-2005 04:44 PM
One Machine, Multiple NICs, and a single Newbie CozyMel Linux - Networking 2 10-09-2002 12:53 AM

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

All times are GMT -5. The time now is 05:26 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