Home System Tutorial LINUX Tutorial on installing Ubuntu virtual machine under Windows: Easy to use Oracle VM VirtualBox

Tutorial on installing Ubuntu virtual machine under Windows: Easy to use Oracle VM VirtualBox

Jun 15, 2024 am 09:26 AM

Windows 下安装 Ubuntu 虚拟机教程:使用 Oracle VM VirtualBox 轻松搞定

Install Ubuntu virtual machine under Windows. Choose to enable OracleVMVirtualBox to install the Ubuntu virtual machine.

1. Download and install OracleVMVirtualBox: Visit the official website of OracleVMVirtualBox (), download the installation package for Windows, and install it according to the instructions of the installation wizard.

2. Download the Ubuntu ISO image: Visit the Ubuntu official website () vm virtual machine to install linux, select the appropriate Ubuntu version ISO image file from the download page, and select the Desktop version as needed.

3. Create a new virtual machine: Open OracleVMVirtualBox, click the "New" button, and create a new virtual machine according to the wizard. During the process, specify the name, type (Linux), version (corresponding to Ubuntu version), memory size, etc. of the virtual machine.

4. Assign a virtual optical drive: When selecting the hard disk type, select "Create virtual optical drive" and follow the default settings. After that, on the Assign Virtual Optical Drive page, select "Dynamic Allocation" and determine the size of the virtual optical drive.

虚拟机安装linux网络配置_vm虚拟机安装linux_虚拟机安装Linux

虚拟机安装Linux_vm虚拟机安装linux_虚拟机安装linux网络配置

5. Install the Ubuntu operating system: Select the newly created virtual machine and click the "Settings" button to enter the settings page. In the settings page, select the "Storage" tab, click the c drive icon under "Empty"vm virtual machine installation linux, and select "Virtual CD File" at the "CD Icon" on the right, And navigate to the Ubuntu ISO image file you downloaded. Click "OK" to save the settings.

6. Start the virtual machine: Select the newly created virtual machine and click the "Start" button to start the virtual machine. At this point, the virtual machine will load the Ubuntu ISO image file.

7. Install Ubuntu: When the virtual machine starts, you will see the Ubuntu installation interface. Select "InstallUbuntu" and install according to the wizard. You can choose installation options, keyboard layout, partitions, and more.

8. Complete the installation: After completing the installation process, you will be prompted to restart the virtual machine. After restarting, you can log in to the Ubuntu operating system.

expansion:

1. After installing the new Ubuntu system, the following are some common tools and software that can provide a better user experience and functionality:

1. Update and upgrade tools: After installation, first ensure that the system is up to date. You can use the following commands to update and upgrade your system:

虚拟机安装Linux_虚拟机安装linux网络配置_vm虚拟机安装linux

sudoaptupdate

This command is used to update the package list. It detects the package management system's repository and downloads the latest package information. It does not install or upgrade packages, it just updates the list of available packages.

sudoaptupgrade

This command is used to upgrade installed software packages. It updates existing packages to the latest available versions.

2. Network tools: Ubuntu has some basic network tools installed by default, but you may need additional tools for network debugging, management and monitoring. Some common online tools include:

wget: Command line download tool.

curl: used to send HTTP requests in the command line.

vm虚拟机安装linux_虚拟机安装Linux_虚拟机安装linux网络配置

net-tools: Provides network diagnosis and configuration tools, such as ifconfig, netstat, etc.

traceroute: used to trace the path of network packets.

You can install this tool using the following command:

sudoaptinstallwgetcurlnet-toolstraceroute

3. Install the GNU tool chain and other necessary development tools and run the following command:

sudoaptinstallbuild-essential

4. Code reconstruction tools Cmake and make install embedded linux for training on linux operation and maintenance best practices. Run the following commands

sudoaptinstallcmakemake

2. Data transfer between the virtual machine and the host machine (shared folders, shared pasteboard, drag and drop) requires the installation of enhanced functions. If the prompt is as follows:

虚拟机安装linux网络配置_vm虚拟机安装linux_虚拟机安装Linux

You need to install it automatically as follows:

1. Install dependent libraries

Open a terminal window in Ubuntu and make sure your system is updated. After that, install the dependent libraries required to compile the kernel module. Run the following command:

sudoaptupdate

sudoaptinstallbuild-essentialdkmslinux-headers-$(uname-r)

2. Execute the improved function installation program: Return to the Ubuntu virtual machine, open a terminal window, and switch to the mounting directory of the hard disk. Run the following command:

cd/media//VBox*

3. Run the enhanced functionality installation script: Run the following command to execute the enhanced functionality installation script:

sudo./VBoxLinuxAdditions.run

4. Complete installation and restart: Wait for the feature enhancement installation process to complete. After the installation is complete, restart the Ubuntu virtual machine for the improvements to take effect. You can restart by running the following command:

sudoreboot

After that, you can happily drag and drop files and copy and paste text between the host and the virtual machine.

The above is the detailed content of Tutorial on installing Ubuntu virtual machine under Windows: Easy to use Oracle VM VirtualBox. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What is the Linux best used for? What is the Linux best used for? Apr 03, 2025 am 12:11 AM

Linux is best used as server management, embedded systems and desktop environments. 1) In server management, Linux is used to host websites, databases, and applications, providing stability and reliability. 2) In embedded systems, Linux is widely used in smart home and automotive electronic systems because of its flexibility and stability. 3) In the desktop environment, Linux provides rich applications and efficient performance.

What are the 5 basic components of Linux? What are the 5 basic components of Linux? Apr 06, 2025 am 12:05 AM

The five basic components of Linux are: 1. The kernel, managing hardware resources; 2. The system library, providing functions and services; 3. Shell, the interface for users to interact with the system; 4. The file system, storing and organizing data; 5. Applications, using system resources to implement functions.

What is basic Linux administration? What is basic Linux administration? Apr 02, 2025 pm 02:09 PM

Linux system management ensures the system stability, efficiency and security through configuration, monitoring and maintenance. 1. Master shell commands such as top and systemctl. 2. Use apt or yum to manage the software package. 3. Write automated scripts to improve efficiency. 4. Common debugging errors such as permission problems. 5. Optimize performance through monitoring tools.

What is the most use of Linux? What is the most use of Linux? Apr 09, 2025 am 12:02 AM

Linux is widely used in servers, embedded systems and desktop environments. 1) In the server field, Linux has become an ideal choice for hosting websites, databases and applications due to its stability and security. 2) In embedded systems, Linux is popular for its high customization and efficiency. 3) In the desktop environment, Linux provides a variety of desktop environments to meet the needs of different users.

How to learn Linux basics? How to learn Linux basics? Apr 10, 2025 am 09:32 AM

The methods for basic Linux learning from scratch include: 1. Understand the file system and command line interface, 2. Master basic commands such as ls, cd, mkdir, 3. Learn file operations, such as creating and editing files, 4. Explore advanced usage such as pipelines and grep commands, 5. Master debugging skills and performance optimization, 6. Continuously improve skills through practice and exploration.

How much does Linux cost? How much does Linux cost? Apr 04, 2025 am 12:01 AM

Linuxisfundamentallyfree,embodying"freeasinfreedom"whichallowsuserstorun,study,share,andmodifythesoftware.However,costsmayarisefromprofessionalsupport,commercialdistributions,proprietaryhardwaredrivers,andlearningresources.Despitethesepoten

What is a Linux device? What is a Linux device? Apr 05, 2025 am 12:04 AM

Linux devices are hardware devices running Linux operating systems, including servers, personal computers, smartphones and embedded systems. They take advantage of the power of Linux to perform various tasks such as website hosting and big data analytics.

What are the disadvantages of Linux? What are the disadvantages of Linux? Apr 08, 2025 am 12:01 AM

The disadvantages of Linux include user experience, software compatibility, hardware support, and learning curve. 1. The user experience is not as friendly as Windows or macOS, and it relies on the command line interface. 2. The software compatibility is not as good as other systems and lacks native versions of many commercial software. 3. Hardware support is not as comprehensive as Windows, and drivers may be compiled manually. 4. The learning curve is steep, and mastering command line operations requires time and patience.

See all articles