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
2.2 create a virtual machine, as shown:
Select Create Virtual Machine [], as shown:
Select [Custom (Advanced)] options, click on the Next button
Click Next to
choose to install the operating system later [(S)], click [Next]
Select [Linux (L)], select [version Red Hat Enterprise Linux 7 64 Wei], and click Next
to customize a virtual machine name, location selection to choose according to their own plan, click on the Next button
and click [Next ]
virtual machine's memory can be allocated according to its own computer, which I chose the recommended memory size, click on the Next button
if you temporarily do not understand the meaning of the options on the page, select [only host mode network (H )], and click Next to
select recommended, click the Next button
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
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
follow the default virtual disk name and click Next to
selecting [Finish] before, it is recommended to click on custom hardware, remove unnecessary virtual machines more than hardware
Delete [card] [printer]
Click [Close]
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
Select CD / DVD
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]
Click [continue] to jump to the installation page
at [LANGUEAGE SUPPORT] options, add Chinese language support
click on the top left corner [Done] to return to the installation options screen, click [SOFTWARE sELECTION] option
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:
After configuration, click done], the system will prompt the operation, as shown below:
after click Accept Changes] to return to the installation configuration screen, select [KDUMP], enter the following interface, as shown in FIG:
cancel [] Enable kdump options, click [Done] to return to the installation page,
click on the bottom right corner [Begin installation] to install the operating system.
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]
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
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.
Click [LICENSE INFORMATION]
select [I accept the license agreement] Click [Done] to enter the following page click on [FINSH CONFIGURATION] to enter the login page at 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
enter root mode, enter the command dhclient automatically obtain an IP address, as shown below:
Open Virtual Network Editor, the set three modes, As shown below
The system shutdown, before the shutdown must take a snapshot:
2.2.4 using the operating Xshell
1, open Xshell 6, execute the command: ssh 192.168.127.130, enter the following interface:
Enter the root user name, click OK to
enter the password for the user name click OK, then log in on the following figure
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
2) modify the host name hahaha, Run hostnamectl hahaha modified set-hostname host name, as shown below:
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