wifi and network on virtual box ubuntu not working

This is for discussing general topics about how to use VirtualBox.
Post Reply
Thapi
Posts: 2
Joined: 16. May 2021, 09:01

wifi and network on virtual box ubuntu not working

Post 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.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: wifi and network on virtual box ubuntu not working

Post 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.
Thapi
Posts: 2
Joined: 16. May 2021, 09:01

Re: wifi and network on virtual box ubuntu not working

Post 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 .
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: wifi and network on virtual box ubuntu not working

Post 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.
BdazmedPrim
Posts: 1
Joined: 17. Jun 2021, 16:18
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Unbutu/Kali, Win XP

Re: wifi and network on virtual box ubuntu not working

Post by BdazmedPrim »

Thanks, folks, was very helpful for me - you and NAT are made my day!
Post Reply