Article Directory
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.
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
Step2. Select VMware.exe file, right mouse button to run as administrator
Step3. Click Next
Step4. Select I accept and click Next
Step5. You can change the installation location (it is not recommended to install it on the C drive), and click Next:
Step6. Uncheck the two checks and select Next:
Step7. You can create desktop and start menu folders according to your personal preference:
Step8. Click to install:
Step9. After the installation is complete, click the license:
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.
Step10. Click to complete the installation:
Step11. Enter the interface, the tutorial is over;
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.
4. Detailed steps to create Linux on a virtual machine
Step1. Create a virtual machine
Step2. Click [Typical], then select the next step
Step3. Select Later [Install Operating System], and then click Next;
Step4. Select the Linux operating system for the client, and select the version as CentOS7 64-bit
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;
Step6. The size of the disk is 20G, and choose to split the virtual disk into multiple files, and then click Next; Step7. Click [
Custom Hardware], select [Memory], and modify the memory to an appropriate size
;
Step9. Click [Network Adapter], select [Host Mode Only];
Step10. Click [USB Controller], click [Remove]; Step11
. Click [Printer], then click [Remove] and click [Close]; Step12
. Click [Finish] ; Step13. Click [
Start Virtual Machine];
Step15.选择【中文】,然后点击【继续】;
Step16.点击【软件选项】;
Step18.选【带GUI的服务器】,然后点击【完成】
Step19.点击【网络和主机名】;
Step20.点击【完成】
Step21.点击【安装位置】;
Step22.点击【完成】;
Step23.点击【开始安装】;
Step24.点击【ROOT密码】;
Step25.设置ROOT密码,然后点击【完成】;
two thousand years later …
Step26.安装完成后,点击【重启】;
two thousand years later …
Step27.点击【LICESE INFORMATION】
Step28.勾选 【我同意许可协议】,然后点击【完成】;
Step29.点击右下角【完成配置】;
Step30.选择【汉语】,然后点击【前进】;
Step31.点击【前进】
Step32.点击【前进】
Step32. Select Shanghai as the time zone, and then click [Forward];
Step33. Click [Skip];
Step34. Set the user name, and then click [Forward];
Step35. Set the password, and then click [Forward];
Step35. Click [Start using CentOS Linux];
Step36. Close the following page;
Step35. You're done
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
Step2. Click [Next Page]
Step3. Click [Next Page]
Step4. Click [Next Page]
Step5. Set the virtual machine name and select the installation location, and then click [Finish];
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;
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;
Check the snapshot manager at this time, we can clearly see the operation records;
there is no operation in snapshot 1,
snapshot 2 creates a guan.txt file on the desktop
, 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之旅,本篇文章到此结束。下一篇再见