[Bug 241737] [patch] cannot use the tap interface name to build a VM
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Nov 5 16:43:32 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241737
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 at FreeBSD.org
Reporter: fabien.costard at free.fr
Created attachment 208881
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=208881&action=edit
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 device
in /dev/.
I add some code to check if the name matches with a interface and replace it to
create the virtual interface
I hope I was enough clear and my code not too ugly
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-virtualization
mailing list