Install centos6 under VirtualBox eight

Time:2022-1-11

1. Preparation before installation:
1.1 download centos-6.8-x86 on the official website_ 64-bin-DVD1. iso
Download address:http://archive.kernel.org/cen…
Install centos6 under VirtualBox eight

1.2 open VirtualBox virtual machine and click new
Install centos6 under VirtualBox eight
Name the virtual machine and select the type and version as shown in the figure:
Install centos6 under VirtualBox eight

Click next
1.3 select the memory size, 1g by default

Install centos6 under VirtualBox eight

1.4 select create virtual hard disk now

Install centos6 under VirtualBox eight

1.5 select the type of virtual hard disk. VDI is dedicated to VirtualBox, and vmdk can be common to VM. Here we choose VDI

Install centos6 under VirtualBox eight
1.6 select dynamic allocation of disk capacity

Install centos6 under VirtualBox eight

1.7 select the file storage location and capacity, and click create to finish

Install centos6 under VirtualBox eight

2 formal installation
2.1 select the newly created virtual machine and click the “start” button

Install centos6 under VirtualBox eight

2.2 select the downloaded CentOS image file

Install centos6 under VirtualBox eight

Install centos6 under VirtualBox eight

2.3 after startup, enter centos6 8, select the second basic graphics card driver installation system

Install centos6 under VirtualBox eight

2.4 whether to detect the computer media, select skip to skip the detection

Install centos6 under VirtualBox eight

2.5 skip the hard disk detection, enter the graphical installation interface, and click next

Install centos6 under VirtualBox eight

2.6 select the language used in the installation process and English

Install centos6 under VirtualBox eight

2.7 select keyboard type, American keyboard

Install centos6 under VirtualBox eight

2.8 use the default “basic storage device” and click [next]

Install centos6 under VirtualBox eight

2.9 select whether to delete the data in the virtual disk, and select “yes, ignore all data”
Install centos6 under VirtualBox eight

2.10 enter the host name and configure the network. The network can be configured after the system installation is completed

Install centos6 under VirtualBox eight

2.11 choose the time zone, here we choose Shanghai

Install centos6 under VirtualBox eight

2.12 setting the root user password

Install centos6 under VirtualBox eight

2.13 the next step is to partition the disk. It is recommended to select custom
Install centos6 under VirtualBox eight

2.14 select Create to partition

Install centos6 under VirtualBox eight

2.15 here we choose to create a standard partition (production environment professionals recommend logical partitions)

Install centos6 under VirtualBox eight

2.16 create swap partition, which has no mount point.

It is suggested on the Internet that the size of the swap partition is generally twice the memory, which actually makes no sense. This is a misunderstanding. In the past, the memory of the old machine was small, but now the production server is generally 16g or 32g memory. Here we set 4G, and the production environment is up to 8g or 16g

Install centos6 under VirtualBox eight

2.17: we have set up a swap partition, and then continue to create it

Install centos6 under VirtualBox eight

2.18 create a root partition. We create all the remaining space into a root partition.

In other tutorials, Linux needs to create many partitions, such as root partition, boot partition, home partition, etc. in fact, it is not necessary. Because if there is only one root partition, other directories are actually under the root partition. If we create a separate partition for boot or home, it will be hung on the partition separately. If we do not create it, it will be all on the root partition. Therefore, we only need to create a root partition. Unless your upper environment has special requirements, it is not necessary to separate it separately

Install centos6 under VirtualBox eight

2.19: continue to the next step after the partition is created

Install centos6 under VirtualBox eight

2.20: the system creates and formats each partition

Install centos6 under VirtualBox eight

2.21: select “write changes to disk” to write to the hard disk

Install centos6 under VirtualBox eight

2.22 set boot by default (default MBR boot mode)
At the same time, you can add a password to the boot to prevent someone from entering the single user mode through boot and clearing the root password. It will be safer. Generally, we don’t add it

Install centos6 under VirtualBox eight

2.23 choose the software we installed. For beginners, it is recommended to choose desktop desktop environment, which will install graphical interface. Of course, it can also be changed later

Install centos6 under VirtualBox eight

2.24 start installation
From the installation progress, you can see the release version “El6” of red hat, and you can see that CentOS actually comes from red hat

Install centos6 under VirtualBox eight

2.25 after installation, prompt us to restart

Install centos6 under VirtualBox eight

2.26 restart the system

Install centos6 under VirtualBox eight

3 first entry into the system
3.1 there will be some basic settings for the first startup. Let’s click next

Install centos6 under VirtualBox eight

3.2 agree to copyright information, next step

Install centos6 under VirtualBox eight

3.3 create a user. There is already a root user in the system, but try not to use the root user at ordinary times. Here is to create an ordinary user
Install centos6 under VirtualBox eight

3.4 select the time. It is recommended to check the synchronization with the network time in the production environment. Since I don’t have the network environment, I won’t check it here
Install centos6 under VirtualBox eight

3.5 configure kdump. Because I am a virtual machine, the system prompts me that there is not enough memory. If not configured, it will not affect me. OK to continue

Install centos6 under VirtualBox eight

Kdump helps us copy the memory at that time when the system crashes, deadlocks or crashes, and can be analyzed. Generally, we don’t analyze it. We can send it to red hat professionals. After the configuration is completed, we restart it

Install centos6 under VirtualBox eight

3.6 enter the login interface to complete the installation
Install centos6 under VirtualBox eight