Use VirtualBox to install a Linux virtual machine and avoid pitfalls

introduction

  Record the process of learning the Linux system yourself. Because I have been using a Windows system, I need to install a virtual machine to create an operating system based on the Linux kernel. It is mainly divided into the following two steps: the first step is to install the virtual machine software first. I use VirtualBox, but you can also use other ones; the second step is to use the virtual machine software to install the Linux system.

Step 1: Install VirtualBox

1. Enter the official website of VirtualBox, click download

  VirtualBox official website , click the middle Download button.

2. Select the version that suits your computer system and download it.

  I am using a Windows system, so choose the first one. You can choose different versions to install according to your computer operating system.

3. After the download is complete, click Install.

  Choose the installation path, not the system disk. Afterwards, just keep clicking yes, and the next step is fine.
  Just open it after it is completed. The first step of installing VirtualBox is over here.

Step 2: Install Linux System Using VirtualBox

1. Download the Linux system image

  I use Ubuntu system (Ubuntu is a Linux operating system mainly based on desktop applications, other operating systems based on Linux kernel include: CentOS, RedHat, etc.). At the Tsinghua University open source software mirror station , choose the version you want to download. I chose the desktop version with a graphical user interface.

2. Use VirtualBox to create a new virtual environment

  1. Open the VirtualBox you just installed and click New


  2. Next, select the installation path. It is best to select the installation path in the same path as the virtual machine installation package.

  3. Then click Next to set the memory size and number of CPUs.
  4. After the creation is completed, the virtual machine just named will appear.

3. Install the virtual machine using the image file

   1. Next, deploy the Ubuntu image downloaded initially on the virtual machine created above. First click Settings, then find the storage option to load the image file.

   2. Follow the steps to load the image file.

   3. Click Start to start the system installation.
   4. Waiting for initialization
   5. Select the language and click Install Ubuntu.
   6. Select a keyboard layout.
   7. Note that in the next step, the buttons for subsequent operations may not be visible due to the default resolution, and subsequent operations cannot be found, as shown below:
Solution: Press the shortcut keys Ctrl + Alt + t to bring up the background command window, and change the appropriate resolution through the xrandr command:
xrandr -s 13

Then you can see it and perform subsequent operations (the number after -s can be the specified resolution size, such as: 1980×1080). Exit the console and click Continue.

   8. Default installation type, click Install Now
   9. Select the location and click Continue.
   10. Set the account password and click Continue.
   11. Wait for installation.
   12. When the installation is complete, select Restart Now.
   13. After entering the password, the virtual machine is successfully entered.
   14. Click on the nine dots in the lower left corner to enter the terminal. At this point, all installations have been completed and we are ready for subsequent learning.

Summarize

   I have installed the CentOS version of the Linux system before, but compared to the Ubuntu system, I feel that I still prefer the operating system with the graphical interface (I am used to using Windows, and I still need to be familiar with the operating system based on the Linux kernel in the future). Also, there is no need to configure the network connection in this version. The network configuration of the previous version took a long time. Finally, thank you @Growing Together Trainer for some suggestions on this blog.

A daily ancient poem

A Plum Blossom · The Rain Beats the Pear Blossoms and Closes the Door
Ming Tang Yin
The rain beats the pear blossoms behind closed doors, betraying their youth and wasting their youth.
Who cares about pleasure and pleasure? The soul is ecstasy under the flowers, and the soul is ecstasy under the moon.
The eyebrows are full of sorrow, and the sun is frowning, and there are thousands of crying marks, and thousands of crying marks.
I look at the sky at dawn and the clouds at dusk. I miss you when I walk and I miss you when I sit.

——2023.03.24

reference

Copyright statement: This article is an original article by the blogger and follows the CC 4.0 BY-SA copyright agreement. Reference is as follows:
   1. Use VirtualBox to install Ubuntu virtual machine - complete tutorial

Guess you like

Origin blog.csdn.net/Ratib/article/details/128167397