Connecting VM Centos 7 to internet


I have a Centos 7 virtual machine on my virtualbox hypervisor, which has been great for practicing vim and such. However, when trying to get onto the internet, I wasn’t successful- and poking around the configuration settings of the software platform didn’t seem to work (without doing a deep dive, anyways).

I followed this video, which outlined the following steps.

$ nmcli #displayed interfaces were not connected
To fix this:
$ vim /etc/sysconfig/network-scripts/ifcfg-enp0s31

Within the configuration file, I changed the emp0s3 value’s attribute to yes

Now, when I I ran nmcli, I still showed the not connected error field. Hmmm.

$ sudo systemctl restart network.service
# this did the trick!
# when I ran the following
$ nmcli
# it showed that emp0s3 was connected.

Hooray! Now, when I pinged google.com, for example, I could see the bytes being transferred. Now…to quickly make a backup image 🙂

, ,

Leave a comment