Date: Thu, 11 Jul 2024 18:23:16 +0300 From: Odhiambo Washington <odhiambo@gmail.com> To: FreeBSD virtualization <freebsd-virtualization@freebsd.org> Subject: Re: Suddenly unable to access VMs Message-ID: <CAAdA2WPp=nnRwMrsnyBPeBHmKqxERK_GzGDGAYjsbgPEJ1YNMw@mail.gmail.com> In-Reply-To: <202407111449.46BEnLoP051380@gndrsh.dnsmgr.net> References: <CAAdA2WMaO8PPnFErZa0gcN-VPD6My4RtJB3u27BYi=8CWMZK=A@mail.gmail.com> <202407111449.46BEnLoP051380@gndrsh.dnsmgr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Thu, Jul 11, 2024 at 5:49 PM Rodney W. Grimes < freebsd-rwg@gndrsh.dnsmgr.net> wrote: > > My bhyve VMs have been all fine until now. > > I can't ping them and can't SSH into them. However, I can connect to them > > with VNCViewer from a remote host (my PC from my house) :-( > > > > I haven't done any changes on the host at all. > > dnsmasq is running, but seems like the VMs aren't getting the IPs for > some > > reason. > > > > ``` > > cloned_interfaces="bridge0 tap0 tap1 tap2 tap3 tap4 tap5" > > ifconfig_bridge0_name="vmbridge" > > ifconfig_vmbridge="addm em1 addm tap0 addm tap1 addm tap2 addm tap3 addm > > tap4 addm tap5 up" > > ifconfig_vmbridge_alias0="inet 172.16.0.1 netmask 255.255.255.0" > > ``` > > What might have happened? > > > > > > root@gw:/home/wash # ifconfig vmbridge > > vmbridge: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> > > metric 0 mtu 1500 > > options=0 > > ether 58:9c:fc:10:df:1d > > inet 172.16.0.1 netmask 0xffffff00 broadcast 172.16.0.255 > > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > > maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 > > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > > member: tap5 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> > > ifmaxaddr 0 port 10 priority 128 path cost 2000000 > > member: tap4 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> > > ifmaxaddr 0 port 9 priority 128 path cost 2000000 > > member: tap3 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> > > ifmaxaddr 0 port 8 priority 128 path cost 2000000 > > member: tap2 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> > > ifmaxaddr 0 port 7 priority 128 path cost 2000000 > > member: tap1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> > > ifmaxaddr 0 port 6 priority 128 path cost 2000000 > > member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> > > ifmaxaddr 0 port 5 priority 128 path cost 2000000 > > member: em1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> > > ifmaxaddr 0 port 2 priority 128 path cost 55 > > groups: bridge > > nd6 options=9<PERFORMNUD,IFDISABLED> > > root@gw:/home/wash # ssh 172.16.0.99 > > ssh: connect to host 172.16.0.99 port 22: Permission denied > > root@gw:/home/wash # ssh 172.16.0.100 > > ssh: connect to host 172.16.0.100 port 22: Permission denied > > root@gw:/home/wash # ping 172.16.0.100 > > PING 172.16.0.100 (172.16.0.100): 56 data bytes > > ping: sendto: Permission denied > > ping: sendto: Permission denied > > ping: sendto: Permission denied > > ping: sendto: Permission denied > > ^C > > --- 172.16.0.100 ping statistics --- > > 4 packets transmitted, 0 packets received, 100.0% packet loss > > root@gw:/home/wash # ping 172.16.0.99 > > PING 172.16.0.99 (172.16.0.99): 56 data bytes > > ping: sendto: Permission denied > > ping: sendto: Permission denied > > ping: sendto: Permission denied > > ^C > > --- 172.16.0.99 ping statistics --- > > 3 packets transmitted, 0 packets received, 100.0% packet loss > > root@gw:/home/wash # service dnsmasq status > > dnsmasq is running as pid 4190. > > root@gw:/home/wash # > > Permission denied is almost certainly coming from firewall, > either ipfw or pf. > I haven't changed anything in my pf.conf either. What also baffles me is that the VMs are not obtaining IP addresses from dnsmasq. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 In an Internet failure case, the #1 suspect is a constant: DNS. "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html] [-- Attachment #2 --] <div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 11, 2024 at 5:49 PM Rodney W. Grimes <<a href="mailto:freebsd-rwg@gndrsh.dnsmgr.net">freebsd-rwg@gndrsh.dnsmgr.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> My bhyve VMs have been all fine until now.<br> > I can't ping them and can't SSH into them. However, I can connect to them<br> > with VNCViewer from a remote host (my PC from my house) :-(<br> > <br> > I haven't done any changes on the host at all.<br> > dnsmasq is running, but seems like the VMs aren't getting the IPs for some<br> > reason.<br> > <br> > ```<br> > cloned_interfaces="bridge0 tap0 tap1 tap2 tap3 tap4 tap5"<br> > ifconfig_bridge0_name="vmbridge"<br> > ifconfig_vmbridge="addm em1 addm tap0 addm tap1 addm tap2 addm tap3 addm<br> > tap4 addm tap5 up"<br> > ifconfig_vmbridge_alias0="inet 172.16.0.1 netmask 255.255.255.0"<br> > ```<br> > What might have happened?<br> > <br> > <br> > root@gw:/home/wash # ifconfig vmbridge<br> > vmbridge: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP><br> > metric 0 mtu 1500<br> > options=0<br> > ether 58:9c:fc:10:df:1d<br> > inet 172.16.0.1 netmask 0xffffff00 broadcast 172.16.0.255<br> > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15<br> > maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200<br> > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0<br> > member: tap5 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP><br> > ifmaxaddr 0 port 10 priority 128 path cost 2000000<br> > member: tap4 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP><br> > ifmaxaddr 0 port 9 priority 128 path cost 2000000<br> > member: tap3 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP><br> > ifmaxaddr 0 port 8 priority 128 path cost 2000000<br> > member: tap2 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP><br> > ifmaxaddr 0 port 7 priority 128 path cost 2000000<br> > member: tap1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP><br> > ifmaxaddr 0 port 6 priority 128 path cost 2000000<br> > member: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP><br> > ifmaxaddr 0 port 5 priority 128 path cost 2000000<br> > member: em1 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP><br> > ifmaxaddr 0 port 2 priority 128 path cost 55<br> > groups: bridge<br> > nd6 options=9<PERFORMNUD,IFDISABLED><br> > root@gw:/home/wash # ssh 172.16.0.99<br> > ssh: connect to host 172.16.0.99 port 22: Permission denied<br> > root@gw:/home/wash # ssh 172.16.0.100<br> > ssh: connect to host 172.16.0.100 port 22: Permission denied<br> > root@gw:/home/wash # ping 172.16.0.100<br> > PING 172.16.0.100 (172.16.0.100): 56 data bytes<br> > ping: sendto: Permission denied<br> > ping: sendto: Permission denied<br> > ping: sendto: Permission denied<br> > ping: sendto: Permission denied<br> > ^C<br> > --- 172.16.0.100 ping statistics ---<br> > 4 packets transmitted, 0 packets received, 100.0% packet loss<br> > root@gw:/home/wash # ping 172.16.0.99<br> > PING 172.16.0.99 (172.16.0.99): 56 data bytes<br> > ping: sendto: Permission denied<br> > ping: sendto: Permission denied<br> > ping: sendto: Permission denied<br> > ^C<br> > --- 172.16.0.99 ping statistics ---<br> > 3 packets transmitted, 0 packets received, 100.0% packet loss<br> > root@gw:/home/wash # service dnsmasq status<br> > dnsmasq is running as pid 4190.<br> > root@gw:/home/wash #<br> <br> Permission denied is almost certainly coming from firewall,<br> either ipfw or pf.<br></blockquote><div><br></div><div>I haven't changed anything in my pf.conf either.</div><div>What also baffles me is that the VMs are not obtaining IP addresses from dnsmasq. </div></div><br><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223</div><div><span style="color:rgb(34,34,34)"> In </span><span style="color:rgb(34,34,34)">an Internet failure case, the #1 suspect is a constant: DNS.</span><br>"<span style="font-size:12.8px">Oh, the cruft.</span><span style="font-size:12.8px">", </span><span style="font-size:12.8px">egrep -v '^$|^.*#' </span><span style="background-color:rgb(34,34,34);color:rgb(238,238,238);font-family:"Lucida Console",Consolas,"Courier New",monospace;font-size:13.6px">¯\_(ツ)_/¯</span><span style="font-size:12.8px"> :-)</span></div><div><span style="font-size:12.8px">[How to ask smart questions: </span><span style="font-size:12.8px"><a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]</span></div></div></div></div></div>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WPp=nnRwMrsnyBPeBHmKqxERK_GzGDGAYjsbgPEJ1YNMw>
