vmware install centos7 and install graphical operation interface

1.
Software and hardware preparation Software: VMwear is recommended, I use VMwear 12
mirror: CentOS6, if there is no mirror, you can download it on Aliyun https://mirrors.aliyun.com/centos/
Insert picture description here
Hardware: because it runs on the host The virtualization software installs centos, so there are certain requirements for the configuration of the host. At least I5CPU dual-core, 500G hard disk, 4G or more memory.
Insert picture description here

2. Virtual machine preparation
1. Open VMwear and choose to create a new virtual machine
Insert picture description here
2. Typical installation and custom installation
Typical installation: VMwear will apply mainstream configurations to the operating system of the virtual machine, which is very friendly to novices.
Custom installation: Custom installation can strengthen some resources and remove unnecessary resources. Avoid waste of resources.
Here I choose a custom installation.
Insert picture description here

3. Virtual Machine Compatibility Selection
. Pay attention to compatibility here. If the virtual machine created by VMwear12 is copied to VM11, 10 or lower versions, there will be an incompatibility. If the virtual machine created with VMwear10 is opened in VMwear12, there will be no compatibility issues.
Insert picture description here
4. Choose to install the operating system later.
Insert picture description here
5. The choice of operating system. Choose the operating system to be installed later
. The correct choice will make vm tools more compatible. Here choose CentOS under Linux
Insert picture description here
6. Virtual machine location and naming The
virtual machine name is a name, which is convenient for you to find when there are many virtual machines.
The default location of VMwear is under C drive, I changed it to F drive here.
Insert picture description here
7. Processor and memory allocation.
Processor allocation should be allocated according to their actual needs. If the CPU is not enough during use, it can be increased. This time I will only demonstrate the installation of CentOS, so the processor and core are both selected 1.
Insert picture description here
Memory must be allocated according to actual needs. My host machine's memory is 8G, so I allocate 2G of memory to the virtual machine.
Insert picture description here
8. The choice of network connection type. There are four types of network connection: bridging, NAT, host only and non-networking.
Bridge: If you select the bridge mode, the virtual machine and the host have a level relationship on the network, which is equivalent to connecting to the same switch.
NAT: NAT mode means that the virtual machine must pass through the host before it can communicate with the outside world.
Host only: the virtual machine is directly connected to the host
. The process of accessing the Internet in bridging and NAT mode is shown in the figure below.
Insert picture description here
Here, select the bridging mode.
Insert picture description here
9. The remaining two items can be selected according to the default options of the virtual machine.
Insert picture description here
10. Disk capacity
The disk capacity can be temporarily allocated 100G and can be increased at any time later. Do not check to allocate all disks immediately, otherwise the virtual machine will directly allocate 100G to CentOS, which will reduce the remaining hard disk capacity of the host.
Check to split the virtual disk into multiple files to make it easier for the virtual machine to copy and replicate with storage devices.

Insert picture description here
11. Disk name, the default is OK.
Insert picture description here
12. Cancel the unnecessary hardware.
Click Customize hardware to
Insert picture description hereselect the unnecessary hardware such as sound card and printer, and then remove it.
Insert picture description here13. Click Finish, the virtual machine has been created.
Insert picture description here3. Install CentOS
1. Connect the CD,
right-click the virtual machine you just created, and select Settings

Insert picture description here
First select CD/DVD, then choose to use the ISO image file, and finally select Browse to find the downloaded image file. The connection must be checked and confirmed when starting.
Insert picture description here2. Turn on the virtual machine
Insert picture description here
3. Install the operating system

The following interface will appear after turning on the virtual machine

Install CentOS 7 Install CentOS 7
Test this media & install CentOS 7 Test this media & install CentOS 7 Test the installation file and install CentOS 7
Troubleshooting Fix the fault
Select the first item, install CentOS 7 directly, press Enter, enter the following interface to
Insert picture description here
select the language used during the installation process, select here English, keyboard, choose American keyboard. Click Continue to
Insert picture description here
first set the time and
Insert picture description heretime zone and select Shanghai to check whether the time is correct. Then click Done to
Insert picture description here
select the software to be installed.
Insert picture description here
Select Server with Gui, and then click Done to
Insert picture description here
select the installation location, where you can partition the disk.
Insert picture description here
Select i wil configure partitioning (I will configure partitioning), then click done
Insert picture description here

As shown in the figure below, click the plus sign, select /boot, and divide the boot partition into 200M. Finally, click Add
Insert picture description here
and allocate space to the other three areas in the same way. Click Done
Insert picture description here
and then a summary message will pop up. Click AcceptChanges to
Insert picture description hereset the host name and network card information.
Insert picture description here
First, open the network card, and then check if the IP address can be obtained. (I am bridging here), and then click Done after changing the host name.
Insert picture description hereFinally, select Begin Installation (to start the installation)
Insert picture description hereset the root password
Insert picture description here
Click Done to set the root password after
Insert picture description hereclicking USER CREATION create an administrator user
Insert picture description hereenter your user name and password click Done
Insert picture description here
wait for the system installation is complete reboot the system
Insert picture description here

Author: Aubin
link: https: //www.jianshu.com/p/ce08cdbc4ddb
Source: Jane books
are copyrighted by the author. For commercial reprints, please contact the author for authorization, and for non-commercial reprints, please indicate the source.


Follow the above steps to complete the installation, but some centos does not have a graphical management interface, then we need to manually install the graphical interface;
Centos7 installation graphical interface method

CentOS 7 has no graphical interface by default.

Use root administrator:

1. Install X Window System

yum groupinstall "X Window System" //Note the quotes

In the process, select all y, and complete! is displayed at the end.

2. Install Gnome graphical interface software

yum groupinstall “GNOME Desktop” “Graphical Administration Tools”

In the process, select all y, and complete! is displayed at the end.

At this point, the installation is complete, and you can enter the graphical interface through the startx command (may need to restart)

After the above steps we start the virtual machine to enter the interface or the command line interface, execute the following command to directly enter the graphical interface:

1. View the default startup mode

systemctl get-default

2. Boot up the graphical interface

systemctl set-default graphical.target (graphical interface mode)

reboot (restart the system)

3. Start the command line interface at boot

systemctl set-default multi-user.target (character interface mode)

reboot (restart the system)
————————————————
Copyright statement: This article is the original article of the CSDN blogger "Versionz", in accordance with the CC 4.0 BY-SA copyright agreement, please attach the original text for reprint Source link and this statement.
Original link: https://blog.csdn.net/Versionz/article/details/89841525

Guess you like

Origin blog.csdn.net/weixin_44887276/article/details/114977417