directory

[Version Description]

[Installing a VM]

[Typical way to install (recommended small white, with a graphical interface, to help learning, but take up large space)]

[Custom installation (recommended for older drivers)]

[Creating a Snapshot]

[Clone a VM]

Installing Linux virtual machines on Windows is very convenient for both new and old employees. You can understand the basic operation of Linux, you can also set up a local server cluster, and real-time backup of Linux status and so on

Release notes

VMware15 Pro(Using newer versions can guarantee the stability of installed VIRTUAL machines, while earlier versions can introduce some unpredictable errors)

Centos-7 (The new version has high usability. Many enterprises do not use centos-6.8. Therefore, centos-7 is selected, which is in line with actual enterprise scenarios.)

Installing a VM

Install VMware

Go to the network to download, the installation is completed as shown in the figure

Download centos-7 system

Typical way to install (recommended small white, with a graphical interface, to help learning, but take up large space)

Select centos-7 in the local location

Set the login account and password zhangsan/123456

Adjust the system installation position, put it in a folder

The default disk size can be 20 GB. The disk space will be occupied only if it is used, and 20 GB is not allocated immediately. The development environment chooses to store as a single file

Custom hardware

2 gb memory is allocated to meet basic requirements

The virtualization engine enables Linux to obtain the virtualization features of the local hardware, but reduces the virtualization performance

Wait a few minutes for the installation process

The following figure shows the successful installation

Custom installation (recommended for older drivers)

Select the first direct install and press Enter

The second option is to test the system before installing it

Choose the installation language, you can choose Chinese, English is recommended here, after all, the company’s servers are in English

There will be many default options, SOFTWARE SELECTION is enabled by default to minimize the installation, that is, only command line interface, save space

While waiting for the installation, set the root user password 123456

Log in with your default password 123456

In this case, Linux is installed successfully, but cannot be used properly. You need to configure the network environment

IP Reference address: Edit -> Virtual Network Editor -> Change Settings ->NAT Mode ->NAT Settings

Inside is the gateway

Set the Linux SYSTEM IP address to 192.168.61.11. Do not conflict with the gateway

Adjust the parameters as follows

BOOTPROTO=static; IPADDR=192.168.61.11 # IP address GATEWAY=192.168.61.2 # GATEWAY NETMASK=255.255.255.0 # Subnet mask DNS2=8.8.8.8 # Universal DNS serverCopy the code

Restart the network card

systemctl restart network
Copy the code

Test configuration, baidu access, IP address is configured correctly, Linux system is fully installed

Create a snapshot

Each module installed on a VM can be backed up. If an error occurs in subsequent operations, the VM can be directly restored to the specified state. This operation is especially useful when building server clusters and distributed systems

Right mouse button > Snapshot > Take Snapshot

Create a snapshot

Restores the system to the specified state

Right-click snapshot and select a snapshot to restore to the specified state

Clone a VM.

It is impossible to install and configure servers in a cluster. VMware provides the function of cloning virtual machines (VMS) to quickly copy servers

Shut down the server you want to replicate

Right mouse button > Administration > Clone

Select the full clone, which is a standalone Linux system

Generate a NEW MAC address

Setting an IP Address

Restart the network card

Baidu can be accessed and the IP address has been set successfully


To do a good job, he must sharpen his tools