Use VMWare Workstation 17 Pro under Windows 11 to create a new CentOS Stream 9 64-bit virtual machine and configure the network

Blog directory


Why choose CentOS Stream 9

  • CentOS Linux 8: Passed End-of-life (EOL)
  • CentOS Linux 7: EOL Jun 30th, 2024
  • CentOS Stream 8: EOL May 31st, 2024
  • CentOS Stream 9: End of RHEL9 full support phase

Personally, there is no obvious difference between using CentOS Linux and CentOS Stream. However, if you are used to CentOS and then use Ubuntu, etc., you will not be used to it. However, the CentOS series is more smooth to use.

Then there is the EOL issue. After CentOS has passed EOL, not only does the system stop updating, it may also become very troublesome for users who have little knowledge of the Linux system. For example, if you want to install a certain software and search the Internet for a command yum xxx, As a result, an error was reported when running. I followed various tutorials for configuration for a long time, but in the end the installation was not successful...

Therefore, it is recommended to use CentOS in EOL, which is simple and convenient.

Of course, you can also use alternative versions of CentOS, such as Rocky Linux, etc.

How to respond after CentOS Linux stops maintenance?

download

CentOS official website
CentOS download
CentOS-Stream-9-latest-x86_64-dvd1.iso

Insert image description here

Install

Insert image description here
Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

Insert image description here

access

Insert image description here

Insert image description here

By ipconfigchecking, the host has two network cards, the addresses are 192.168.0.126 and 172.16.2.44.

By ip aviewing, the virtual machine address is 192.168.88.129

We configured the default NAT network mode, with the DHCP service enabled by default, and the virtual machine can directly get the IP

Test access now

Insert image description here

The host can access the virtual machine

Insert image description here

The virtual machine can access Baidu, the host (two IP addresses), and other machines on the host LAN

connect

Connect to the virtual machine through xshell to facilitate copy and paste operations.

If the option is not checked during system installation 允许 root 用户使用密码进行 SSH 登录, xshell will not be able to connect to the virtual machine and will always report that the virtual machine has rejected the password.

Insert image description here

If you cannot connect for this reason, you can /etc/ssh/sshd_config.dadd a new configuration file in the directory 01-permitrootlogin.conf. Other names are also .confacceptable, as long as the suffix is, the file content is PermitRootLogin yes, and then systemctl restart sshdexecute

Snapshot

Snapshot is a very important function of a virtual machine. It is used to save the state of the virtual machine at a certain moment (including power on and off state and memory state?), and the virtual machine can be restored to this state at other times.

For example, if we first create a snapshot, then mess with some software, and finally mess up the system, we can restore the system by restoring to the specified snapshot.

When there are no special requirements for taking snapshots, you can take them in the off state, which will be much faster than in the on state.

Insert image description here

clone

Cloning is a very important function of virtual machines. When we need many virtual machines, we do not need to create them again. We only need to clone an already created virtual machine, and then configure the network, and it will be a brand new virtual machine. Got it

You can clone directly or clone from a snapshot of a virtual machine, but you can only clone a virtual machine or snapshot in a shutdown state, which is very convenient.

There are two types of cloning: linked cloning and complete cloning. Baidu is required for details.

Insert image description here

Insert image description here

Network Configuration

VMWare Workstation Network Settings Bridge Mode Network Address Translation (NAT) Mode Host Only Mode

Guess you like

Origin blog.csdn.net/mrathena/article/details/132379830