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/
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.
2. Virtual machine preparation
1. Open VMwear and choose to create a new virtual machine
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.
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.
4. Choose to install the operating system later.
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
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.
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.
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.
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.
Here, select the bridging mode.
9. The remaining two items can be selected according to the default options of the virtual machine.
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.
11. Disk name, the default is OK.
12. Cancel the unnecessary hardware.
Click Customize hardware to
select the unnecessary hardware such as sound card and printer, and then remove it.
13. Click Finish, the virtual machine has been created.
3. Install CentOS
1. Connect the CD,
right-click the virtual machine you just created, and select Settings
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.
2. Turn on the virtual machine
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
select the language used during the installation process, select here English, keyboard, choose American keyboard. Click Continue to
first set the time and
time zone and select Shanghai to check whether the time is correct. Then click Done to
select the software to be installed.
Select Server with Gui, and then click Done to
select the installation location, where you can partition the disk.
Select i wil configure partitioning (I will configure partitioning), then click done
As shown in the figure below, click the plus sign, select /boot, and divide the boot partition into 200M. Finally, click Add
and allocate space to the other three areas in the same way. Click Done
and then a summary message will pop up. Click AcceptChanges to
set the host name and network card information.
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.
Finally, select Begin Installation (to start the installation)
set the root password
Click Done to set the root password after
clicking USER CREATION create an administrator user
enter your user name and password click Done
wait for the system installation is complete reboot the system
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