I've been using vm-bhyve for awhile with Linux, Windows, and FreeBSD guests. Probably around a month ago, but I'm not exactly sure, the guest will seem to start, but then if I try to connect, I can't. If I then do vm list, it shows that it has stopped. The log will say (failed to find virtual switch.
'public' ).
I have always just created a virtual switch, then run vm switch add public re0. (My ethernet card.) Having looked at vermaden's pages, he also says that one should
I tried that, and the switch worked. But then when I tried again, once more, I was back to the can't find switch error. It will on occasion work, but it's far more common for it to not work, whether I have the network suggestions above or not. I also tried creating a bridge, but same result, no luck.
This may be connected to the last time vm-bhyve was updated, but I'm not sure. Web searching shows someone opened an issue years ago, but they seemed to think it had to do with an upgrade, and I haven't seen mention since. I've seen the posts here about pass through, but I don't think it's applicable, as I haven't used pass through, just a simple switch create and adding it to the ethernet card.
I'm wondering if it's only an issue for me, so I haven't opened an issue at the github site, When the issue started, I was on 14.3-p6 but I made a fresh install of 15. Again, the vm worked for one or two tries (without me taking any of the steps suggested above by vermaden), but then quickly went back to being unable to locate the switch.
So, aside from the obvious question of Does anyone know what I'm missing, there's also the question of is this a Just Me(TM) problem, or are others experiencing it? I don't want to open an issue if it's just me.
'public' ).
I have always just created a virtual switch, then run vm switch add public re0. (My ethernet card.) Having looked at vermaden's pages, he also says that one should
Code:
sysrc gateway_enable=YES
sysrc gateway_enable=YES
sysctl net.inet.ip.forwarding=1
host echo net.link.tap.up_on_open=1 >> /etc/sysctl.conf
sysctl net.link.tap.up_on_open=1
This may be connected to the last time vm-bhyve was updated, but I'm not sure. Web searching shows someone opened an issue years ago, but they seemed to think it had to do with an upgrade, and I haven't seen mention since. I've seen the posts here about pass through, but I don't think it's applicable, as I haven't used pass through, just a simple switch create and adding it to the ethernet card.
I'm wondering if it's only an issue for me, so I haven't opened an issue at the github site, When the issue started, I was on 14.3-p6 but I made a fresh install of 15. Again, the vm worked for one or two tries (without me taking any of the steps suggested above by vermaden), but then quickly went back to being unable to locate the switch.
So, aside from the obvious question of Does anyone know what I'm missing, there's also the question of is this a Just Me(TM) problem, or are others experiencing it? I don't want to open an issue if it's just me.