Lazy loaded image
🖥️Create Virtual Machine With VirtualBox
Words 801Read Time 3 min
Apr 29, 2025
Apr 29, 2025
type
status
date
slug
summary
tags
category
icon
password

What is a Virtual Machine?

A virtual machine (VM) is a software-based emulation of a physical computer. It allows you to run an operating system and applications within a separate, isolated environment on your host machine.

Key Characteristics of Virtual Machines:

  • Isolation: VMs run independently from the host system and other VMs, providing a secure environment for testing and running applications.
  • Hardware abstraction: VMs use virtualized hardware, allowing them to run on different physical machines without modification.
  • Resource allocation: You can assign specific amounts of CPU, memory, and storage to each VM, optimizing resource usage.
  • Portability: VMs can be easily moved or copied between different physical hosts, facilitating backup and migration processes.

Common Uses for Virtual Machines:

  • Testing software in different environments
  • Running legacy applications on modern hardware
  • Isolating potentially risky applications or processes
  • Creating development and staging environments
  • Learning and experimenting with different operating systems
Virtual machines are essential tools in modern IT infrastructure, offering flexibility, security, and efficiency in various computing scenarios.
 

What is VirtualBox?

VirtualBox is a popular, open-source virtualization software developed by Oracle. It allows users to create and run virtual machines on their computers, supporting a wide range of host and guest operating systems.

Key Features of VirtualBox:

  • Cross-platform compatibility: VirtualBox runs on Windows, macOS, Linux, and Solaris hosts.
  • Guest Additions: Enhances VM performance and enables features like shared folders and clipboard.
  • Snapshots: Allows you to save and restore VM states at different points in time.
  • Virtual networking: Provides various network configurations for VMs, including NAT, bridged, and host-only networking.
  • Command-line interface: Offers advanced control and automation capabilities for power users.
VirtualBox is widely used for testing, development, and educational purposes due to its ease of use and robust feature set.
 

What is Ubuntu?

Ubuntu is a popular, free, and open-source Linux distribution based on Debian. It is known for its ease of use, regular release cycle, and strong community support.

Key Features of Ubuntu:

  • User-friendly interface: Ubuntu comes with a customized GNOME desktop environment, making it accessible for newcomers to Linux.
  • Long-term support (LTS) releases: Ubuntu offers LTS versions with five years of support, ideal for stability-focused users and enterprises.
  • Large software repository: Access to thousands of free and open-source applications through the Ubuntu Software Center.
  • Regular updates: New versions are released every six months, with the option to upgrade or stick with LTS releases.
  • Strong security: Built-in security features and regular security updates help protect your system.
Ubuntu is widely used in personal computers, servers, and cloud environments, making it a versatile choice for various computing needs.

Ubuntu Desktop vs Ubuntu Server

While Ubuntu Desktop and Ubuntu Server are both based on the same Ubuntu core, they are designed for different use cases and have some key differences:
 
notion image

Ubuntu Desktop:

  • Graphical User Interface (GUI): Comes with a full GNOME desktop environment for easy navigation.
  • Pre-installed software: Includes productivity tools, web browsers, and media players for everyday use.
  • Hardware support: Better out-of-the-box support for desktop hardware like graphics cards and Wi-Fi adapters.
  • Resource usage: Generally requires more system resources due to the GUI and pre-installed applications.
  • Use case: Ideal for personal computers, laptops, and workstations used by individuals.
 
 
notion image

Ubuntu Server:

  • Command-line interface: Primarily operated through a text-based interface, optimizing for remote management and resource efficiency.
  • Minimal installation: Comes with fewer pre-installed packages, allowing for a more customized setup.
  • Server-oriented features: Includes tools for web hosting, database management, and other server-specific tasks.
  • Performance optimization: Tuned for better performance in server environments, with options for low-latency kernels.
  • Use case: Designed for running services, hosting websites, managing databases, and other server-related tasks.
The choice between Ubuntu Desktop and Server depends on your specific needs. For creating a virtual machine, Ubuntu Server is often preferred if you're setting up a development environment or practicing server administration, while Ubuntu Desktop is better for a general-purpose Linux experience or desktop application testing.
 

Create Virtual Machine

 
notion image
Click New
notion image
Hardware
notion image
in this section is specified hardware resource that will use for Virtual Machine, the resource is based on Host system like capacity of your RAM, CPU. You can check in Task Manager of Windows
In my system is have CPU i5-10400F with 12 Logical Processor, and RAM 16 GB
notion image
notion image
so its will be fine to allocation my resource to Virtual Machine with 2 GB Ram and 1 CPU. Then click next
 
notion image
this section is define how much disk you want allocation to VM. i just want keep default using 25 GB of disk. then click next
Here is the summary Virtual Machine that will created
notion image
then finish, and its will create VM with Ubuntu OS
notion image
in this step I will make its default nothing will modify. when interact with VM inside VirtualBox we just can only use keyboard with arrow, space, and tab. we can’t use cursor to click it.
 
notion image
notion image
notion image
 
notion image
notion image
notion image
notion image
notion image
 
Create credentials that will use to login ubuntu server
notion image
 
notion image
notion image
then done, and wait until progress is done, or reboot text is showing
notion image
Great !! now installation is complete, lets reboot the VM
notion image
after success reboot you will see like these that mean is success. we can login with credentials
notion image
 
上一篇
Simple CICD with Jenkins
下一篇
Install Debian Desktop in Huawei Matepad