How to create a virtual machine on VMware, and install the Linux operating system

1, prepare and install the VM software

1.1 Close and exit optimization software
2.1 VM software is installed and ready

2. Prepare and install a virtual machine

2.1 Preparation system image
Here Insert Picture Description
2.2 create a virtual machine, as shown:
Here Insert Picture Description
Select Create Virtual Machine [], as shown:

Here Insert Picture Description
Select [Custom (Advanced)] options, click on the Next button
Here Insert Picture Description
Click Next to
Here Insert Picture Description
choose to install the operating system later [(S)], click [Next]

Here Insert Picture Description
Select [Linux (L)], select [version Red Hat Enterprise Linux 7 64 Wei], and click Next
Here Insert Picture Description
to customize a virtual machine name, location selection to choose according to their own plan, click on the Next button Here Insert Picture Description
and click [Next ]
Here Insert Picture Description
virtual machine's memory can be allocated according to its own computer, which I chose the recommended memory size, click on the Next button Here Insert Picture Description
if you temporarily do not understand the meaning of the options on the page, select [only host mode network (H )], and click Next to Here Insert Picture Description
select recommended, click the Next button
Here Insert Picture Description
Here Insert Picture Description
if not you can select a virtual disk, you select the default choice according to [create a new virtual disk (V)], then click Next to Here Insert Picture Description
a maximum disk here disk size is selected according to the situation, and here I use the default size, select [virtual machine] disk storage as a single file, and then click Next to
Here Insert Picture Description
follow the default virtual disk name and click Next to
Here Insert Picture Description
selecting [Finish] before, it is recommended to click on custom hardware, remove unnecessary virtual machines more than hardware

Here Insert Picture Description
Delete [card] [printer] Here Insert Picture Description
Click [Close]
Here Insert Picture Description
and then select [Finish] button to complete the hardware configuration of the virtual machine.
2.3 Install Virtual Machine
2.3.1 Select the installation disc image
Here Insert Picture Description
Select CD / DVD Here Insert Picture Description
to select the connection on the right [to use] ISO image file, and then select the image file based on the location of csa01 before storing system image, and then click OK, complete loading system image

2.3.2 Start the virtual machine to install
Click to open this [virtual machine]
Here Insert Picture Description
Here Insert Picture Description
Click [continue] to jump to the installation page
Here Insert Picture Description
at [LANGUEAGE SUPPORT] options, add Chinese language support
Here Insert Picture Description
click on the top left corner [Done] to return to the installation options screen, click [SOFTWARE sELECTION] option
Here Insert Picture Description
we need to choose to install a graphical interface, we choose the left [Server with GUI], select [KDE] on the right, then click [Done] return to the installation options screen.
In [INSTALLTION DESTINATION] option, we need to manually configure the partition information, click this option to enter the configuration interface, choose [] I will configure partitioning, click [Done] to complete entering the partition configuration interface, as shown:
Here Insert Picture Description
After configuration, click done], the system will prompt the operation, as shown below: Here Insert Picture Description
after click Accept Changes] to return to the installation configuration screen, select [KDUMP], enter the following interface, as shown in FIG:
Here Insert Picture Description
cancel [] Enable kdump options, click [Done] to return to the installation page,
Here Insert Picture Description
click on the bottom right corner [Begin installation] to install the operating system.
Here Insert Picture Description
We can see that the operation of the hard drive, install the software and other circumstances of the page, in this page, you need to configure the root password and create a normal user.

Click ROOT PASSWORD] Here Insert Picture Description
to enter the password: 111111, enter the password again in the confirm box, double-click [Finish] returns the installation progress page
click CREATE USER] access to ordinary users to create pages Here Insert Picture Description
created redhat user, password is 111111, the password created here We are learning to use the test in the actual work and production environment, do not use this password, click [Done] to exit the page, complete the creation of ordinary users.
After waiting for the system installation is complete, you will be prompted to restart the operating system, click [reboot] to restart.
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Click [LICENSE INFORMATION]
Here Insert Picture Description
select [I accept the license agreement] Click [Done] to enter the following page Here Insert Picture Descriptionclick on [FINSH CONFIGURATION] to enter the login page Here Insert Picture Descriptionat this time, we csa01 virtual host system has been installed.
2.3.3 DHCP to obtain an address
starting with the provided IP address is not in the master mode only
Here Insert Picture Description
enter root mode, enter the command dhclient automatically obtain an IP address, as shown below: Here Insert Picture Description
Open Virtual Network Editor, the set three modes, As shown belowHere Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

The system shutdown, before the shutdown must take a snapshot:
Here Insert Picture Description
2.2.4 using the operating Xshell
1, open Xshell 6, execute the command: ssh 192.168.127.130, enter the following interface: Insert Picture description here
Enter the root user name, click OK to Here Insert Picture Description
enter the password for the user name click OK, then log in on the following figure
Here Insert Picture DescriptionHere Insert Picture Description
2, see the root user and ordinary user's home directory and modify the hostname
1) execute the command pwd view the current home directory, find root user's home directory to the root directory, while the ordinary user's home directory / home / RedHat
Here Insert Picture Description
Here Insert Picture Description2) modify the host name hahaha, Run hostnamectl hahaha modified set-hostname host name, as shown below: Here Insert Picture Description
2.2.5 crack the password

1, restart the virtual machine, the input e

2, the end linux16 plus rd.break, ctrl + x execution

3、mount -o remount,rw /sysroot

4、chroot /sysroot

5、passwd root

6. Enter the new password:

7. Confirm password

8、touch /.autorelabel

9、exit

10、exit
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

Published an original article · won praise 0 · Views 5

Guess you like

Origin blog.csdn.net/qq_45395160/article/details/104937755