Recently, the server is installed with CentOS7.6 system and KVM. I want to install Linux virtual server. This article illustrates the process of installing the CentOS7.6 operating system with KVM (introduces the graphical interface installation method. The command line installation method is available and then writes an introduction).
Open the virtualized graphics management tool virt-manager and click "Create a new virtual machine". You can see the display interface,
Select "Local install media (ISO image or CDROM)" to install using a local ISO image.
Select "Use ISO image". Click "Brower...."
Click the "+" on the left to create a storage pool, give it a name, and select the file system directory for the type here. There are many types to choose from, according to your needs.
Fill in the target path.
After creation, select the CentOS7 ISO image from the storage pool.
Select the following icon and click "Forward". If you check "Automatically detect operating system based on install media", the operating system type and version will be automatically detected without manual setting.
Select the memory capacity and the number of CPU settings. Here, 4G memory and 2 CPUs are set. The actual parameters are set according to your needs.
Turn on storage and select "Select or Create custom storage".
Click "Manage..."
Create a storage volume, set the name, and select qcow2 as the format. 30G is set up here, depending on your needs.
After selection, it is shown below.
Set a name. You can check "Customize configuration before install" to configure the information. Network selection bridge (previous article describes how to configure bridge).
Before starting the installation, set basic information, such as name, title, description, etc.
CPU parameter setting.
Memory settings.
The BOOT option setting can be set to boot up.
Disk settings. Note: After the disk bus is set, do not change it at will. (Changes may cause the system to fail to start)
Network card settings. Set to bridge mode. The MAC address can be changed as needed. Generally, it is best to be assigned by the system and not manually set.
Other hardware configurations will not be described one by one. Those who are interested can study by themselves.
Click "Begin Installation" to start the installation process.
Two, CentOS7.6 installation process
After loading the ISO image, enter the installation interface and select the first item "Install CentOS7" to install.
Select the language interface. Set according to needs, generally choose English or Chinese. (Suggestion: If you can read English, you can choose English. The Chinese interface system, some translations are more awkward.)
Select the date and time. Choose Shanghai for the region.
Choose a language pack. Choose here: English, Chinese (simplified, traditional).
Software options: There are minimal installation, computing nodes, basic services, file and print services, basic Web services, virtualized hosts, servers with GUI, GNOME desktop, KDE workspace, development and creative workstations, etc.
In the operating system of CentOS7, the author encountered some installation problems during the complete installation of multiple versions (all software selected), which caused the installation to fail.
Special note here: CentOS7.6 has 3 software (Legacy X Windows Sysetm Compatibility, Additional Development, Platform Development
) Do not select the option, otherwise there will be errors during installation.
After the software is selected, the software dependencies will be checked, and it will take a certain time (the system has a special prompt: "Please complete items marked with this icon before continuing to the next step.", please be patient, please do not perform other operations in this process! Otherwise, problems may occur and the installation cannot be continued.)
Next, perform disk partitioning. Note: It is best to choose manual partitioning! To configure according to your needs.
After the partition interface, first increase the biosboot partition and set 2M (the setting is larger, the system will change back to 2M by default).
Increase the swap partition, set 2G here, and the setting here should refer to the set memory (do not exceed the size of the predetermined memory, do not set it arbitrarily).
Add the root partition and mount all the remaining space to /.
If the disk space is relatively small and it is not clear how much space the following directories (/boot, /home, /var) need to use, you can not partition these directories independently. It can be unified to /. If you have clear needs, add the necessary partitions yourself.
After the partition is completed, it is divided into three areas as shown below.
After confirming, the device will be created and formatted.
Setting the network is no longer described, just set it as needed.
After the installation starts, the interface prompts that there is a user setting, and the ROOT password can be set. You can create new users.
Then, wait patiently for the installation to complete, until the "Complete!" prompt appears on the interface, click "Reboot" to restart.
Restart, there will be 2 startup items, the first item is selected by default.
At this point, the entire process of KVM installation of the CentOS7.6 operating system has been completed. You can enter to explore the mystery of the CentOS7.6 operating system~
Recommended Posts