Hi guys, question about bhyve VM networking, I install ArchLinux vm guest, can access internet from vm (
- Host OS version:
- Host
- Host VM switch and routing table (internet via
- Host
- VM ip and route table
Welcome any idea about how to debug and solve, many thanks
ping google.co.nz
works, pacman install works, curl file works) except can't git clone
(Failed to connect to github.com port 443 after 133428 ms: Couldn't connect to server
). Need a guide to solve this- Host OS version:
Bash:
FreeBSD th80 14.0-RELEASE-p5 FreeBSD 14.0-RELEASE-p5 #0: Tue Feb 13 23:37:36 UTC 2024 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
- Host
pf
disabled
Bash:
doas service pf status
Status: Disabled for 0 days 00:41:16 Debug: Urgent
- Host VM switch and routing table (internet via
igc0
ethernet, not WIFI)
Bash:
doas vm switch list
# NAME TYPE IFACE ADDRESS PRIVATE MTU VLAN PORTS
# internal standard vm-internal 192.168.2.1/24 no - - igc0
netstat -rn4
# Routing tables
#
# Internet:
# Destination Gateway Flags Netif Expire
# default 192.168.1.200 UGS igc0
# 127.0.0.1 link#2 UH lo0
# 192.168.1.0/24 link#3 U wlan0
# 192.168.1.160 link#2 UHS lo0
# 192.168.1.190 link#2 UHS lo0
# 192.168.2.0/24 link#5 U vm-inter
# 192.168.2.1 link#2 UHS lo0
- Host
ifconfig
when vm guest is running
Bash:
ifconfig
igc0: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
options=4a420b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWTSO,RXCSUM_IPV6,HWSTATS,MEXTPG>
ether 58:47:ca:70:14:b5
inet 192.168.1.160 netmask 0xffffff00 broadcast 192.168.1.255
groups: pfnic
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
groups: lo
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=0
ether a0:80:69:f4:cd:1a
inet 192.168.1.190 netmask 0xffffff00 broadcast 192.168.1.255
groups: wlan pfnic
ssid JI-LE-SHI-JIE channel 40 (5200 MHz 11a) bssid 34:58:40:ca:f8:bc
regdomain APAC2 country NZ authmode WPA2/802.11i privacy ON
deftxkey UNDEF AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 17 bmiss 7
mcastrate 6 mgmtrate 6 scanvalid 60 wme roaming MANUAL
parent interface: iwlwifi0
media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11a
status: associated
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
pflog0: flags=0 metric 0 mtu 33152
options=0
groups: pflog
vm-internal: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
options=0
ether 8e:4a:c9:b2:73:03
inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.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: tap0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 6 priority 128 path cost 2000000
member: igc0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 20000
groups: bridge vm-switch viid-d1efa@
nd6 options=9<PERFORMNUD,IFDISABLED>
tap0: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
description: vmnet/my-arch/0/internal
options=80000<LINKSTATE>
ether 58:9c:fc:10:ff:9e
groups: tap vm-port
media: Ethernet 1000baseT <full-duplex>
status: active
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Opened by PID 31357
- VM ip and route table
Bash:
ip add
# 2: enp0s5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
# link/ether 58:9c:fc:0b:40:26 brd ff:ff:ff:ff:ff:ff
# inet 192.168.2.10/24 brd 192.168.2.255 scope global enp0s5
# valid_lft forever preferred_lft forever
# inet6 2407:7000:98b6:b200:5a9c:fcff:fe0b:4026/64 scope global dynamic mngtmpaddr noprefixroute
# valid_lft 1295905sec preferred_lft 647905sec
# inet6 fe80::5a9c:fcff:fe0b:4026/64 scope link proto kernel_ll
# valid_lft forever preferred_lft forever
ip route show
# default via 192.168.2.1 dev enp0s5 proto static
# 192.168.2.0/24 dev enp0s5 proto kernel scope link src 192.168.2.10
Welcome any idea about how to debug and solve, many thanks