How to use Linux on your Mac using a virtual machine

Linux on Mac
Linux on Mac (Image credit: iMore)

With virtualization, you can install and use various operating systems on your Mac, including Windows and Linux. For the latter, we recommend using the latest version of Parallels or open-source VirtualBox. Here's a look at how to install and use Linux using each option.

What is virtualization?

As I noted in a previous post, software virtualization allows you to simulate a hardware environment and run multiple operating systems on one computer. In doing so, these virtual machines can take advantage of the hardware components on a computer such as RAM and storage in complete isolation to the primary operating system.

For those wanting to install Linux on their Mac through virtualization, we recommend using the latest version of Parallels or open-source VirtualBox. The former offers an easier-to-install solution, but you must pay for it after a 14-day free trial. The latter is open-source and free, but more difficult to install. Regardless, each solution will get the job done.

Installing Linux through Parallels

Using Parallels 15 for Mac, you can install a copy of Linux on your computer following the directions below. These steps assume Parallels has already been installed on your machine.

  1. Click File on the Parallels toolbar.
  2. Select New
  3. Highlight Download Ubuntu Linux under Free Systems.

Install Linux on Mac using Parallels (Image credit: iMore)
  1. Click Continue.
  2. Choose Download to download a copy of Linux onto your computer.

Download Linux

Download Linux (Image credit: iMore)

Once installed, Linux want you to add a new password for the "Parallels" user. You can also choose "Not Listed?" to add a new UNIX user. Regardless, sign into your UNIX account.

Ubunti Linux user login (Image credit: iMore)
  1. Type in your newly created password in the Parallels Tools box.
  2. Click OK.

Install Parallels tools

Install Parallels tools (Image credit: iMore)
  1. Restart your virtual machine at the prompt.

You can now use Ubuntu Linux on your Mac using Parallels.

Installing Linux through VirtualBox

To install a virtual copy of Linux on your Mac using the open-source VirtualBox, do the following. These steps assume VirtualBox has already been installed on your machine:

  1. Click New in VirtualBox.
  2. Add a name for your virtual copy of Linux.
  3. Choose Linux as the type of installation.
  4. Select the version of Linux to use.
  5. Click Continue

Install Linux using VirtualBox (Image credit: iMore)
  1. Choose a Memory Size. Use the suggested minimum or select another number up to your maximum. The more memory you allocate for your virtual operating system, the speedier it will be.
  2. Select Continue.
  3. Choose the Create a virtual hard disk now radio dial.
  4. Click Create.

Linux Memory and Hard Drive (Image credit: iMore)
  1. Confirm VDI (VirtualBox Disk Image) as your hard drive file type.
  2. Select Continue.
  3. Confirm Dynamically allocated for storage.

  1. Choose file location and size
  2. Select Create.

The steps above are just the first part of installing Linux on your Mac. You must now download a copy of Linux to work with VirtualBox to finish the process:

  1. Download Ubuntu Desktop from the Ubuntu website.
  2. Click Download next to the latest LTS version.
  3. Confirm to download.

Download Ubuntu

Download Ubuntu (Image credit: iMore)

Once downloading this file is complete, go back into VirtualBox.

  1. Highlight the Linux instance on the left side of the VirtualBox Manager.
  2. Choose Start.
  3. Click on the File Icon on the pop-up screen.
  4. Select Add at the top left.

  1. Find, then highlight the Ubuntu file you just downloaded.
  2. Choose Open.

Get Linux file (Image credit: iMore)
  1. With the new file highlight, select Choose.
  2. Select Start.

Linux install (Image credit: iMore)

From there, following the online directions provided by Ubuntu to finish the installation.

Adjust the settings

Depending on your Mac version and age, you may need to adjust the VirtualBox settings for Linux to make the window bigger. To do so, you must first exit the Linux installation. From there:

  1. Highlight the Linux virtual intallation on the main VirtualBox screen.
  2. Choose Settings.
  3. Select Display.
  4. Change Scale Factor from 100% to 200%.
  5. Click OK.

Linux display settings (Image credit: iMore)
  1. Click Start to start Linux on your Mac.

You can now change the screen size for your Linux installation and begin using the oeprating system on your Mac.

VirtualBox Linux on Mac (Image credit: iMore)

Which should you choose?

Having installed Linux through both Parallels and VirtualBox on my MacBook Pro, I can tell you the process is easier through Parallels. As you can see above, there are much fewer steps to install Linux through Parallels. The result is the same once the operating system gets installed, however.

If you're already using Parallels on your Mac (to use Windows, for example), you should continue to do so for Linux. The process is simple, and easy-to-follow. However, if you're looking for a free solution or are new to virtualization, consider VirtualBox. Just go into it know you'll need to follow a few more steps.

Questions?

Do you have any questions? Let us know in the comments below.

Bryan M Wolfe
Staff Writer

Bryan M. Wolfe has written about technology for over a decade on various websites, including TechRadar, AppAdvice, and many more. Before this, he worked in the technology field across different industries, including healthcare and education. He’s currently iMore’s lead on all things Mac and macOS, although he also loves covering iPhone, iPad, and Apple Watch. Bryan enjoys watching his favorite sports teams, traveling, and driving around his teenage daughter to her latest stage show, audition, or school event in his spare time. He also keeps busy walking his black and white cocker spaniel, Izzy, and trying new coffees and liquid grapes.