I am trying to configure a bhyve vm with three interfaces. I can get it configured with two without problem. When I add the third then the one in the middle disappears from the VM if configuration.
However, if I remove the third virtio-net entry then I get this:
What step am I missing?
Code:
# vm list
NAME DATASTORE LOADER CPU MEMORY VNC AUTOSTART STATE
vbsd-01 default bhyveload 4 8G - No Stopped
vhp3k-06 default uefi 4 6G - No Stopped
vhp3k-10 default uefi 4 6G - No Stopped
# vm switch list
NAME TYPE IFACE ADDRESS PRIVATE MTU VLAN PORTS
vm_public_net manual bridge0 n/a no n/a n/a n/a
# cat /zroot/vm/vhp3k-10/vhp3k-10.conf
# Rocky Linux 8.6 2022-08-03
#guest="linux"
loader="uefi"
cpu=4
memory=6G
network0_type="virtio-net"
network0_switch="vm_public_net"
network1_type="virtio-net"
network1_switch="vm_public_net"
network2_type="virtio-net"
network2_switch="vm_public_net"
disk0_type="virtio-blk"
disk0_name="disk0"
disk0_dev="sparse-zvol"
# set up serial console post-install
# Logon with vncviewer to gui console
# append "console=tty0 console=ttyS0,115200" to kernelopts
# using: grub2-editenv - set "kernelopts=root=<options list>"
# gui console
# run vm list to get vnc port
# run vncviewer to connect to console
# do not use vm console
graphics="yes"
graphics_vga="io"
uuid="c7fb0c11-64f5-11ed-a372-7085c2da884f"
network0_mac="58:9c:fc:0a:0a:9c"
network1_mac="58:9c:fc:04:f6:93"
network2_mac="58:9c:fc:00:63:84"
# vm start vhp3k-10
# vm console vhp3k-10
vhp3k-10 login:
[root@vhp3k-10 ~]# ifconfig
enp0s5f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 216.185.71.101 netmask 255.255.255.128 broadcast 216.185.71.127
inet6 fe80::5a9c:fcff:fe0a:a9c prefixlen 64 scopeid 0x20<link>
ether 58:9c:fc:0a:0a:9c txqueuelen 1000 (Ethernet)
RX packets 1019 bytes 81351 (79.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 33 bytes 2584 (2.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp0s5f2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 58:9c:fc:00:63:84 txqueuelen 1000 (Ethernet)
RX packets 1014 bytes 79755 (77.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
However, if I remove the third virtio-net entry then I get this:
Code:
[root@vhp3k-10 ~]# ifconfig
enp0s5f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 216.185.71.101 netmask 255.255.255.128 broadcast 216.185.71.127
inet6 fe80::5a9c:fcff:fe0a:a9c prefixlen 64 scopeid 0x20<link>
ether 58:9c:fc:0a:0a:9c txqueuelen 1000 (Ethernet)
RX packets 370 bytes 30786 (30.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 33 bytes 2598 (2.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp0s5f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.216.101 netmask 255.255.0.0 broadcast 192.168.255.255
ether 58:9c:fc:04:f6:93 txqueuelen 1000 (Ethernet)
RX packets 358 bytes 27938 (27.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 3 bytes 126 (126.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
What step am I missing?