[Linux Getting Started Guide] The second part of Linux system environment construction




1. Introduction to VMware

VMware Workstation is a professional virtual machine designed by VMware. It can run another operating system on any operating system to build multiple virtual computer systems. The operating system originally installed on that computer is called the main operating system, and the operating system installed on the virtual computer is called the guest operating system.

insert image description here

1. Why use a virtual machine?
Linux has powerful functions, but most computers on the market use windows or mac operating systems. As a novice user, it is unrealistic to transfer all of them to Linux under the existing operating system at once, and the virtual machine can complete any switching between the existing operating system and the Linux operating system.

There are four reasons:
1. Build a network environment with a single computer: Under one computer, users can build a small network environment between the host and multiple virtual operating systems, and can perform network configuration, debugging, and network programming test applications.
2. Cross-platform transplantation of software development: can be developed in the windows environment, and then transplanted to Linux or UNIX for cross-platform testing applications 3.
System learning: can switch to the Linux environment to learn and operate at any time in the windows environment
4. Perform dangerous operations: formatting the Linux partition on the virtual machine will not affect the real windows system partition

Two, VMware installation steps

Step1. Go to Baidu search VMware official website to download VWware installation package
VMware official website address: https://www.vmware.com/cn.html
insert image description here
Step2. Select VMware.exe file, right mouse button to run as administrator
insert image description here

Step3. Click Next
insert image description here

Step4. Select I accept and click Next
insert image description here

Step5. You can change the installation location (it is not recommended to install it on the C drive), and click Next:
insert image description here

Step6. Uncheck the two checks and select Next:
insert image description here

Step7. You can create desktop and start menu folders according to your personal preference:
insert image description here

Step8. Click to install:

insert image description here

Step9. After the installation is complete, click the license:
insert image description here
Step10. Enter the key in the input box (you can find the key in Baidu), and then click Input:
This is the VMware license, choose one and fill it in.
insert image description here
insert image description here

Step10. Click to complete the installation:
insert image description here

Step11. Enter the interface, the tutorial is over;
insert image description here
well, the VMware installation is complete here

3. Introduction to CentOS

CentOS is one of the Linux distributions, which is compiled from the source code released by Red Hat Enterprise Linux in accordance with the open source code regulations. Because it comes from the same source code, some servers that require high stability
use CentOS instead of the commercial version of Red Hat Enterprise Linux. The difference between the two is that CentOS does not contain closed source software.
insert image description here

4. Detailed steps to create Linux on a virtual machine


Step1. Create a virtual machine
insert image description here
Step2. Click [Typical], then select the next step
insert image description here
Step3. Select Later [Install Operating System], and then click Next;
insert image description here
Step4. Select the Linux operating system for the client, and select the version as CentOS7 64-bit insert image description here
Step5. Click [Browse] to set the path. Generally, it is not recommended to install it on the C drive. Choose a disk to create a folder to install, and then click Next;
insert image description here
Step6. The size of the disk is 20G, and choose to split the virtual disk into multiple files, and then click Next; Step7. Click [
insert image description here
Custom Hardware], select [Memory], and modify the memory to an appropriate size
insert image description here
insert image description here
;

insert image description here
Step9. Click [Network Adapter], select [Host Mode Only];
insert image description here
Step10. Click [USB Controller], click [Remove]; Step11
insert image description here
. Click [Printer], then click [Remove] and click [Close]; Step12
insert image description here
. Click [Finish] ; Step13. Click [
insert image description here
Start Virtual Machine];
insert image description here

insert image description here

insert image description here

Step15.选择【中文】,然后点击【继续】;
insert image description here
Step16.点击【软件选项】;
insert image description here
Step18.选【带GUI的服务器】,然后点击【完成】
insert image description here
Step19.点击【网络和主机名】;
insert image description here
Step20.点击【完成】
insert image description here
Step21.点击【安装位置】;
insert image description here
Step22.点击【完成】;
insert image description here
Step23.点击【开始安装】;
insert image description here
Step24.点击【ROOT密码】;
insert image description here
Step25.设置ROOT密码,然后点击【完成】;
insert image description here
two thousand years later …
insert image description here
Step26.安装完成后,点击【重启】;insert image description here
two thousand years later …
insert image description here
Step27.点击【LICESE INFORMATION】
insert image description here
Step28.勾选 【我同意许可协议】,然后点击【完成】;
insert image description here
Step29.点击右下角【完成配置】;
insert image description here
Step30.选择【汉语】,然后点击【前进】;
insert image description here
Step31.点击【前进】
insert image description here
Step32.点击【前进】

insert image description here
Step32. Select Shanghai as the time zone, and then click [Forward];
insert image description here
Step33. Click [Skip]; insert image description here
Step34. Set the user name, and then click [Forward];
insert image description here
Step35. Set the password, and then click [Forward];
insert image description here
Step35. Click [Start using CentOS Linux];
insert image description hereStep36. Close the following page;
insert image description here
Step35. You're done
insert image description here

Five, virtual machine related operations

If you have already installed a Linux operating system, but you want other virtual systems to interoperate, you don't need to reinstall at this time, just clone the installed virtual machine. To clone a virtual machine, use VMware's clone operation;
note:克隆时必须关闭现在正在运行 Linux 操作系统,否则无法克隆。

1. Clone installation demo;

Step1. After closing the Linux operating system, select the virtual machine --> right click --> manage --> clone
insert image description here
Step2. Click [Next Page]
insert image description here
Step3. Click [Next Page] insert image description here
Step4. Click [Next Page]

insert image description here
Step5. Set the virtual machine name and select the installation location, and then click [Finish];

insert image description here
insert image description here
Even if the cloned operating system is copied to other people's computers, it is completely consistent and can be used normally.

2. Virtual machine snapshot

In the process of using the virtual operating system, if you accidentally make a misoperation and want to return to a previous state, you can use VMware's snapshot management function, which is actually a switch between states. Snapshots are also easy to set up.
Tips: Select the virtual machine --> right click --> snapshot --> take a snapshot;
insert image description here
snapshot switching demonstration:
the virtual machine just started, without any operations, we define it as snapshot 1, then create a folder on the desktop, and define the state as snapshot 2;

insert image description here

insert image description here

insert image description here
Check the snapshot manager at this time, we can clearly see the operation records;
there is no operation in snapshot 1,
insert image description here
snapshot 2 creates a guan.txt file on the desktop
insert image description here
, but we want to go from snapshot 2 to snapshot 1, just click [Snapshot 1], and then click [Go];

3. Virtual machine migration and deletion

After the virtual machine is successfully installed, it is placed in the folder, so you can directly cut and paste it with Ctrl + X for migration; delete it in VMware and then delete the file.

Summarize

以上就是今天要讲的内容,本文详细地介绍了VMware的安装和搭建虚拟机环境,在这之后我们就可以开始我们的Linux之旅,本篇文章到此结束。下一篇再见

Guess you like

Origin blog.csdn.net/guanguan12319/article/details/124295417