Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Nov 2019 16:43:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        virtualization@FreeBSD.org
Subject:   [Bug 241737] [patch] cannot use the tap interface name to build a VM
Message-ID:  <bug-241737-27103@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241737

            Bug ID: 241737
           Summary: [patch] cannot use the tap interface name to build a
                    VM
           Product: Base System
           Version: 12.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bhyve
          Assignee: virtualization@FreeBSD.org
          Reporter: fabien.costard@free.fr

Created attachment 208881
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D208881&action=
=3Dedit
modification on pci_virtio_net.c

Hi,
If a tap interface is created with a name, it is not possible to start a VM
with bhyve using this name. We must use the device name.

For example, I create this interface (sysctl is correctly configured to use
tap):
ifconfig tap create name port1

when I launch the VM (after loaded it for sure)
bhyve -c 1 -m 256 -A -H -P -s 0:0,hostbridge -s 1,virtio-net,port1 -s 2:0
virtio-blk,/root/rFreeBSD.img -s 31,lpc -l com1,/dev/nmdm0A rFreeBSD

The network will not work because the command is only develop to check devi=
ce
in /dev/.

I add some code to check if the name matches with a interface and replace i=
t to
create the virtual interface

I hope I was enough clear and my code not too ugly

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241737-27103>