Install CentOs 7 in the virtual machine VMware and use Xshell to connect
1. Install virtual machine VMware-Workstation
If VMware is already installed, you can skip this step
Installation tutorial: (22 messages) Virtual machine VMware-Workstation-pro 17 download and installation_Cold Herbal Tea's Blog-CSDN Blog
2. CentOs7 DVD installation
Centos installation package download_Open source mirror station-Alibaba Cloud (aliyun.com)
Found version 7.9.2009
clickisos
There are different versions here, the differences are as follows
- CentOS ISO: DVD is a standard installation disk. You can generally download this. It contains a large number of commonly used software. In most cases, there is no need to download it online during installation. The size is 4G;
- Minimal ISO: a streamlined version, including core components, with a size of just over 600 MB;
- Everything ISO: As the name suggests, it includes all software components. Of course, it is also huge in size, up to 7G. Supplement the software on the full version installation disk and integrate all software;
- NetInstall ISO: network installation image;
- LiveGNOME ISO: GNOME desktop version;
- LiveKDE ISO: KDE desktop version;
- LiveCD ISO: a system running on a CD, similar to winpe;
Install the DVD version here
3. Create a virtual machine
Open VMware Workstation Pro and click Create Virtual Machine
Select typical and next step
Choose to install the operating system later, next step
Select Linux, select CentOS 7 64-bit, and click Next
According to your needs, you need to change the name and location, then click Next
Continue to the next step
Click on Customize Hardware
Modify the memory and processor, change the memory to 2G
Select the new CD/DVD, use the ISO image file, select the iso file you just downloaded, and then click Close
Finish
Start the virtual machine, select Install CentOS 7, and press Enter
Move the mouse inside the virtual machine and click or press Ctrl + G to move the mouse into the virtual machine.
Press Ctrl + Alt to move the mouse out of the virtual machine
Wait for installation, select Chinese and continue
Click on the installation location and click Finish after entering.
Click on software selection
Select GNOME Desktop, check GNOME Applications, Development Tools, Security Tools, and click Finish in the upper left corner
Click to start installation
Configure and set a password and create a user
password setting
Create user
Waiting for installation
After the installation is complete, click Restart
Accept license agreement
Click Network and Host, set up the network, note that Ethernet is turned off
Click to complete configuration
Click to log in to your account
After the configuration, select forward and skip, and the installation is completed.
4. Use Xshell to connect to CentOs
Xshell can be installed by itself, here is a blog
Open the virtual network editor of the virtual machine. In the editor, remember the IP and subnet mask.
Click NAT settings and remember the gateway
Get the ip address of the virtual machine
ip addr
If you have a desktop version, right-click to open the terminal.
Enter command line
vi /etc/sysconfig/network-scripts/ifcfg-ens33
Use i
to enter modification mode
Modify two places, the last ONBOOT=yes, BOOTPROTO=static
IPADDR=192.168.160.33
NETMASK=255.255.255.0
PREFIX=24
GATEWAY=192.168.160.2
DNS1=114.114.114.114
Then modify the above address according to the previous IP address (IP address, DNS, default gateway and subnet mask need to be in the same IP segment as previously set), and then insert it at the end
Save, press Esc and enter:w ! sudo tee %
Restart CentOs 7 , restart the client
Open xshell, click New, enter the name (custom), enter the host (IPADDR set above, such as 192.168.160.33 here), the port number is generally 22
Accept and save
Username root
The password is the password set during the previous virtual machine installation.
connection succeeded