Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install CentOS7 in VirtualBox virtual machine

2025-03-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

Today, I would like to share with you the relevant knowledge about how to install CentOS7 in VirtualBox virtual machine. The content is detailed and the logic is clear. I believe most people still know too much about this, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.

New virtual machine

Because it is relatively simple, we will not introduce too much about virtualbox. Just download and install it. After installation, open the oracle vm virtualbox manager, click New, and select red hat (32 bit 64 bit based on the windows host is usually automatically recognized):

Next, set the memory. In order to ensure that the system runs smoothly, I set it to 2g memory:

Then create a new virtual hard disk for our virtual machine, and click "create":

Select vdi (virtualbox disk image):

Select a fixed size:

The size of the virtual hard disk is given to 8g first. It is important to note that it is best to modify the path here, otherwise the virtual hard disk will be created on disk c by default. Of course, if your system disk is large enough, you can ignore it:

We create the virtual hard disk in the virtualbox vms directory of the f disk:

Click create, and finally wait for the creation to succeed:

After the creation is complete, you can see the virtual hard disk files in the f disk directory:

At this point, the virtual machine is created, and the next step is to load the iso CD image of centos 7.

Mount Mirror

First select the virtual machine we just created in oracle vm virtualbox, and then click * * Settings * *:

Then click "system" on the left menu in the "Settings" panel, and you can see the option of the boot sequence on the "motherboard" tab. Move the CD drive boot to the first one, as shown below:

Next, you need to add the iso image file of linux centos 7 prepared in advance to the virtual optical drive. Students who do not have the image file can download it on my csdn: centos 7 iso file download address, file size is 4.01gb:

After the image file is ready, you can load the image file into the CD-ROM drive. Click "Save" in the oracle vm virtualbox manager settings menu, and you can see that there is no disk at this time. Clicking the marked icon will bring up a prompt window, and then click "Select disk" to find the iso file of centos 7 to complete the loading:

After the selection is completed, you can see that the disk of centos has been loaded, and then click "OK":

Finally, click "start" to start the boot installation:

Installation

Follow the steps above, click "start", and wait a moment to see the installation options interface of centos 7:

As shown in the figure above, directly select the first item install centos 7 to start the installation, and you will enter the graphical installation interface in a moment. The first is the language selection. Here, select "chinese"simplified Chinese" and click "continue":

Next is the partition setting. Click "install location" to enter the menu. Here is the 8g virtual hard disk we originally created. For simplicity, we will not partition further. Select automatic partition directly and click "finish":

Next, set up the network, click * * network&host name * *, open the network and click * * finish * *:

Next, there is another important setting, which is [Software selection], that is, the choice of installation environment for centos 7:

As shown above, the default is the minimum installation, that is, there is no graphical interface, we choose the gnome desktop here, why choose the one with graphical interface? It is not that we will not use the command line, but to build a more convenient operating environment. For example, gnome comes with its own firefox browser, which makes it more convenient to test the network. In practice, of course, we still use the command line to connect to the linux server through xshell, but we have more options and convenience when we install gnome. That's all. Of course, if it is a formal production environment, it is a different matter. Select gnome and click * * finish * *:

Even if the configuration work before installation is over, then officially start the installation, and click the "start installation" button at the bottom left to perform the installation:

As shown in the figure above, the installation has started at this time. According to the prompt, we have not set the password for the root user, and we have not created any users. First, we set the password for the root user, and then click "finish":

By the way, create another user, enter the user name and password and click "finish". It is important to note that the root user is always the user with the highest authority, and the user created by himself needs to make more settings in terms of permissions:

Then wait for the installation to complete:

After the installation is successful, you will be prompted to restart, and click "restart" to finish the installation:

After the restart, you will go to the login page, and the created user will be displayed by default:

Here we choose to log in as a root user. After clicking "not listed?", enter the user name and password to log in:

Successfully logged in to the desktop:

Now that the installation is complete, you can start your journey to centos:

These are all the contents of the article "how to install CentOS7 in the VirtualBox virtual machine". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report