Detailed graphic tutorial on installing centos7 virtual machine in Virtualbox

Detailed graphic tutorial on installing centos7 virtual machine in Virtualbox

1. Download centos7

Download address: https://mirrors.tuna.tsinghua.edu.cn/centos/7.9.2009/isos/x86_64/

This address is the source of Tsinghua University. The download speed is faster than the official website. It is recommended to use this download.
There are three versions to choose from:
1. DVD ISO standard installation version
2. Everything ISO supplements the software of the full version installation disk and integrates all software!
3. Minimal ISO A very basic CentOS system that only requires the minimum number of software packages to have a functional system (there are relatively few software packages, most of which need to be installed by yourself)
4. CentOS-6.9-i386-netinstall.iso network installation version

2. Create a virtual machine

1. Open VirtualBox and click New, as shown below. Select Linux as the type and other Linux as the version because there is no centos7 in the options.

Click Next and allocate memory to the virtual machine. 1G~2G is recommended. I am just demonstrating here, so I just use the default setting.

A virtual machine can be seen as an independent computer that requires CPU, memory, and disk. Just select the default here and click Next.

The choice of hard disk size (the limit of the hard disk) varies from person to person. If your computer disk is larger, choose a larger one. It is recommended to choose a larger one.

Click Create and the virtual machine is created successfully.

Network Settings, select Network Address Translation (NAT)

Next, you can start the virtual machine. Although we have created a virtual machine, it is just an empty shell. The centos7 we really need has not been installed yet. So when we enter for the first time, we have to choose the downloaded centos7 image file to start and install the system.

You need to select the language here, and English is recommended.

Select Shanghai time, click done, and go to the next step.

Click the yellow triangle and select the installation location. Use the default setting.

After a long wait, let's create two accounts, a root account and a normal user. (Remember to remember your root password, you will need it later)


Installation complete, reboot.

Here you need to log in to your account, just enter root and press Enter.

When you enter the password, there will be no password placeholder on the command line. Be careful when entering it. In the picture below, I accidentally entered the wrong password.

At this point centos7 has been installed. However, this virtual machine has not yet been connected to the Internet, and many of its rich functions are not yet available to us. The most urgent task, of course, is to connect to the Internet first.
I pinged Baidu first, and the network was not connected.
ip addr
Check the network card name, which will be needed to modify the network configuration file next. As you can see in the picture, I am enp0s3 here.

Use vi to edit the network configuration file. There should be a space after vi, followed by the specific address. Just replace the last enp03s with your own address according to the address of ip addr.
vi /etc/sysconfig/network-scripts/ifcfg-enp0s3


Just change ONBOOT=no to ONBOOT=yes. vim editing, press i to enter insert mode, press the arrow keys to move the cursor, and after modification, press esc to exit insert mode, and :wq to save and exit.

After saving, you need to restart for the network configuration file to take effect. Enter the reboot command.
After restarting, ping www.baidu.com again and you will find that the network is now connected. Press ctrl+C to interrupt the ping, otherwise it will keep pinging.

This is the end of this article about how to install centos7 virtual machine with Virtualbox. For more information about how to install centos7 with Virtualbox, please search previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • VirtualBox installs CentOS7 virtual machine and enhancement tools (picture and text)
  • Oracle VM VirtualBox installation of CentOS7 operating system tutorial diagram
  • How to set static IP in CentOS7 on VirtualBox6 and what to note
  • VirtualBox CentOS7.7.1908 Python3.8 build Scrapy development environment [graphic tutorial]
  • CentOS7 network configuration tutorial under VirtualBox (can connect to the external network)
  • Install CentOS7 on VirtualBox (graphic steps)
  • CentOS7 Installation Tutorial in VirtualBox
  • Install CentOS7 in VirtualBox Graphic Tutorial

<<:  Use CSS content attr to achieve mouse hover prompt (tooltip) effect

>>:  Example of pre-rendering method for Vue single page application

Recommend

Win10 + Ubuntu 16.04 dual system perfect installation tutorial [detailed]

Be sure to remember to back up your data, it is p...

Mysql inner join on usage examples (must read)

Grammatical rules SELECT column_name(s) FROM tabl...

Detailed explanation of where Docker saves log files

Table of contents Where are the logs stored? View...

Bootstrap 3.0 study notes buttons and drop-down menus

The previous article was a simple review of the B...

Explore the truth behind the reload process in Nginx

Today's article mainly introduces the reload ...

How to connect to MySQL using C++

C++ connects to MySQL for your reference. The spe...

JS implements request dispatcher

Table of contents Abstraction and reuse Serial Se...

MySQL database Shell import_table data import

Table of contents MySQL Shell import_table data i...

MySQL intercepts the sql statement of the string function

1. left(name,4) intercepts the 4 characters on th...

JavaScript Timer Details

Table of contents 1. Brief Introduction 2. setInt...

SQL implementation of LeetCode (184. The highest salary in the department)

[LeetCode] 184. Department Highest Salary The Emp...

Native js to implement form validation function

Table of contents When developing, analyzing the ...

Vue implements two routing permission control methods

Table of contents Method 1: Routing meta informat...

A Brief Analysis of MySQL PHP Syntax

Let's first look at the basic syntax of the c...

Analysis of HTTP interface testing process based on postman

I accidentally discovered a great artificial inte...