Your cart is currently empty!
How to Install Ubuntu 22.04.4 Server on VirtualBox
Installing Ubuntu Server on VirtualBox is a great way to set up a safe, test-friendly environment on your existing machine. Here’s how to get Ubuntu 22.04.4 Server running on VirtualBox from scratch.
What You Need
- VirtualBox installed (Windows, macOS, or Linux).
- Ubuntu 22.04.4 Server ISO file (Direct download here).
- At least 2GB RAM and 15GB free disk space on your PC.
Step 1: Download and Install VirtualBox
- Go to the VirtualBox website.
- Download the latest version for your OS.
- Install it by following the on-screen instructions.
Step 2: Download Ubuntu Server ISO
- Get the Ubuntu 22.04.4 Server LTS ISO directly from this link.
- Save the
.iso
file somewhere easy to find.
Step 3: Create a New Virtual Machine
- Open VirtualBox.
- Click New.
- Name your VM (e.g., “Ubuntu Server 22.04.4”).
- Set Type to “Linux” and Version to “Ubuntu (64-bit).”
- Click Next.
Step 4: Configure RAM and Hard Disk
- Memory Size: Allocate at least 2048 MB (2 GB).
- Hard Disk: Select “Create a virtual hard disk now” and click Create.
- Disk Type: Stick with “VDI (VirtualBox Disk Image).”
- Storage on Physical Hard Disk: Choose “Dynamically allocated.”
- Disk Size: Set at least 15 GB (20 GB recommended).
- Need more space later? Check out How to Enlarge a Virtual Machine’s Disk in VirtualBox or VMware.
Step 5: Attach the Ubuntu ISO
- Select your new VM in the left panel.
- Click Settings > Storage.
- Under “Controller: IDE,” click the empty disk icon.
- On the right, click the disk icon next to “Optical Drive,” then choose “Choose a disk file.”
- Browse and select your Ubuntu 22.04.4 Server ISO file.
Step 6: Start the Virtual Machine
- With your VM selected, click Start.
- The VM will boot from the ISO and start the Ubuntu Server installer.
Step 7: Install Ubuntu Server
Follow the on-screen instructions:
- Select Language and keyboard layout.
- Network setup: Use default unless you need custom networking.
- Configure Storage: Use “Use an entire disk.” Confirm the changes.
- Profile Setup: Enter your name, server name, username, and password.
- SSH Setup: (Optional) Install OpenSSH if you plan to connect remotely.
- Featured Server Snaps: Skip unless you know you need something.
The installation will take a few minutes.
Step 8: Remove ISO and Reboot
- When prompted, reboot the system.
- If you see a message to “remove installation media,” go to Devices > Optical Drives in the VM menu and uncheck the ISO.
- Press Enter to finish rebooting.
Step 9: Log In
- After reboot, you’ll see the Ubuntu login prompt.
- Enter the username and password you set up during installation.
That’s it—your Ubuntu 22.04.4 Server is ready to use on VirtualBox!
Optional: Install a Desktop Environment
Want a graphical interface? Follow this guide:
How to Install a Desktop Environment/GUI in Ubuntu Server
Final Tips
- Take a snapshot in VirtualBox now, so you can restore your server if you mess something up.
- Keep your system up to date:
sudo apt update && sudo apt upgrade
- Use the server to practice Linux, run services, or test software safely.
- Need to grow your virtual disk later? Here’s how to enlarge your VM’s disk.
Got questions? Drop them in the comments!
Tech enthusiast and content creator passionate about making technology simple for everyone. I share practical tips, guides, and reviews on the latest in computers, software, and gadgets. Let’s explore the digital world together!