Detailed installation process of Centos 7 on a virtual machine

 

ready:

Software: VMware Workstation

Image file: CentOS-7-x86_64-bin-DVD1.iso

1. File-New Virtual Machine-Custom

 

2. Hard disk compatibility-default

 

3. Install the operating system later (you need to delete unnecessary hardware after the virtual machine is installed, so install the operating system later)

 

4. Select the client operating system: client operating system-Linux

 

     Version--centos 64-bit (note: the version must correspond to the image file version, where centos is 32-bit, centos 64-bit is 64-bit, windows system should be installed with 64-bit version)

5. Name the virtual machine (abbreviated to indicate the type and version of the virtual machine. For example: centos-7)

 

6. Processor configuration (CPU)-Set accordingly according to your own computer configuration. The total number of cores of the virtual machine cannot exceed the number of cores of the host. If it exceeds, it will warn and remind.

 

7. Memory of this virtual machine--generally 2G, 1G can also be used during testing. 1M=1024K E>P>T>G>M>K

 

8. Network type-bridged network (you can make the virtual machine and the host use the same network), or other modes (such as NAT mode).

 

   Note: VMnet1 network port corresponds to host-only mode

              VMnet8 network port corresponds to NAT mode

              VMnet0 network port corresponds to bridge mode

9. Select I/O controller type (relative to hard disk)-default

 

   From the hard disk to the memory is I (input) 

   The hard disk from the memory is O (output)

10. Select the disk type-default (hard disk interface, SATA type commonly used by households, and SCSI type commonly used by servers)

 

11. Select the disk-create a new virtual disk (the other two are not commonly used)

 

12. Designated disk capacity-200G (it is a fake virtual, does not occupy the host memory, its size can be customized)

 

13. Specify the disk file (.vmdk) file

 

14, complete

 

        Delete unnecessary hardware--Edit virtual machine settings--Delete USB controller, sound card, printer (you can make the virtual machine start faster)

 

        You can also add hardware manually. For example, if one network port is not enough, add another.

 

        The network connection still selects the bridge mode

 

       At this point you can see that two network adapters have been added

 

15. At this time, the hardware in the virtual machine has been built

 

 16. Continue to add image files and select CD/DVD (IDE) in the device

 

       Select at the connection-use ISO image file-OK

17. Enter the CentOS installation interface.

 

  --Choose the first item Install CentOS 7

18、WELCOME TO CENTOS 7.

 

       Set language--English is recommended--click Continue

19. INSTALLATION SUMMARY installation overview (here you can complete all the settings of centos 7 version Linux)

(1) First, set the time zone--DATE & TIME

Find Asia--Shanghai and click--Done

 

(2) The KEYBOARD keyboard defaults to English (US)

 

 (3) LANGUAGE SUPPORT language support

 

It can be the default English or you can add Chinese simplified Chinese support by yourself

 

(4) INSTALLATION SOURCE installation resources

  The default selection --Local media local media files

(5) SOFTWARE SELECTION software installation options

       Character interface installation--Minimal install or Basic Web Server

       Graphical interface installation--Server with GUI or GNOME Desktop

 

        The installation process of the character interface is the same as that of the graphical interface, only there is a difference in this step.

 

 

       Click --Done to enter the next step

20. INSTALLATION DESTINATION installation location --- system partition

     (1) First select the 200G virtual hard disk we created when we created the virtual machine

 

     (2) Scroll down the menu to find Other Storage Options--Partitioning--I will configure partitioning selected

       I will configure partitioning

      --Click done

 

(3) Select Standard Partition-click on the lower left corner + to add a partition

 

(4) Partition

creat--Standard Partition--creat--mount point (mount point) and File System Type (system file type)

Create /boot area, swap partition, root partition/

Note: The simplest partition scheme for Linux systems:

1. Divide the /boot area, and place the boot file for 200M and /boot.

2. Divide the swap partition (swap space) swap to see the total size of the memory. If the memory is large enough, this space will be set too large. If the memory is less than 2G. Then this space is set to twice the size of the memory.

3. Give all the remaining space to / (root partition)

 

 

 

 

(5) The partition is complete!

Click Done

 

Click Accept Changes

 

21. Back to INSTALLTION SUMMARY

 

22, KDUMP default selection

23. NETWORK & HOST NAME set the network connection and host name (you can also ignore it and modify it after entering the system later)

       Set the host name at Host name: (for example centos-7)

 

24. This is that we have completed all the settings

       ----Begin Installation

 

At this time, you need to set the administrator Root Password (must remember the password!)

 

After the password is set, click Done

Next, you can create a user (you don’t need to create it here, you can also recreate it by entering root after installation)

25. Centos 7 installation is complete-click reboot to restart use

 

The character interface is shown in the figure below

 

The graphical interface is shown in the figure below

 

 

 

Attached:

After calling up the Terminal, use the su root command to switch the user to the root administrator, and then perform the administrator operations:

 

 

Guess you like

Origin blog.csdn.net/qq_40207692/article/details/107635910