Page 1 of 1

wifi and network on virtual box ubuntu not working

PostPosted: 16. May 2021, 09:05
by Thapi
I have installed ubuntu on oracle vm which is installed on ubuntu.
host : ubuntu 20.*
vm : oracle 6.1
installed ubuntu on vm.

i am unable to connect to wifi on ubuntu vm can not update ubuntu on vm as there is no wifi can not communicate with host(ubuntu) with vm(ubuntu)

can any one help suggest.

actually i was trying to create kubernetes cluster with multiple nodes one on host and one on vm.

Re: wifi and network on virtual box ubuntu not working

PostPosted: 16. May 2021, 10:11
by mpack
There is no virtual WiFi NIC, so unless you bought a USB one there's no way for a VM to "see" WiFi. It will see a simulated Ethernet connection as always. Stick to NAT networking, it's the simplest. Don't worry about how it works.

Re: wifi and network on virtual box ubuntu not working

PostPosted: 17. May 2021, 13:36
by Thapi
Thanks mpack,
i just put it to NAT and wifi is working now.

I am able to ping my host(ubuntu) ip from vm(ubuntu), but i am unable to ping vm from host.
can anyone share any links to implement networking between host and vm. both ubutu .

Re: wifi and network on virtual box ubuntu not working

PostPosted: 17. May 2021, 16:18
by mpack
NAT by its very nature will ignore unsolicited packets, i.e. it will only accept reply packets. Good for security, not so good for ping.

Also, you have to think about what network you're on. The NAT network is virtual, it doesn't exist outside the VM process.

Have a read of Tutorial: VirtualBox Networks - In Pictures.

Re: wifi and network on virtual box ubuntu not working

PostPosted: 17. Jun 2021, 17:06
by BdazmedPrim
Thanks, folks, was very helpful for me - you and NAT are made my day!