Ubuntu VM Install Guide (2024)

A tutorial on how to install and run Ubuntu on a new virtual machine alongside your main OS.

Introduction

As a computer science student, I have found the need for a full-fledged Linux distro but ssh-ing onto a separate Linux machine (although wonderful in a pinch) started to become obnoxious. I needed a physical Linux machine.
However, I didn't have a laptop available that I could fully dedicate to running Linux since many of the applications I do run in my spare time are Windows based.

This gave me two options:
1.) Partition my hard-drive and dual-boot both Windows and Linux.
2.) Install a Virtual Machine and run Linux alongside of Windows.

Like most things, pros and cons exist with both.

Pros:

  • Can simultaneously run Linux alongside of Windows. To switch between the operating systems, you don't need to fully shut down one and then boot up the other.
  • Don't need to sacrifice a full machine to solely run a secondary OS that might not get used all that much.

Cons:

  • Since Linux will be run in a VM on the same hardware as your main OS, the computing resources are shared. If process and memory heavy applications are also going to be run inside of Linux or Windows while the VM is running, this could cause for some pegged resources.

Prereqs

Download and install the latest version of VirtualBox for the OS in which you would like to concurrently run alongside of Ubuntu. You will also need an Ubuntu .iso file to install on your virtual machine. This tutorial uses Ubuntu 12.04 LTS 64-bit but any version should work fine.

Needs

Steps

Create New Virtual Machine

Open up VirtualBox and click New.

Ubuntu VM Install Guide (1)

Name the virtual machine and select Type: Linux and the Ubuntu version you intend to install.

Ubuntu VM Install Guide (2)

Select the amount of memory you would like to allocate for the Ubuntu virtual machine. VirtualBox recommends that the memory size be at least 512MB, however, the more memory you make available to the VM, the smoother and more powerful it will be. As a rule of thumb, 1/4 of the amount of memory you have on your computer should be just fine. Just like a normal application, this memory will only be utilized when the VM is being run.

Ubuntu VM Install Guide (3)

Select the virtual hard drive for the new machine to use. If this is the first VM created with VirtualBox, the creation of a new virtual hard drive is needed. The hard drive file type chosen should be VDI (VirtualBox Disk Image). You could point the machine to an existing virtual hard drive as well.

Ubuntu VM Install Guide (4)

Set the location and size of the new .vdi file. VirtualBox recommends a hard drive of at least 8GB. The Ubuntu installation takes up about 2.3GB of space and the rest of the allocated size is open for files and applications. If you are planning on storing a large amount of data inside of your VM, it may be better to give more than 8GB.

Ubuntu VM Install Guide (5)

Install Ubuntu

We now need to install the Ubuntu OS onto the new virtual machine. Click the Settings gear and navigate to the Storage section. Highlight the Empty subfield under the Controller: IDE and click the disk icon under Attributes next to the CD/DVD Drive dropdown. Choose a virtual CD/DVD disk file...

Ubuntu VM Install Guide (6)

Navigate to the Ubuntu .iso file and click Open. Press Okay.

Ubuntu VM Install Guide (7)

Double-click on the new virtual machine and it will start up in a new window. This will now begin the install of Ubuntu just like it would if it was being installed on any brand new physical machine.

Ubuntu VM Install Guide (8)

Follow the instructions to install Ubuntu.

Ubuntu VM Install Guide (9)

Verify that the dropdown is pointing to the newly created virtual disk and Install now.

Ubuntu VM Install Guide (10)Ubuntu VM Install Guide (11)

After the installation is complete it will ask you to restart the machine. When you restart, an error will be given asking to remove the installation media. This is because the .iso is still attached as a live CD/DVD in the Controller: IDE. VirtualBox automatically notices this and removes ejects the .iso installation media. Press Enter and it will boot up as normal.

Ubuntu VM Install Guide (12)

Extras

A fully operational version of Ubuntu is now running simultaneously alongside the physical machine's OS. Unfortunately, right out of the box you cannot get Ubuntu to fill the screen when you try to go full-screen (Host-f). This is an easy fix and begins with installing Guest Additions from the VirtualBox toolbar. Devices -> Install Guest Additions.... Press Run and type in your password (if it asks).

Ubuntu VM Install Guide (13)Ubuntu VM Install Guide (14)

Once installed, reboot the virtual machine. Now when Host+f is pressed, the Ubuntu desktop should fill the entire screen.

Create a shortcut of the newly installed virtual machine to the taskbar by right-clicking on the virtual machine inside of VirtualBox and choosing “Create Shortcut on Desktop”. I changed the .ico of the shortcut to an Ubuntu logo making it 1-click from running a full instance of Ubuntu simultaneously with the physical machine's OS.

Ubuntu VM Install Guide (2024)

FAQs

How to install Ubuntu on a virtual machine? ›

How to install Ubuntu on VirtualBox?
  1. Install the Ubuntu ISO File from the Ubuntu Official Webpage.
  2. Open VirtualBox Application.
  3. Click on New Section.
  4. Upload the Ubuntu ISO File and provide the OS Name.
  5. Assign the RAM Space.
  6. Create a Virtual Hard Disk.
  7. Now, the Ubuntu ISO File is ready.
Jan 30, 2024

How much RAM should I allocate to Ubuntu VM? ›

Create New Virtual Machine

VirtualBox recommends that the memory size be at least 512MB, however, the more memory you make available to the VM, the smoother and more powerful it will be. As a rule of thumb, 1/4 of the amount of memory you have on your computer should be just fine.

How to install Ubuntu VM on VMware workstation? ›

How to download, install, and run Ubuntu in VMware Workstation.
  1. Step 1: Download VMware Workstation. ...
  2. Step 2: Install VMware Workstation. ...
  3. Step 3: Download Ubuntu ISO. ...
  4. Step 5: Specify the Ubuntu ISO. ...
  5. Step 6: Name and Specify Storage. ...
  6. Step 7: Customize Hardware (Optional) ...
  7. Step 8: Finish and Install.
Dec 15, 2023

How do I install Ubuntu 22.04 virtual machine? ›

Creating a new virtual machine
  1. Open UTM and click the “+” button to open the VM creation wizard.
  2. Select “Virtualize”.
  3. Select “Linux”.
  4. Click “Browse” and select the Ubuntu Server ISO downloaded from the link above. ...
  5. Pick the amount of RAM and CPU cores you wish to give access to the VM.

Is Ubuntu VirtualBox good? ›

VirtualBox is one of the most powerful virtualization tools that enables users to run different operating systems on a single physical computer. VirtualBox is a great way to do it if you're trying out Ubuntu or just want to test out a new application in a safe environment.

How many VMs can I run with 16GB RAM? ›

Recommended Number of Virtual Machines
ModelMax System Memory InstalledRecommended Virtual Machine Instances (with 1 vCPU and 1 GB RAM)
RS1619xs+64 GB (16 GB x 4)8
RS1221+/RS1221RP+32 GB (16 GB x 2)8
RS1219+16 GB (8 GB x 2)4
RS822+/RS822RP+32 GB (16 GB x 2)8
67 more rows
Oct 2, 2023

Is 32GB RAM enough for VM? ›

The more RAM the better, but 8GB is probably a practical minimum. My previous host machine had 16GB, which quite enough to run several Hyper-V VMs simultaneously. My current host machine has 32GB, which is enough (just) to run 10 VMs at once, as I showed HERE.

What is optimal RAM for VM? ›

A good starting point is to allocate 2 GB for Windows 10 or later desktops. If you want to use one of the hardware accelerated graphics features for 3D workloads, VMware recommends two virtual CPUs and 4 GB of RAM.

Is Ubuntu faster than Windows? ›

Performance. Under identical conditions, Ubuntu offers you better performance. This is because this operating system demands a much smaller amount of hardware resources, which allows them to be used for other essential activities.

How much time does it take to install Ubuntu? ›

After clicking continue, Ubuntu installation will start. Give it about 20 minutes and restart the computer after installation is done. Once the computer boots up, you should see the default welcome screen. Congratulations – you have successfully installed Ubuntu on your computer.

What is jammy in Ubuntu? ›

Ubuntu 22.04 LTS, dubbed “Jammy Jellyfish,” introduces significant advancements in user experience and system stability, targeting new and experienced users. It features GNOME 42, providing a sleek, modern interface that enhances usability and aesthetics alongside improved system performance and efficiency.

Does Ubuntu support virtual machine? ›

Kernel-Based Virtual Machine (KVM) is a Linux kernel module that enables hardware-assisted virtualization. It is the default virtualization technology supported by Ubuntu.

How to run Ubuntu on Windows 10 virtual machine? ›

Install Ubuntu on Windows Using VirtualBox
  1. Download location for VirtualBox for Windows.
  2. Download the dependency for VirtualBox.
  3. Install the dependency for VirtualBox.
  4. Select VirtualBox from start menu.
  5. Click on New.
  6. Select the ISO file.
  7. Select Hardware.
  8. Select Hard Disk.
Jan 12, 2023

How to install Linux on VirtualBox? ›

Process to Install Linux on Your Windows Using VirtualBox
  1. Step 1: Once you have the VirtualBox downloaded, install it:
  2. Step 2: Now, go to Machine > New:
  3. Step 3: Select the amount of RAM.
  4. Step 4: Select hard disk setting:
  5. Step 5: Choose the downloaded Linux ISO file:
  6. Step 6: Install Linux.
  7. Step 7: Make your Account:
Jun 15, 2023

How do I install Ubuntu on my Mac virtual machine? ›

To minimize the chance of hardware incompatibility, the best way to run Ubuntu Linux is to first install a virtual machine hypervisor (Oracle VirtualBox is recommended because it's free and available on both Windows and Mac OS X machines), then install 32-bit Ubuntu 16.04 into a virtual machine inside the hypervisor.

Top Articles
Short-Term vs. Long-Term CD Terms: What's the Difference?
My Help Center
Junk Cars For Sale Craigslist
Google Sites Classroom 6X
Boggle Brain Busters Bonus Answers
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Gameplay Clarkston
Southland Goldendoodles
Ohiohealth Esource Employee Login
Gfs Rivergate
General Info for Parents
More Apt To Complain Crossword
Craigslist Alabama Montgomery
Magic Mike's Last Dance Showtimes Near Marcus Cedar Creek Cinema
Tcgplayer Store
Buff Cookie Only Fans
Slope Tyrones Unblocked Games
St Maries Idaho Craigslist
Race Karts For Sale Near Me
How Long After Dayquil Can I Take Benadryl
Rs3 Ushabti
Regina Perrow
Hesburgh Library Catalog
Visit the UK as a Standard Visitor
Frank Vascellaro
Ewg Eucerin
Bridgestone Tire Dealer Near Me
The value of R in SI units is _____?
Kokomo Mugshots Busted
Pitco Foods San Leandro
Frostbite Blaster
Terrier Hockey Blog
Mcgiftcardmall.con
Froedtert Billing Phone Number
Citibank Branch Locations In Orlando Florida
Casamba Mobile Login
Three V Plymouth
Cocorahs South Dakota
Does Target Have Slime Lickers
Trending mods at Kenshi Nexus
26 Best & Fun Things to Do in Saginaw (MI)
Willkommen an der Uni Würzburg | WueStart
American Bully Puppies for Sale | Lancaster Puppies
Wisconsin Volleyball titt*es
Online College Scholarships | Strayer University
Ronnie Mcnu*t Uncensored
Suppress Spell Damage Poe
Guy Ritchie's The Covenant Showtimes Near Look Cinemas Redlands
Game Like Tales Of Androgyny
Festival Gas Rewards Log In
Taterz Salad
login.microsoftonline.com Reviews | scam or legit check
Latest Posts
Article information

Author: Stevie Stamm

Last Updated:

Views: 6231

Rating: 5 / 5 (80 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Stevie Stamm

Birthday: 1996-06-22

Address: Apt. 419 4200 Sipes Estate, East Delmerview, WY 05617

Phone: +342332224300

Job: Future Advertising Analyst

Hobby: Leather crafting, Puzzles, Leather crafting, scrapbook, Urban exploration, Cabaret, Skateboarding

Introduction: My name is Stevie Stamm, I am a colorful, sparkling, splendid, vast, open, hilarious, tender person who loves writing and wants to share my knowledge and understanding with you.