Install Ubuntu system using VirtualBox [Nanny Level]

This article introduces in detail the use of VirtualBox to install the Ubuntu system and realize the sharing of pasteboards and shared folders between the virtual machine Ubuntu and the Windows system. It mainly includes the following five parts:

  1. Download the VirtualBox software installation package
  2. Download Ubuntu system image
  3. Install VirtualBox
  4. VirtualBox creates a new Ubuntu virtual machine and installs the Ubuntu system
  5. Share pasteboard and shared folders between VirtualBox virtual machines Ubuntu and Windows systems

1. Download the VirtualBox software installation package

Go to VirtualBox official website to download: Oracle VM VirtualBox

2. Download Ubuntu system image

Enter Ubuntu official website: https://cn.ubuntu.com/

1. Click [Desktop System] to enter the desktop system interface

2. Click [Download Ubuntu] to enter the Ubuntu desktop system image download interface

If you download the latest Ubuntu 22.04.3 LTS, directly click the [Download 22.04.3] button

If you want to download other system versions, click [Other Downloads]

Click [Other Downloads] to enter other system version downloads. This time I have downloaded Ubuntu 20.04.6 LTS as an example. Click the following link to download the Ubuntu 20.04.6 LTS system image.

3. Install VirtualBox

Run the downloaded VirtualBox software installation package. For example, I downloaded: VirtualBox-7.0.10-158379-Win.exe

VirtualBox installation is very simple, just click [Next]

4. VirtualBox creates a new Ubuntu virtual machine

1. Create a new Ubuntu virtual machine

Click [New]

Give the new virtual machine a name and select the virtual machine storage path, and select the downloaded Ubuntu image file

Then check [Skip automatic installation]

Configure memory and CPU. This configuration is based on the actual situation of your computer.

Virtual hard disk ,,This is also configured according to the actual situation of your computer.

Then the [Summary] message will pop up, click to complete

Click [Start] to start installing the Ubuntu system in VirtualBox

2. Install Ubuntu system in VirtualBox

Enter the Ubuntu system installation interface, and the next step is the process of installing the Ubuntu system, which is exactly the same as the installation steps on a non-virtual machine. You can refer to: ubuntu20.04 installation tutorial_ubuntu20.04 installation tutorial-CSDN blog

Select the system language according to your preference. Below I have taken [Chinese (Simplified)] as an example.

Select installation type:

[Clear the entire disk and install Ubuntu] method:

[Other Options] Solution: You need to configure the partitions according to your needs, such as root partition /, swap space, /home, etc.

Here I take the method of [clearing the entire disk and installing Ubuntu] as an example:

Set username and password:

Then I will start to be responsible for the file installation, please wait patiently.

After the system is installed, the “Installation Complete” dialog box will pop up, prompting that the system has been installed. At this time, click “Restart” to restart the system to enter the installed Ubuntu20.04 system.

In the following interface, press ENTER to start the system.

2. After the installation is completed, enter the Ubuntu system

Boot wizard interface

After skipping all the way or logging in, you finally see the system desktop. Since the Ubuntu 20.04.6 LTS currently installed is not the latest version, you may receive a prompt that the system version can be upgraded as soon as you enter the system. Choose according to your needs. It is recommended [No upgrade】.

At this point, congratulations, you are done creating the Ubuntu operating system in VirtualBox. . .

5. Sharing the pasteboard and shared folders between VirtualBox virtual machine Ubuntu and Windows systems

1. Shared pasteboard

[Device]->[Shared Pasteboard]

[Device]->[Install enhanced functions]

The following window will pop up, click Run

Installation completed

Find the created [Ubuntu 20.04.6 LTS] virtual machine in the Oracle VM VirtualBox manager, right-click the mouse, and select [Restart] virtual machine in the pop-up window.

After restarting, the pasteboard can be shared between the VirtualBox virtual machine Ubuntu and the Windows system, and copy and paste can be shared between Windows and Ubuntu.

Windows copy-paste shortcuts: Ctrl + C and Ctrl + V
Ubuntu copy-paste shortcut: Ctrl + Shift + C Ctrl + Shift + V

2. Shared folder

Select the shared folder path, enter the shared folder name, and then select Automount and Fixed Assignment

【Device 】->【Install enhanced functions】

The following window will pop up, click to run Installation completed.

Open the terminal command line in Ubuntu system and enter:

sudo usermod -a -G vboxsf liuzhengliang

Note: liuuzhengliang needs to be changed to your own username.

Find the created [Ubuntu 20.04.6 LTS] virtual machine in the Oracle VM VirtualBox manager, right-click the mouse, and select [Restart] virtual machine in the pop-up window.

After restarting, folders can be shared between the VirtualBox virtual machine Ubuntu and the Windows system, thereby realizing file sharing between Windows and Ubuntu.

Create a new [window and ubuntu shared file.txt] file under windows. This file can also be seen in the Ubuntu system, and the shared folder is now complete.

windows:

ubuntu system:

The knowledge points of the article match the official knowledge files, and you can further learn relevant knowledge. CS entry skill treeLinux introductionOnline installation software 37515 people are learning the system