Home  >  Article  >  System Tutorial  >  Solve the problem that the network card cannot be found after CentOS 7 installation

Solve the problem that the network card cannot be found after CentOS 7 installation

WBOY
WBOYforward
2024-01-15 09:39:061188browse

Recently, the network card was missing after centos7 was installed. Finally, I found a way: let’s go and have a look with the editor.

Question one:

I recently picked up python again and installed a virtual machine. In order to be lazy, I used the VM to install the centos7 system. After the installation, I found that there was only ifg-lo and no other network cards. Someone on the Internet said that just add an eth0 and set the basic parameters, but this does not apply to centos7, or my skills are not at that level. Ha ha

Solution:

Use Notepad to open the vmx file in the virtual machine directory and add a line ethernet0.virtualDev = “e1000”

Then restart the virtual machine, ip addr will find that there is one more network card that was originally missing

At this time, just continue to add new network card settings in /etc/sysconfig/network-scripts/

service network restart Restart everything ok

Question 2:

When using a virtual machine to install the system, sometimes it will prompt that Hyper-V is incompatible, especially after just installing Docker.

Solution:

Control Panel-Programs and Features-Turn Windows features on or off-Hyper-V is turned off

I remember that when I installed Docker, many things in the database were not saved and I restarted directly... Depressed

The above is the detailed content of Solve the problem that the network card cannot be found after CentOS 7 installation. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete