Virtual machine installation linux system centos
- 1. Software and hardware preparation
- 2. Virtual machine preparation
-
- 1. Open VMware and select a new virtual machine
- 2. Typical installation and custom installation
- 3. Virtual machine compatibility selection
- 4. Choose to install the operating system later
- 5. Selection of operating system
- 7. Processor and memory allocation
- 8. Choose the type of network connection. There are four types of network connection: bridge, NAT, host only and no network connection.
- 9. The remaining two items can be selected according to the default options of the virtual machine
- 10. Disk capacity
- 11. Disk name, the default is fine
- 12. Cancel unneeded hardware
- 13. Click Finish, the virtual machine has been created.
- 3. Install CentOS
1. Software and hardware preparation
Software: VMware is recommended. I use VMware 12
mirror: CentOS6. If there is no mirror, you can download it from Alibaba Cloud https://mirrors.aliyun.com/centos/
Hardware: because the virtualization software is running on the host machine to install centos , so there are certain requirements for the configuration of the host machine. At least I5CPU dual-core, hard disk 500G, memory 4G or more.
2. Virtual machine preparation
1. Open VMware and select a new virtual machine
2. Typical installation and custom installation
Typical installation: VMware will apply the mainstream configuration to the operating system of the virtual machine, which is very friendly for novices.
Custom installation: Custom installation can strengthen some resources and remove unnecessary resources. Avoid wasting resources.
Here I choose custom installation.
3. Virtual machine compatibility selection
Pay attention to compatibility here. If the virtual machine created by VMware12 is copied to VM11, 10 or lower versions, there will be an incompatibility. If the virtual machine created with VMware10 is opened in VMware12, there will be no compatibility issues.
4. Choose to install the operating system later
5. Selection of operating system
Here, select 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 VMware is under the C drive, and I changed it to the F drive here.
7. Processor and memory allocation
Processor allocation should be allocated according to your actual needs. If the CPU is not enough during use, it can be increased. This time, we only want to demonstrate the installation of CentOS, so select 1 for both the processor and the core.
The memory should also be allocated according to actual needs. My host machine memory is 8G so I allocate 2G memory to the virtual machine.
8. Choose the type of network connection. There are four types of network connection: bridge, NAT, host only and no network connection.
Bridge: If the bridge mode is selected, the virtual machine and the host machine are in the same level relationship on the network, which is equivalent to being connected to the same switch.
NAT: The NAT mode means that the virtual machine must first pass through the host to communicate with the outside world if it is to be connected to the Internet.
Host only: The virtual machine is directly connected to the host
The process of accessing the Internet in bridging and NAT mode, as shown in the figure below
Difference between bridging and NAT
Select bridge mode here
9. The remaining two items can be selected according to the default options of the virtual machine
10. Disk capacity
Temporarily allocate 100G of disk capacity, which can be increased at any time later. Do not check 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 the option to split the virtual disk into multiple files, so that the virtual machine can be easily copied and copied with the storage device.
11. Disk name, the default is fine
12. Cancel unneeded hardware
Click Customize Hardware
to select unnecessary hardware such as sound cards and printers and remove them.
13. Click Finish, the virtual machine has been created.
3. Install CentOS
1. Connect the disc
Right click on the virtual machine you just created and select Settings
First select CD/DVD, then select to use the ISO image file, and finally select Browse to find the downloaded image file. Connect at startup must be checked and confirmed.
2. Turn on the virtual machine
3. Install the operating system
After starting the virtual machine, the following interface will appear:
Install CentOS 7 Install CentOS 7
Test this media & install CentOS 7 Test the installation file and install CentOS 7
Troubleshooting to fix the fault
Select the first item, install CentOS 7 directly, press Enter, enter the following interface
to select the language used in the installation process, select here English, keyboard select 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, then click Done
to select the installation location, where you can perform disk partitioning.
Select i wil configure partitioning (I will configure the partition), then click done
as shown in the figure below, click the plus sign, select /boot, and assign 200M to the boot partition. Finally, click Add
and allocate space to the other three areas in the same way. After clicking Done, a
summary message will pop up. Click AcceptChanges (accept changes)
to set the host name and network card information. First, open the network card, and then check whether the IP address can be obtained. (I am bridging here), and then click Done after changing the host name.
Finally, select Begin Installation (start installation)
to set the root password.
After setting the root password, click Done
and click USER CREATION to create an administrator user.
After entering the user name and password, click Done
and wait for the system to complete the installation and restart the system.