After the minimal of CentOS7 is installed in VirtualBox, the first thing is to set network access. First, run the nmtui command to enter NetworkManager. select Editaconnection to configure your network connection: select Edit to enter DHCP configuration: Select IPv4CONFIGURATION to Automatic,
After installing minimal of CentOS 7 in Virtual Box, the first thing is to set network access.
First, run the nmtui command to enter Network Manager, as shown below:
Select Edit a connection to configure your network connection:
Select Edit to enter DHCP configuration:
Select "IPv4 CONFIGURATION" as "Automatic" and select "Automatically connect.
Finally, return to the command line and enter:
Service network restart
And then connect to the network. In Virtual Box, note that the network connection mode of Virtual Box must be set to NAT.
With the network connection, life will be bright!