Project

General

Profile

Feature #24571

Add multiple NIC selection to VM networking

Added by Mark Howell about 3 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
Marcelo Araujo
Category:
Middleware
Target version:
Estimated time:
Severity:
New
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

Description

In Corral we had the option to choose the NIC for our VMs. Not having this ability in FreeNAS 11 was like a big monkey wrench thrown into my isolated network setup. I have read at least one other FreeNAS forum member ask the same question. Certainly, there are even more FreeNAS users who would find this option immensely useful.

Associated revisions

Revision d1f84fed (diff)
Added by Marcelo Araujo about 3 years ago

feat(vm): Add the capability for guests to choose which nic it will be attached to. We create dynamically a bridge(4) with the chosen NIC and attach the guest's tap(4) interface to it. Ticket: #23927 Ticket: #24222 Ticket: #24571 Ticket: #24753 commit 97736d23a83644b25586af921f43b3d6230bb957 Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Fri Jun 23 09:57:11 2017 +0800 fix(vm/middlewared): I'm keeping backward compatibility prior the option to choose attached nic, in this case the if_attached can be None and I need to handle this case. Spotted by: william-gr commit 49481a9abf43d56378caa67491084e93344022c7 Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Fri Jun 23 09:40:35 2017 +0800 fix(vm/middleared): Fix double identation. Spotted by: william-gr commit da31e3de0021efa11e6b3dd67e67842392fdb3e7 Merge: f6ab6bd84 e1c2de77a Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Fri Jun 23 09:23:48 2017 +0800 Merge branch 'master' into wip_vmiface commit f6ab6bd8499539d5a6baf3a56795c01698a5dc3d Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Thu Jun 22 17:59:03 2017 +0800 feat(vm/middlewared): Add try/except guards in case there is no default gateway. commit efb1f6137749e83098cf6ad925d4aae7a58d509b Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Thu Jun 22 15:48:08 2017 +0800 feat(vm/middlwared): Add get_attached_iface method that will return all attached physical interfaces from a given guest. commit 2bb59b82057a14e7dc36f857c218a62c2360f133 Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Thu Jun 22 15:33:31 2017 +0800 feat(vm/middlwared): Use netif module instead of make a syscall to find out the default gateway interface. commit 6fefec6870c683f02be87037ecfe91862d8ee352 Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Thu Jun 22 15:08:27 2017 +0800 feat(vm/middlewared): backward compatibility for guests that are already installed and didn't had the iface attached option. commit 15617d0d2f7f79c55e6996c9e759b6c488bf224a Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Thu Jun 22 11:44:34 2017 +0800 feat(vm/middlewared): asyncio method bridge_setup. commit 5f9f35b3f45b76f6c57c4b3bf929301486b78a41 Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Thu Jun 22 10:59:22 2017 +0800 feat(vm/middleared): Attach the selected NIC into the bridge. commit 4c8a61adf6e4de8ea9786f5f3559ac7e8d16238c Merge: d66be7aea 876bb1348 Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Thu Jun 22 10:36:12 2017 +0800 Merge branch 'master' into wip_vmiface commit d66be7aeae8139bb9abfbdc8532e56f67f109ad0 Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Thu Jun 22 10:31:07 2017 +0800 feat(vm/middlewared): Setup the bridge with the prefered nic attached chosen by the user. commit 76fd3fe4091beafa1169d261e2c91c650f24e10c Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Wed Jun 21 17:12:48 2017 +0800 feat(vm): First wave of changes to allow users to choose what interface the guest vm will be attached.

Revision 49e1eb8e (diff)
Added by Marcelo Araujo about 3 years ago

feat(vm): Add the capability for guests to choose which nic it will be attached to. We create dynamically a bridge(4) with the chosen NIC and attach the guest's tap(4) interface to it. Ticket: #23927 Ticket: #24222 Ticket: #24571 Ticket: #24753 commit 97736d23a83644b25586af921f43b3d6230bb957 Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Fri Jun 23 09:57:11 2017 +0800 fix(vm/middlewared): I'm keeping backward compatibility prior the option to choose attached nic, in this case the if_attached can be None and I need to handle this case. Spotted by: william-gr commit 49481a9abf43d56378caa67491084e93344022c7 Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Fri Jun 23 09:40:35 2017 +0800 fix(vm/middleared): Fix double identation. Spotted by: william-gr commit da31e3de0021efa11e6b3dd67e67842392fdb3e7 Merge: f6ab6bd84 e1c2de77a Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Fri Jun 23 09:23:48 2017 +0800 Merge branch 'master' into wip_vmiface commit f6ab6bd8499539d5a6baf3a56795c01698a5dc3d Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Thu Jun 22 17:59:03 2017 +0800 feat(vm/middlewared): Add try/except guards in case there is no default gateway. commit efb1f6137749e83098cf6ad925d4aae7a58d509b Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Thu Jun 22 15:48:08 2017 +0800 feat(vm/middlwared): Add get_attached_iface method that will return all attached physical interfaces from a given guest. commit 2bb59b82057a14e7dc36f857c218a62c2360f133 Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Thu Jun 22 15:33:31 2017 +0800 feat(vm/middlwared): Use netif module instead of make a syscall to find out the default gateway interface. commit 6fefec6870c683f02be87037ecfe91862d8ee352 Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Thu Jun 22 15:08:27 2017 +0800 feat(vm/middlewared): backward compatibility for guests that are already installed and didn't had the iface attached option. commit 15617d0d2f7f79c55e6996c9e759b6c488bf224a Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Thu Jun 22 11:44:34 2017 +0800 feat(vm/middlewared): asyncio method bridge_setup. commit 5f9f35b3f45b76f6c57c4b3bf929301486b78a41 Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Thu Jun 22 10:59:22 2017 +0800 feat(vm/middleared): Attach the selected NIC into the bridge. commit 4c8a61adf6e4de8ea9786f5f3559ac7e8d16238c Merge: d66be7aea 876bb1348 Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Thu Jun 22 10:36:12 2017 +0800 Merge branch 'master' into wip_vmiface commit d66be7aeae8139bb9abfbdc8532e56f67f109ad0 Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Thu Jun 22 10:31:07 2017 +0800 feat(vm/middlewared): Setup the bridge with the prefered nic attached chosen by the user. commit 76fd3fe4091beafa1169d261e2c91c650f24e10c Author: Marcelo Araujo <araujo@FreeBSD.org> Date: Wed Jun 21 17:12:48 2017 +0800 feat(vm): First wave of changes to allow users to choose what interface the guest vm will be attached.

History

#1 Updated by Marcelo Araujo about 3 years ago

  • Status changed from Unscreened to Screened

#2 Updated by Marcelo Araujo about 3 years ago

  • Status changed from Screened to Resolved
  • Target version changed from 49 to 11.1

The feature will be in Nightlies soon and it is targeted to FreeNAS 11.1-RELEASE. You will be able to choose which nic the guest will be attached to.

#3 Updated by Dru Lavigne almost 3 years ago

  • Target version changed from 11.1 to 11.1-BETA1

#4 Updated by Nick Wolff almost 3 years ago

  • QA Status Test Passes FreeNAS added
  • QA Status deleted (Not Tested)

#5 Updated by Joe Maloney over 2 years ago

  • Needs QA changed from Yes to No

Also available in: Atom PDF