Re: Multiple VM hosting using bhyve
On Wed, Sep 28, 2016 at 07:15:17PM -0400, Allan Jude wrote: > On 2016-09-28 19:09, Paul Vixie wrote: > > > > > > The Doctor wrote: > >> How do I "bridge" these "Taps"? > > > > here's rc.conf from my second bhyve milking machine: > > > > hostname="mm2.redbarn.org" > > defaultrouter="149.20.59.1" > > ipv6_defaultrouter="2001:4f8:3:1006::1" > > > > ifconfig_igb0="inet 149.20.56.188/29" > > ifconfig_igb0_ipv6="inet6 2001:4f8:3:1007::4/64" > > > > autobridge_interfaces="bridge0" > > autobridge_bridge0="tap* igb1" > > ifconfig_igb1="up media 1000baseTX" > > cloned_interfaces="bridge0 tap0 tap1 tap2 tap3 tap4 tap5 tap6 tap7" > > ifconfig_bridge0="inet 149.20.59.4/24" > > ifconfig_bridge0_ipv6="inet6 2001:4f8:3:1006::4/64 auto_linklocal up" > > ifconfig_tap0="up" > > ifconfig_tap1="up" > > ifconfig_tap2="up" > > ifconfig_tap3="up" > > ifconfig_tap4="up" > > ifconfig_tap5="up" > > ifconfig_tap6="up" > > ifconfig_tap7="up" > > > > > > You might also find the sysctl: > net.link.tap.up_on_open=1 > > useful, as it will re-up the tap devices when bhyve opens them. Else > rebooting a bhyve might end up with the tap interface in a down state. > Check, check and check. Hoever, yes I install the virtual machines but they cannot see the network once installed :-( The ifconfig_bridge0 should that be the virtual switch interface hence the defaultrouter / default gateway interface on the VM? right now I am assigning the VM from me 204.209.81.0/24 stack with the 204.209.81.1 hosting all Vitural machines and being the NS1 and 204.209.81.3 being the NS2 with 204.209.81.2 being the default gateway >From my /etc/rc.local /sbin/ifconfig igb0 alias 10.0.0.2 netmask 0x /sbin/ifconfig igb0 alias 10.0.0.3 netmask 0x /sbin/ifconfig igb0 alias 10.0.0.4 netmask 0x /sbin/ifconfig igb0 alias 10.0.0.5 netmask 0x /sbin/ifconfig igb0 alias 10.0.0.6 netmask 0x /sbin/ifconfig igb0 alias 10.0.0.7 netmask 0x /sbin/ifconfig igb0 alias 10.0.0.8 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.50 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.51 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.52 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.53 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.54 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.55 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.56 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.57 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.58 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.59 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.60 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.61 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.62 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.63 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.64 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.65 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.66 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.67 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.68 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.69 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.70 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.71 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.72 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.73 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.74 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.75 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.76 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.77 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.78 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.79 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.80 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.81 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.82 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.83 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.84 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.85 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.86 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.87 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.88 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.89 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.90 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.91 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.92 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.93 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.94 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.95 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.96 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.97 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.98 netmask 0x /sbin/ifconfig igb0 alias 204.209.81.99 netmask 0x /sbin/ifconfig igb0
Re: Multiple VM hosting using bhyve
Allan Jude wrote: You might also find the sysctl: net.link.tap.up_on_open=1 useful, as it will re-up the tap devices when bhyve opens them. Else rebooting a bhyve might end up with the tap interface in a down state. can do. but, that's never happened. can you tell me what "might" means? -- P Vixie ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: Multiple VM hosting using bhyve
On 2016-09-28 19:09, Paul Vixie wrote: > > > The Doctor wrote: >> How do I "bridge" these "Taps"? > > here's rc.conf from my second bhyve milking machine: > > hostname="mm2.redbarn.org" > defaultrouter="149.20.59.1" > ipv6_defaultrouter="2001:4f8:3:1006::1" > > ifconfig_igb0="inet 149.20.56.188/29" > ifconfig_igb0_ipv6="inet6 2001:4f8:3:1007::4/64" > > autobridge_interfaces="bridge0" > autobridge_bridge0="tap* igb1" > ifconfig_igb1="up media 1000baseTX" > cloned_interfaces="bridge0 tap0 tap1 tap2 tap3 tap4 tap5 tap6 tap7" > ifconfig_bridge0="inet 149.20.59.4/24" > ifconfig_bridge0_ipv6="inet6 2001:4f8:3:1006::4/64 auto_linklocal up" > ifconfig_tap0="up" > ifconfig_tap1="up" > ifconfig_tap2="up" > ifconfig_tap3="up" > ifconfig_tap4="up" > ifconfig_tap5="up" > ifconfig_tap6="up" > ifconfig_tap7="up" > > You might also find the sysctl: net.link.tap.up_on_open=1 useful, as it will re-up the tap devices when bhyve opens them. Else rebooting a bhyve might end up with the tap interface in a down state. -- Allan Jude signature.asc Description: OpenPGP digital signature
Re: Multiple VM hosting using bhyve
The Doctor wrote: How do I "bridge" these "Taps"? here's rc.conf from my second bhyve milking machine: hostname="mm2.redbarn.org" defaultrouter="149.20.59.1" ipv6_defaultrouter="2001:4f8:3:1006::1" ifconfig_igb0="inet 149.20.56.188/29" ifconfig_igb0_ipv6="inet6 2001:4f8:3:1007::4/64" autobridge_interfaces="bridge0" autobridge_bridge0="tap* igb1" ifconfig_igb1="up media 1000baseTX" cloned_interfaces="bridge0 tap0 tap1 tap2 tap3 tap4 tap5 tap6 tap7" ifconfig_bridge0="inet 149.20.59.4/24" ifconfig_bridge0_ipv6="inet6 2001:4f8:3:1006::4/64 auto_linklocal up" ifconfig_tap0="up" ifconfig_tap1="up" ifconfig_tap2="up" ifconfig_tap3="up" ifconfig_tap4="up" ifconfig_tap5="up" ifconfig_tap6="up" ifconfig_tap7="up" -- P Vixie ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: Multiple VM hosting using bhyve
On 2016-09-27 18:00, The Doctor wrote: > On Tue, Sep 27, 2016 at 05:07:01PM -0400, Allan Jude wrote: >> On 2016-09-27 17:02, The Doctor wrote: >>> On Tue, Sep 27, 2016 at 04:23:49PM -0400, Allan Jude wrote: On 2016-09-27 16:11, The Doctor wrote: > The big question: > > Can you host multiple virtual machines on one FreeBSD Box? > > I am thinking of hosting multiple Linux and maybe Win2016 VMs one one > server. > Yes, you can most as many VMs as you want, provided you have enough RAM, CPU, and storage IOPS to power them all. >>> >>> Dual 1.7 Xeon 64 bit CPUs and 16 GB ECC Ram >>> >>> should be plenty. >>> >>> All right, what bhyve sequence do I need to >>> distinguish the taps and the guests? >>> -- Allan Jude ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org" >>> >> >> When you invoke bhyve, just specify different tap devices. They do not >> need to be sequential. Each bhyve has a name. >> >> linux1 -> tap1 >> linux2 -> tap2 >> windows1 -> tap101 >> >> or whatever you want to do. >> > > Getting you. > > All right > > Just reading 21.7.1 of the handbook > > How do I "bridge" these "Taps"? > >> -- >> Allan Jude > ifconfig bridge0 create addm tap1 addm tap2 addm real-interface-here There is a section in the handbook on bridging too. -- Allan Jude ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: Multiple VM hosting using bhyve
On Tue, Sep 27, 2016 at 05:07:01PM -0400, Allan Jude wrote: > On 2016-09-27 17:02, The Doctor wrote: > > On Tue, Sep 27, 2016 at 04:23:49PM -0400, Allan Jude wrote: > >> On 2016-09-27 16:11, The Doctor wrote: > >>> The big question: > >>> > >>> Can you host multiple virtual machines on one FreeBSD Box? > >>> > >>> I am thinking of hosting multiple Linux and maybe Win2016 VMs one one > >>> server. > >>> > >> > >> Yes, you can most as many VMs as you want, provided you have enough RAM, > >> CPU, and storage IOPS to power them all. > >> > > > > Dual 1.7 Xeon 64 bit CPUs and 16 GB ECC Ram > > > > should be plenty. > > > > All right, what bhyve sequence do I need to > > distinguish the taps and the guests? > > > >> -- > >> Allan Jude > >> ___ > >> freebsd-virtualization@freebsd.org mailing list > >> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > >> To unsubscribe, send any mail to > >> "freebsd-virtualization-unsubscr...@freebsd.org" > > > > When you invoke bhyve, just specify different tap devices. They do not > need to be sequential. Each bhyve has a name. > > linux1 -> tap1 > linux2 -> tap2 > windows1 -> tap101 > > or whatever you want to do. > Getting you. All right Just reading 21.7.1 of the handbook How do I "bridge" these "Taps"? > -- > Allan Jude -- Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca God,Queen and country!Never Satan President Republic!Beware AntiChrist rising! http://www.fullyfollow.me/rootnl2k Look at Psalms 14 and 53 on Atheism Time for the USA to hold a referendum on its republic and vote to dissolve!! ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: Multiple VM hosting using bhyve
On 2016-09-27 17:02, The Doctor wrote: > On Tue, Sep 27, 2016 at 04:23:49PM -0400, Allan Jude wrote: >> On 2016-09-27 16:11, The Doctor wrote: >>> The big question: >>> >>> Can you host multiple virtual machines on one FreeBSD Box? >>> >>> I am thinking of hosting multiple Linux and maybe Win2016 VMs one one >>> server. >>> >> >> Yes, you can most as many VMs as you want, provided you have enough RAM, >> CPU, and storage IOPS to power them all. >> > > Dual 1.7 Xeon 64 bit CPUs and 16 GB ECC Ram > > should be plenty. > > All right, what bhyve sequence do I need to > distinguish the taps and the guests? > >> -- >> Allan Jude >> ___ >> freebsd-virtualization@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization >> To unsubscribe, send any mail to >> "freebsd-virtualization-unsubscr...@freebsd.org" > When you invoke bhyve, just specify different tap devices. They do not need to be sequential. Each bhyve has a name. linux1 -> tap1 linux2 -> tap2 windows1 -> tap101 or whatever you want to do. -- Allan Jude ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: Multiple VM hosting using bhyve
On Tue, Sep 27, 2016 at 04:23:49PM -0400, Allan Jude wrote: > On 2016-09-27 16:11, The Doctor wrote: > > The big question: > > > > Can you host multiple virtual machines on one FreeBSD Box? > > > > I am thinking of hosting multiple Linux and maybe Win2016 VMs one one > > server. > > > > Yes, you can most as many VMs as you want, provided you have enough RAM, > CPU, and storage IOPS to power them all. > Dual 1.7 Xeon 64 bit CPUs and 16 GB ECC Ram should be plenty. All right, what bhyve sequence do I need to distinguish the taps and the guests? > -- > Allan Jude > ___ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to > "freebsd-virtualization-unsubscr...@freebsd.org" -- Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca God,Queen and country!Never Satan President Republic!Beware AntiChrist rising! http://www.fullyfollow.me/rootnl2k Look at Psalms 14 and 53 on Atheism Time for the USA to hold a referendum on its republic and vote to dissolve!! ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: Multiple VM hosting using bhyve
On 2016-09-27 16:11, The Doctor wrote: > The big question: > > Can you host multiple virtual machines on one FreeBSD Box? > > I am thinking of hosting multiple Linux and maybe Win2016 VMs one one server. > Yes, you can most as many VMs as you want, provided you have enough RAM, CPU, and storage IOPS to power them all. -- Allan Jude ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"