Detailed configuration steps for installing Linux (CentOS) under VMware virtual machine

Detailed configuration steps for installing Linux (CentOS) under VMware virtual machine

Download CentOS7

The image I downloaded is CentOS-7-x86_64-DVD-1908.iso . You can also choose freely. The download link is below.

CentOS official website:

http://isoredirect.centos.org/centos/7.4.1708/isos/x86_64/

Alibaba Cloud Site:

http://mirrors.aliyun.com/centos/7/isos/x86_64/

It is recommended to download from the Alibaba Cloud site . Downloading from the official website may be very slow or even the webpage cannot be opened.

VMware Configuration

It is assumed here that you have already installed the virtual machine. If not, please go to the download page.

1. Set IPv4 properties of VMware Network Adapter VMnet8

Please execute in sequence: [Network] → [Change adapter settings] → [Modify the IPv4 address of the network shown in the red box in the figure below]

insert image description here

As shown in the figure below, it should look like this after the modification:

insert image description here

Finally, confirm it and we can proceed.

2. Open VMware virtual machine software

Please execute in sequence: [Edit] → [Virtual Network Editor] in the menu

insert image description here

Set VMnet8 NAT mode: Subnet IP: 192.168.56.0, Subnet mask: 255.255.255.0 Make changes as shown in the figure below.

insert image description here

Then click NAT Settings and change the gateway IP to: 192.168.56.10. Make changes as shown in the figure below.

insert image description hereinsert image description here

Finally, click OK. There may be some lag at this time.

Creating a virtual machine

Open VMware and click Create Virtual Machine, as shown below:

insert image description here

Select the image we just downloaded and click Next.

insert image description here

Give the virtual machine a name and choose where to store it.

insert image description here

Next, specify the disk size, the default is fine.

insert image description here

At this time, click the "Customize Hardware" button: set the memory to 2GB and the processor to 2.

insert image description here

Finally, click Finish.

insert image description here

Configuring CentOS

We first need to install the system. Use the arrow keys to move to Install CentOS 7 and press Enter.

insert image description here

Then after a while, you will see the interface as shown below. Then the default is English, of course, you can also choose Chinese or other languages.

insert image description here

Then click on the red box in the picture below.

insert image description here

At this point, you should have the same interface as the one shown below, then confirm.

insert image description here

Finally, you will find that there is no exclamation mark. But don't rush Begin Installaction, please see below. But don't rush Begin Installaction, please see below. But don't rush Begin Installaction, please see below.

insert image description here

Here is a tip: Linux has a graphical interface and a command line DOS interface. The default is the minimum installation, which is the command line.

If you want to use a graphical interface (like Windows), please select it in the picture below. It is recommended that you use the default minimal installation (command line)

insert image description here

Set password

ROOT password: This password has a very high authority level and is also called super user. USER password: This password has a general authority level and is also called a common user.

While you are waiting for the installation, you may want to set your ROOT password and USER password.

insert image description here

After the settings are completed, click the button as shown and wait for a while again.

insert image description here

After completion, the virtual machine will restart and then come to the interface as shown below.

insert image description here

Login Test

Next, we log in as the root super administrator to test it and type the command:

root

After typing the command, the password input state will appear. Note that the characters you input will not be displayed at this time. Don't think that your keyboard is broken...

When the virtual machine is turned on, the keypad area will be closed. If the password you set contains numbers, please confirm whether to turn on the keypad to avoid mistakenly thinking that the password is forgotten or wrong.

insert image description here

Configure the network

Currently our system has no network connection, we need further configuration.

Note: The vi editing command will be used here. If you are unfamiliar with it, it is recommended to learn it on Baidu.

Type the following command:

vi /etc/sysconfig/network-scripts/ifcfg-ens33 

insert image description here

First press the Instert key to enter the editing mode, and the up and down arrow keys on the keyboard control the input cursor position.

Change the current network configuration to the following one. Note that you should not add the word "modify". This is just a reminder for you.

BOOTPROTO=static (modified)IPADDR=192.168.56.110NETMASK=255.255.255.0GATEWAY=192.168.56.10ONBOOT=yes (modified)DNS1= 8.8.8.8DNS2=8.8.8.4

Press the "ESC key", ":wq" to save and exit, and ":q!" to exit without saving .

After the modification, it looks like this:

insert image description here

You can type the following command to check if your configuration is the same as mine:

cat /etc/sysconfig/network-scripts/ifcfg-ens33

Restart the network

Type the following command:

service network restart

As shown in the figure, the green OK indicates a successful restart.

insert image description here

If you follow the steps strictly, you can ping 192.168.56.10 at this time.

ping ping 192.168.56.10 

insert image description here

Write at the back

Congratulations on completing the configuration. Don't be discouraged if it fails! Just start over!

At this time, you can use remote connection linux tools such as Xshell for remote control. If you want to upload files from local to linux, you can also use Xftp tool.

You may also be interested in:
  • Windows uses VMware to create a Linux virtual machine and install the CentOS7.2 operating system
  • Tutorial on installing CentOs7 with VMware in win7 to build a Linux environment
  • Detailed tutorial on VMware installation of Linux CentOS 7.7 system
  • Linux Learning CentOS (I) ---- Install CentOS 7 in VMware Virtual Machine (Graphic Tutorial)
  • VMware installs Linux system on virtual machine
  • VMWARE installation and Linux system installation under VMWARE (graphic tutorial)
  • Install Linux using VMware virtual machine (CentOS7 image)

<<:  A brief introduction to mysql mycat middleware

>>:  How to use jsx syntax correctly in vue

Recommend

How to set background blur with CSS

When making some pages, in order to make the page...

Detailed analysis of MySQL 8.0 memory consumption

Table of contents 1. innodb_buffer_pool_size 2. i...

JavaScript to implement retractable secondary menu

The specific code for implementing the retractabl...

Implementation of CentOS8.0 network configuration

1. Differences in network configuration between C...

A simple method to modify the size of Nginx uploaded files

Original link: https://vien.tech/article/138 Pref...

IIS7~IIS8.5 delete or modify the server protocol header Server

Requirements: Remove HTTP response headers in IIS...

How to use CSS to achieve data hotspot effect

The effect is as follows: analyze 1. Here you can...

How to adjust the log level of nginx in Docker

Table of contents Intro Nginx Dockerfile New conf...

Problems and solutions for installing Docker on Alibaba Cloud

question When installing Docker using Alibaba Clo...

How to use CSS custom variables in Vue

Table of contents The CSS custom variable functio...

Mobile development tutorial: Summary of pixel display issues

Preface I believe that in the process of mobile t...

Query the data of the day before the current time interval in MySQL

1. Background In actual projects, we will encount...