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

MySql index improves query speed common methods code examples

Use indexes to speed up queries 1. Introduction I...

Set IE8 to use IE7 style code

<meta http-equiv="x-ua-compatible" co...

CentOS installation mysql5.7 detailed tutorial

This article shares the detailed steps of install...

How to create a table in mysql and add field comments

Directly post code and examples #Write comments w...

Use semantic tags to write your HTML compatible with IE6,7,8

HTML5 adds more semantic tags, such as header, fo...

isPrototypeOf Function in JavaScript

Table of contents 1. isPrototypeOf() Example 1, O...

Solution to the problem of not finding Tomcat configuration in Intelli Idea

I joined a new company these two days. The compan...

vue.config.js packaging optimization configuration

The information on Baidu is so diverse that it...

A brief explanation of the reasonable application of table and div in page design

At the beginning of this article, I would like to ...

Sample code for implementing mysql master-slave replication in docker

Table of contents 1. Overview 1. Principle 2. Imp...

Installing the ping tool in a container built by Docker

Because the Base images pulled by Docker, such as...

Security configuration and detection of SSL after the website enables https

It is standard for websites to enable SSL nowaday...

Analysis of the differences between Iframe and FRAME

1. Use of Iframe tag <br />When it comes to ...