Connect your Vmware Linux VM to your internet

How can i get my vm running Linux to connect to my wifi. My system has the windows OS

1 Like

What kind of VM software are you using? VMware? VirtualBox? Something else? In case you need set up networking to bridge mode and choose your wifi interface.

1 Like

I am currently using VmWare

1 Like

Typically, you select VM. Edit > Virtual Network Editor and Set to bridge mode. See Change VMnet0 Bridged Networking Settings for info. I hope this helps.

1 Like

Thank you so much for your response but it did not work. I am currently working on a project in school and it has to do with getting 5 Linux commands that are top level and make a video of how they work. I wanted my project to be on telnet and firewall but since my vm is not connecting to my wi-fi, i would have to do something different that does not need my vm to communicate outside.

Would you by any chance be able to provide me with a few commands and their uses?:grin:

Thanks.

1 Like

You don’t need wifi to set up firewall and ssh. Do not use telnet. It is outdated. You need to use ssh. Log in to your Linux VM and you can run commands directly. Like

date
ls
pwd
## can you connect to outside ? ## 
ping google.com
host www.google.com 

To become a root user, type:

sudo -i

Now you can set up firewall. Is is Ubuntu VM? Or CentOS VM? Also state Linux version (see how to find Linux version https://www.cyberciti.biz/faq/how-to-check-os-version-in-linux-command-line/)

1 Like

That’s the problem, i am unable to connect to outside and that was why i wanted to get it to my wi-fi. I have tried to ping google but it comes back with “name or service not known.” I even used the ip addr command to check if the vm has an ip but it does not. only loopback addresses and subnet mask.

1 Like

Can you ping to public IP like 1.1.1.1?

ping 1.1.1.1
ping 8.8.8.8

Can you ping to your router IP (assuming that it is 192.168.1.254)?

ping 192.168.1.254

How did you set up networking? Is it DHCP based?

1 Like

Network unreachable. yes. Local DHCP network.

1 Like