Using VM virtual machine to install Linux system detailed flow

Recently changed a computer, so you need to reinstall the virtual machine and Linux systems, did not talk much to see it flow

1. Install vm, this is not to say, open VM

 

2. Click Install Virtual Machine

 

 3. Choose the custom installation

 

 4. Select Install later

 

 5. Select the system to install

 

 6. Name the installation path and to determine

 

 

 

 7. The processor and memory configurations, like the default selected

 

 8. Here mode must choose nat

 

 9. still choose the default

Or choose the default

 

Or choose the default

 

 

Or default

 

Or default

 

 

 

 

 Such virtual machine installed, followed by installation of a Linux system

 

 Open virtual machine

 

The following points canceled, this does not matter

 

Here the first option, the mounting system

 

 

 The next step is to wait for the installation

 

Click here to install the source

 

 

 Direct Done

 

Other points are selected next and then default on it, click to start the installation after the election

 

Set the initial password for the root user

 

 

Wait for the installation to complete

 

 

 The installation is complete restart

 

 

 

 You can see, a successful login, click Edit, select the Virtual Network Editor

 

 Click Change settings, configure the gateway ip

 

 The network is set to a static IP

 

命令:vi /etc/sysconfig/network-scripts/ifcfg-ens33   

ifcfg-en33 is the network card configuration file, here is the former editor

 

 

Edited:

 

 

The red box BOOTPROTO = dhcp to BOOTPROTO = static

(Startup type, dhcp for dynamic IP, static for static IP)

And add the following at the bottom

IPADDR=192.168.75.163

NETMASK=255.255.255.0

GATEWAY=192.168.75.2

DNS1 = 114114114114

IPADDRIP address (IP address)

After modifying press Esc, enter: wq (lowercase) to save

Enter the command systemctl restart network.service Network Service Restart

Test connectivity: ping www.baidu.com

 

 

Network lacks the problem

 Connection or virtual machine xshell finalshell

 

 

 

 Click to accept and save retest network

 

 

 

 

 The connection is successful, a good virtual machine and Linux installation is complete, posted the following about the network configuration file modified

TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE = yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE = yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=e41c7933-81fd-4e5a-a95b-6e219a012d97
DEVICE=ens33
ONBOOT=yes
IPADDR=192.168.75.163
NETMASK=255.255.255.0
GATEWAY=192.168.75.2
DNS1 = 114114114114

  

 

 

 

 

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/lusaisai/p/11828311.html