Here is the guest VM network config:
And here is the host's network config:
The fact is that from the host, internet works perfectly. But from the guest I can't access Internet, nor ping
the network hosts.
My home network is behind a NAT, so from what I read on the internet the VM guest should appear with the same host's IP address on the gateway page, in fact:
(I post this link in a comment because I can't add more than 2 links…)
But I don't know why it's like the guest VM isn't connected to the bridge. Or the bridge is blocking its port. I don't know.
ifconfig
from VM guest:
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::23cd:b37e:da10:e228 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:6b:30:a4 txqueuelen 1000 (Ethernet)
RX packets 124050 bytes 94769617 (94.7 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 61781 bytes 4156338 (4.1 MB)
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 1 (Loopback locale)
RX packets 37824 bytes 2318361 (2.3 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 37824 bytes 2318361 (2.3 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ipconfig
from the host:
Scheda Ethernet Bridge di rete:
Suffisso DNS specifico per connessione: homenet.telecomitalia.it
Indirizzo IPv6 locale rispetto al collegamento . : fe80::8df:11b2:77fb:fd3b%44
Indirizzo IPv4. . . . . . . . . . . . : 192.168.1.3
Subnet mask . . . . . . . . . . . . . : 255.255.255.0
Gateway predefinito . . . . . . . . . : 192.168.1.1
Any suggestions please? This is very important…
Best Answer
You currently have a sort-of useless network configuration:
...where the Host-only network adapter isn’t really connected to anything. So first, delete the bridge that’s visible in this screenshot:
Then, go to the virtual machine settings again and select your WiFi adapter in the “Name:” dropdown:
Then, it may work. If VirtualBox is bridged to the bridge (heh), it cannot know the traffic is going over the air.
Why does it not work regularly? The OpenWrt wiki has a great page on client mode wireless with pictures and whatnot: