Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Oct 2020 15:11:39 +1100
From:      Jason Tubnor <jason@tubnor.net>
To:        "D'Arcy Cain" <darcy@druid.net>
Cc:        "Patrick M. Hausen" <hausen@punkt.de>,  "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   Re: When is a switch not a switch?
Message-ID:  <CACLnyCLs6hG9K0eonfxdVuf-=kcR1zT_B7W5KkyLs%2BO5EZK=3Q@mail.gmail.com>
In-Reply-To: <b39bb54e-dd49-e7b6-5493-41f40a9ee74a@druid.net>
References:  <57c32e6d-5572-3d3b-1a57-f3064bee7dc2@druid.net> <20201020065630.GE8272@funkthat.com> <CF189122-7D85-4BF1-9172-75D3EE0E77FB@punkt.de> <3ed627e2-d99a-107e-4135-8aef1ad4ec71@druid.net> <30A67F82-312E-4651-A5E7-2E2AD926FF24@punkt.de> <973b1b56-817f-6976-e5d3-34cfbc373b13@druid.net> <A075C069-1F89-428C-BDB7-7A9F44A4E283@punkt.de> <723CA318-80E9-4A6B-91ED-E791A40CC2C0@punkt.de> <6267599d-bc0c-6d63-bb19-1fc695e53997@druid.net> <CACLnyCJmLcRe-19iy2eZY8gxF9PGbzvaudTGEFcAHaMidL8XAw@mail.gmail.com> <b39bb54e-dd49-e7b6-5493-41f40a9ee74a@druid.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 23 Oct 2020 at 01:03, D'Arcy Cain <darcy@druid.net> wrote:

>
> >
> >
> > tap0 is not a member of public so has no way to get to eth0 or public.
>
> Odd.  I thought that vm-bhyve did that when the VM came up.
>
> Hmm.  It looks like tap0 gets attached to vm-public if it is configured to
> attach to public.  Perhaps I just need to name the bridge that way.
>

If you create the virtual switch (bridge) for vm-bhyve using:

vm switch create -b <existing bridge name> <what vm-bhyve should know it as>

Then for the guest:

vm add -d network -s <what vm-bhyve should know it as> <guest name>

When you start your guest up, it will attach to the existing bridge you
defined in rc.conf, each time.


>
> > vm add -d network -s public <guestname>
>
> Hard to automate when VM can migrate to another host.
>
>
If both your hosts are configured using the same naming conventions for
bridges and vm-bhyve switches, migration should be pretty simple and
painless.

Cheers,

Jason.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACLnyCLs6hG9K0eonfxdVuf-=kcR1zT_B7W5KkyLs%2BO5EZK=3Q>