logo
search
list

Table of Content

Pick the Right Linux VM Tool
What You Need
Option 1: VirtualBox — Linux Desktop VM (Beginner Default)
Option 2: Multipass — Fast Ubuntu VMs for Developers
Option 3: KVM + virt-manager on a Linux Host
Linux VM on Mac and Windows (Quick Notes)
Everyday VM Settings That Matter
Fix Common Linux VM Problems
After the Linux VM Runs: Shareable Documents in the Guest
FAQ

Linux Virtual Machine Guide: VirtualBox, Multipass, KVM

Posted by Algirdas Jasaitis

calendar

2026-07-27

views

875

likes

4

A Linux virtual machine (VM) is a full Linux system running inside software on your current computer—Windows, macOS, or another Linux host—without dual-booting or wiping disks. You create a virtual CPU, RAM, and disk, then install Ubuntu (or another distro) as the guest.

The shortest reliable path for most people is: enable hardware virtualization → install a hypervisor → create a VM with enough RAM/disk → install Ubuntu → add guest tools for display and shared folders. Success means you can log into the guest and run sudo apt update.

If you already know your goal, jump to: VirtualBox desktop Ubuntu, Multipass CLI Ubuntu, KVM on a Linux host, or Guest Additions / shared folders.

Concept illustration of a Linux desktop running inside a virtual machine on a laptop
Choose VirtualBox for a Linux desktop GUI, Multipass for fast Ubuntu CLI VMs, or KVM on a Linux host for best performance.

For the full PC install overview with Ubuntu, start with how to install Linux on a PC.

Pick the Right Linux VM Tool

GoalBest tool
Full Ubuntu Desktop GUI on Windows/macOS/LinuxVirtualBox (Canonical has a clear tutorial)
Fast Ubuntu CLI / cloud-style instances for developersMultipass
Best performance on a Linux hostKVM + virt-manager (or QEMU/KVM)
Apple Silicon Mac desktop guestUTM or Parallels (ARM Ubuntu), not classic amd64 VirtualBox
Enterprise / VMware shopVMware Workstation/Player + open-vm-tools

Ask Ubuntu traffic clusters around VirtualBox Guest Additions, shared folders, disk resize, and KVM/libvirt networking—those are the pain points after the first boot.

What You Need

  • A host with free RAM and disk (leave headroom for the host OS)
  • Hardware virtualization enabled (Intel VT-x / AMD-V / SVM) in firmware when required
  • Internet to download the hypervisor and Ubuntu images

Ubuntu’s VirtualBox tutorial guidance for a comfortable Desktop guest:

  • About 8 GB RAM (4 GB still usable)
  • Up to about 4 vCPUs if the host can spare them (stay in VirtualBox’s “green” range)
  • About 25 GB virtual disk minimum

Option 1: VirtualBox — Linux Desktop VM (Beginner Default)

VirtualBox runs on Windows, macOS, and Linux and is the usual answer when people search linux virtual machine wanting a windowed Ubuntu desktop.

1) Download VirtualBox and Ubuntu

  1. Install VirtualBox from the official VirtualBox downloads page.
  2. Download Ubuntu Desktop from the official Ubuntu Desktop download page.
  3. Save the .iso on the host hard drive.

2) Create the VM

Canonical’s VirtualBox 7 flow:

  1. Open VirtualBox → New.
  2. Name it with “Ubuntu” so Type/Version auto-detect when possible.
  3. Select the Ubuntu ISO Image.
  4. Optional: use Unattended Guest OS Install—change default username/password (vboxuser/changeme is weak / may lack sudo if left unchanged). Hostname must have no spaces.
  5. Enable Guest Additions when offered.
  6. Assign RAM/CPU within safe host limits; create ~25 GB+ disk (dynamic allocation is fine).
  7. FinishStart.

3) Finish Ubuntu and update

Let unattended install complete, or run the normal installer manually. Then:

sudo apt update && sudo apt upgrade -y
sudo snap refresh

Early resolution may stay low until Guest Additions finish—Ubuntu’s tutorial calls this expected.

4) Guest Additions (display, clipboard, shared folders)

Ask Ubuntu’s highest-traffic VirtualBox answers center here.

Typical path inside the Ubuntu guest:

sudo apt update
sudo apt install build-essential dkms linux-headers-$(uname -r)

Then VirtualBox menu → DevicesInsert Guest Additions CD image → run the Linux additions installer from the mounted CD → reboot.

5) Shared folders

  1. VM SettingsShared Folders (or Devices → Shared Folders): add a host folder, enable auto-mount if desired.
  2. In the guest:
sudo usermod -aG vboxsf $USER
  1. Log out/in or reboot. Auto-mounts often appear under /media/sf_.

Ask Ubuntu’s standard fix for “can’t access shared folder” is the vboxsf group.

Option 2: Multipass — Fast Ubuntu VMs for Developers

Multipass is Canonical’s tool for cloud-style Ubuntu VMs on Linux, macOS, and Windows. It fetches Ubuntu images for you and is ideal when you want a shell, not a full Desktop ISO install.

On Ubuntu/Linux:

sudo snap install multipass
multipass launch --name dev --cpus 2 --memory 4G --disk 20G
multipass shell dev

Useful commands: multipass list, multipass stop, multipass start, multipass delete --purge.

Use Multipass when you need disposable Ubuntu environments for coding, testing, or cloud-init workflows. Use VirtualBox/UTM when you need a persistent GUI desktop.

Option 3: KVM + virt-manager on a Linux Host

If your host is already Linux, KVM usually outperforms VirtualBox for the same hardware.

Typical Ubuntu Desktop path:

sudo apt update
sudo apt install qemu-kvm libvirt-daemon-system virt-manager

Then open Virtual Machine Manager, create a new VM, attach an Ubuntu ISO, and allocate RAM/CPU/disk. Confirm your user can talk to libvirt (Ask Ubuntu’s classic virt-manager can't connect to libvirt threads usually mean group/socket permissions or the libvirt service not running).

Also watch for: default NAT network not active (network 'default' is not active), and bridge setup when you need LAN-visible guests.

Linux VM on Mac and Windows (Quick Notes)

  • Windows host: VirtualBox or Multipass (Hyper-V backend where supported). Avoid Hyper-V / VirtualBox fights—fix host virtualization conflicts if 64-bit guests won’t start.
  • Intel Mac: VirtualBox or Multipass work for amd64 guests.
  • Apple Silicon Mac: prefer ARM Ubuntu guests in UTM/Parallels; Multipass can launch ARM instances. Do not expect a normal amd64 Desktop ISO VM to be the best path.

Everyday VM Settings That Matter

RAM/CPU: Over-allocating freezes the host. Stay within green/safe ranges.

Disk growth: Dynamic disks save host space; fixed/preallocated can be faster. Ask Ubuntu’s “increase VirtualBox disk size” threads remind you: resizing the virtual disk is only half the job—you must also grow the partition/filesystem inside the guest.

Snapshots: Great before risky experiments; bad as a substitute for backups.

Save state vs shutdown: Save state is like sleep; shut down cleanly before changing CPU/RAM settings.

Fix Common Linux VM Problems

64-bit Linux greyed out / VM won’t start

Enable VT-x/AMD-V in firmware. On Windows, resolve Hyper-V conflicts if VirtualBox cannot start guests.

Black screen or tiny 800×600 display

Install Guest Additions (VirtualBox) or open-vm-tools (VMware). Reboot the guest.

Shared folder permission denied

Add your user to vboxsf (VirtualBox) or fix vmhgfs/open-vm-tools mounts (VMware), then re-login.

Guest is painfully slow

Add RAM, enable virtualization extensions, use KVM on Linux hosts, avoid nested VMs unless you need them.

Multipass can’t launch

Check the daemon (multipass version/list), driver settings, and host free disk/RAM; on macOS, firewall/driver notes in Multipass docs can matter.

virt-manager “can’t connect to libvirt”

Ensure libvirtd is running and your user is in the right groups; reboot after group changes.

After the Linux VM Runs: Shareable Documents in the Guest

A Linux VM is often used for dev work, demos, lab notes, or reproducible test steps. Those terminal notes still need to become documents the host machine or a teammate can open easily.

WPS Office for Linux is a practical office layer inside the guest: Writer for procedure notes, Spreadsheet for test matrices, Presentation for walkthroughs, and PDF tools for fixed exports.

WPS Office Writer on a Linux desktop editing an incident report DOCX with a familiar ribbon toolbar
WPS Writer on Linux: turn setup notes, terminal findings, and troubleshooting steps into a DOCX or PDF that teammates can open easily.
What you need nextWhat WPS gives you
Turn VM notes and outputs into shareable filesStrong .docx / .xlsx / .pptx layout fidelity when files move between Linux, Windows, and macOS
One place for notes, sheets, slides, and PDFsFree core suite: Writer, Spreadsheet, Presentation, plus PDF view/edit/convert tools
A familiar desktop UI for switchersRibbon-style apps with a lighter footprint than many heavy suites
A trusted install pathOfficial DEB (Ubuntu/Debian/Mint) and RPM packages from the vendor

Get the current 64-bit package from the official WPS Office for Linux download page, install it with sudo apt install ./wps-office_VERSION_amd64.deb, then use your VM shared folder to move DOCX, XLSX, or PDFs between host and guest cleanly.

FAQ

What is a Linux virtual machine?
A complete Linux OS running as a guest inside virtualization software on your current computer.

Which Linux VM is best for beginners?
VirtualBox + Ubuntu Desktop for a GUI. Multipass if you mainly need an Ubuntu terminal quickly.

How much RAM should I give Ubuntu?
Ubuntu’s VirtualBox tutorial suggests about 8 GB when possible; 4 GB can still work for lighter use. Always leave RAM for the host.

Do I need Guest Additions?
For VirtualBox desktops, yes—for resizing, clipboard, and shared folders. Install after the guest OS is working.

Is Multipass the same as VirtualBox?
No. Multipass is optimized for fast Ubuntu instances (often CLI/cloud-style). VirtualBox is a general desktop hypervisor UI for full Desktop installs.

Can I run a Linux VM on Linux?
Yes—and KVM is usually the performance choice on Ubuntu hosts, with virt-manager as the GUI.

Algirdas Jasaitis

15 years of office industry experience, tech lover and copywriter. Follow me for product reviews, comparisons, and recommendations for new apps and software.