I tried to run one Windows program in Wine, which is installed in Jail. The program started and froze.
I thought it was a Wine problem and installed the program on Windows Server 2016, which is hosted inside BHyve VM.
It all happened again.
And then I discovered that the connection indicator in the program showed the absence of a network.
Although other network programs, all browsers, and email clients work fine on the same virtual machine.
I opened network connections Windows and found that localhost 127.0.0.1 was missing.
Ifconfig output in Jail shows
I have an assumption that the program needs the address 127.0.0.1 to work.
How to add it to VMs?
It turns out that localhost in a virtual network is not supported at all, or should I configure it separately?
I thought it was a Wine problem and installed the program on Windows Server 2016, which is hosted inside BHyve VM.
It all happened again.
And then I discovered that the connection indicator in the program showed the absence of a network.
Although other network programs, all browsers, and email clients work fine on the same virtual machine.
I opened network connections Windows and found that localhost 127.0.0.1 was missing.
Ifconfig output in Jail shows
sh:
em0: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
options=4a520b9<RXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,HWSTATS,MEXTPG>
ether f0:92:1c:e0:4c:3b
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
em1: flags=1008802<BROADCAST,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
options=4e524bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6,HWSTATS,MEXTPG>
ether f0:92:1c:e0:4c:3c
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
groups: lo
bridge0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
options=0
ether 58:9c:fc:00:51:72
inet 192.168.1.221 netmask 0xffffff00 broadcast 192.168.1.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 5 priority 128 path cost 2000000
member: epair218a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 6 priority 128 path cost 2000
member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
ifmaxaddr 0 port 1 priority 128 path cost 55
groups: bridge vm-switch viid-4c918@
epair218a: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
description: vnet-portal
options=8<VLAN_MTU>
ether 02:f3:9a:cf:d0:0a
groups: epair
media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
status: active
tap0: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
description: vmnet/win2016-1/0/public
options=80000<LINKSTATE>
ether 58:9c:fc:10:ff:b8
groups: tap vm-port
media: Ethernet 1000baseT <full-duplex>
status: active
Opened by PID 24823
I have an assumption that the program needs the address 127.0.0.1 to work.
How to add it to VMs?
It turns out that localhost in a virtual network is not supported at all, or should I configure it separately?