Use virtualBox to install a Linux virtual machine

1. Download centos-8.2.2004

centos-8.2.2004 download link : add link description

Insert picture description here
Click x86_64

Insert picture description here
Choose a suitable mirror source to download, I choose Alibaba Cloud ,

Insert picture description here
Choose the right version to download

Be sure to remember the location of the downloaded iso file! ! ! Later configuration will be used

2. Create a new virtual machine

Open VirtualBox

Insert picture description here
Click New

Insert picture description here
Fill in the name, type, version and other information of the environment (as shown in the figure above)

Because Centos is actually a clone of RedHat, the version type is RedHat (64-bit)

Then click next

Insert picture description here

Set the memory size according to your computer, and then click Next

Insert picture description here

If it is the first time to use, select "Create Now". If you have already created a virtual machine, you can directly click "Use Existing". I choose "Use Existing" here, and then click Create.

Insert picture description here
You can find more virtual machines with centos 8

3. Associate the centos-8.2.2004 ISO file with the virtual machine

Insert picture description here
Click "Settings"

Insert picture description here
Click store

Insert picture description here
Click "No Disc", then click the small disc icon in the upper right corner

Insert picture description here
Click "select virtual disk file" and enter the path where you just downloaded centos-8.2.2004 to find the iso file

Insert picture description here
Insert picture description here
Select and click "Open"

Insert picture description here
Click "OK"

Click on the system and drag to set the "CD-ROM drive" as the first boot sequence, and then click OK
Insert picture description here

4. Install centos-8.2.2004 to the virtual disk

Insert picture description here
Click to start

Insert picture description here
Choose Install Centos Linux 8

Insert picture description here
Insert picture description here
Choose Chinese for installation language, click to continue

Insert picture description here

As a result, the installation cannot be performed normally at this step. The reason is that the installation space is insufficient because I directly chose "Use existing virtual hard disk file" to install the virtual machine. How to solve it?

Solution

Insert picture description here

Click Settings

Insert picture description here
Insert picture description here
Insert picture description here
Choose Create

Insert picture description here
Insert picture description here
Insert picture description here

Insert picture description here

Insert picture description here
Insert picture description here
Start again

Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here

Insert picture description here

Insert picture description here
Insert picture description here
Insert picture description here
Wait for the installation and
Insert picture description here
Insert picture description here
installation to complete, restart to use, the
Insert picture description here
Insert picture description here
follow-up has been the default next step

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_45154565/article/details/110211041