Because the network card is not activated at boot time.
Go to /etc/sysconfig/network-scripts/
Inside is the network card configuration file. Usually the hostonly configuration file name is: IFCFG-ENP0S8
If you open this file, you can see the ONBOOT=no line configuration. Change it to ONBOOT=yes and restart the virtual machine.
Go to /etc/sysconfig/network-scripts/
Inside is the network card configuration file. Usually the hostonly configuration file name is: IFCFG-ENP0S8
If you open this file, you can see the ONBOOT=no line configuration. Change it to ONBOOT=yes and restart the virtual machine.
Read More:
- CentOS 7 installation error: Cannot find a valid baseurl for repo: base/7/x86_6
- Determining IP information for eth0… failed; no link present. Check cable?
- VirtualBox + CentOS 7 virtual machine setting static IP address of host only NIC
- Error:Connection activation Failed: no suitable device found for this connection solution
- A new virtual machine cannot be connected to the network (error fetching interface information device not found),
- IP address cannot be viewed through ifconfig in virtual machine
- VirtualBox Failed to start LSB:Bring up/down Networking problem
- Linux_ day07_ 05_ Configure common add, delete, modify and query commands in network
- The most complete solution for service network restart failure under CENTOS 7
- Solution to restart without showing eth0 connection after installing virtual machine
- Error, some other host already uses address (How to Fix)
- When ifconfig configures the network, “siocsifaddr: no such device” and “eth0: error while getting interface” appear flags:No such dev”
- Job for network.service Failed because the control process exited with error code. See “SystemC
- VBoxManage.exe: error: Failed to create the host-only adapter
- 【Q&A】Failed to start LSB: Bring up/down networking
- How to disable Network Manager on Linux
- The solution to the problem that the virtual machine and the host SSH can’t connect on vmvare
- Solutions to network connection problems in Ubuntu 16.04.3
- Ubuntu network configuration+Fixing “Failed to bring up eth0” in Ubuntu
- Debian using networking to restart the network can not start the solution of network card