Как установить ubuntu на virtualbox на mac

Download an Ubuntu Image

You can download an Ubuntu image here. Make sure to save it to a memorable location on your PC! For this tutorial, we will use the Ubuntu 20.04 LTS release.

Download and install VirtualBox

On Mac OS or Windows you can download VirtualBox from the downloads page here.

This page also includes instructions to download VirtualBox for Linux. However, on Ubuntu, you can find VirtualBox by simply searching for it in the Ubuntu Software app.

Once you have completed the installation, go ahead and run VirtualBox.

2. Create a new virtual machine

Click New to create a new virtual machine. Fill in the appropriate details:

  • Name: If you include the word Ubuntu in your name the Type and Version will auto-update.
  • Machine Folder: This is where your virtual machines will be stored so you can resume working on them whenever you like.
  • Type: Linux
  • Version: Ubuntu (64-bit)

On the next screen, you will be able to select the amount of RAM from your main PC that the virtual machine will access. Be sure to remain inside the green bar to ensure you can continue to work outside of the VM whilst it’s running!

Note: If you select Expert Mode, you will be given the option to set all of these parameters in one go. Useful for future setups!

It’s fine to use the default settings for now.

After that, you can select how much of your hard disk your VM will use.

The type of hard disk depends on whether you use VirtualBox with other VM software. For now, we can leave this as a VDI.

Then you can choose whether the hard disk is dynamically allocated (up to the limit we will set on the next screen), filling up as the VM requires it. Otherwise, we can tell it to allocate the full amount of memory right from the start. This will improve performance but may take up unnecessary space. We’ll leave it as dynamically allocated for this tutorial.

Finally you can set the maximum amount of memory your VM can access.

After this click Create to initialize the machine!

3. Install your image

Click Start to launch the virtual machine. You will be prompted to select the start-up disk. Use the file icon to open the Optical disc selector and click Add to find your .iso file

Choose the disc image you want to use, then click Start on the start-up disc window.

Note: If you close this window before selecting an image you can still do so from the Devices menu at the top of the VM window. Select Devices > Optical Drives > Choose/Create a disc image…

Ubuntu desktop should now boot and display the installation menu.

After this point you can follow the normal installation flow for Ubuntu Desktop.

But there’s one more thing to talk about before we move on!

4. Changing the window resolution

You’ll notice that by default VirtualBox only displays at 800×600 resolution. But if you right click the Window in monitor icon at the bottom of the screen and select Virtual Screen 1, there are many more options available, but greyed out.

To resolve this we need to change some settings. Close the window and select Power off the machine.

Return to the manager window and select Settings.

Then navigate to the Display tab.

Change the Graphics Controller setting to VBoxSVGA and click OK (ignore the warning).

Now restart your virtual machine.

Once Ubuntu has started, you should now be able to select all of the available resolutions from the virtual monitor menu, or simply resize the window to adjust the display.

That’s the end of the primary tutorial. Congratulations, you now have Ubuntu running on a virtual machine!

What follows are some more advanced options if you’d like to explore VirtualBox further.

5. Installing Guest Additions

Guest Additions is an extra piece of software that unlocks some more advanced features of VirtualBox. This includes better integration between your virtual machine and the host machine, as well as improved video support that enables the display resolution options when using VMSVGA.

To install Guest Additions, you need to complete your installation of Ubuntu in your virtual machine and boot to the desktop.

From there, select Devices > Insert Guest Additions CD.

This will prompt you to download the Guest Additions disk image file.

Click Download.

Then click Insert.

The disc will appear inside your virtual desktop and you will be prompted to run the software.

Enter your password to install it.

Once this is complete, you will need to restart your virtual machine for the new features to take effect.

Close the machine, but before you start it up again, return to the Settings menu and change the Graphics Controller back to VMSVGA and Enable 3D Acceleration. This will improve the performance of your virtual machine by taking advantage of your PC’s 3D hardware and allow you to resize your desktop resolution!

Another feature this unlocks is the shared clipboard, which you can activate in Devices > Shared Clipboard. This will allow you to copy and paste between your virtual and host machines, useful when you want to copy outputs from one device to the other.

6. Explore Virtual Box

As you can probably tell, there are tonnes of further configuration options available in VirtualBox and we’ve only scratched the surface.

VirtualBox allows you to create and configure multiple virtual machines, so don’t be afraid to create new instances of Ubuntu to try out different system and storage configurations to fine tune your performance.

Why not try following the tutorial above with one of the Ubuntu flavours!

7. Tell us your thoughts!

Thank you for following this tutorial, we’d love to hear how you got on.

Give us feedback in the Ubuntu Discourse if you have any issues.

To help us improve our tutorials, we’d love to hear more about you:


Installing Ubuntu 18.04 On Mac OS With VirtualBox

How To Install Different Linux Distributions On Mac OS Mojave

This is a very basic walkthrough tutorial on how to install Ubuntu 18.04, or different Linux Distributions, on your Mac OS using Virtual Box.

It’s very important to note that at the time of writing this, it is July 2019 and these steps might differ as different versions of VirtualBox and Ubuntu are released.

Why Do This

There are few reasons why you’ll want to do this, but my main reason is to able to install and use Ubuntu without having to partition my hard drive and install Ubuntu locally on my computer.

There are ways to install Ubuntu natively on your computer, but this method allows you to use both at the same time.

This is also so that I can complete the Linux Foundation Certified SysAdmin (LFCS).


To make sure you have the requirements for this, you just need:

  • Mac OS Mojave
  • 2 GB RAM that can be dedicated
  • 10 GB of storage (although that can be tweaked)

Tools We’ll Need

  • VirtualBox — A virtualizer that runs virtual machines
  • Ubuntu OS — The Linux OS we’ll be running in VirtualBox

What Is VirtualBox?

Basically open-source software that allows us to run multiple different Operating Systems on top of our Mac OS, including Windows, Linux and even Mac OS with Virtual Machines, which are just emulations (which are close to native running) of operating systems.

VirtualBox is also a Hypervisor.

What Is A Hypervisor?

Also known as a Virtual Machine Monitor, which can either be software, firmware, or hardware that allows Operating Systems to run on top of it. In this case VirtualBox is a Type 2 Hypervisor, which sits on top of an OS and allows you to run other Operating Systems.

Install Virtual Box

Our first step to installing Ubuntu on our Mac OS is to install VirtualBox.

Download VirtualBox for OS X Hosts.

Make sure to Double click the VirtualBox.pkg file.

If you run VirtualBox now, you should see the following:

Download Ubuntu

The next step is to download Ubuntu locally to our computer to use with VirtualBox. Your first step is to go to https://ubuntu.com/download.

You’ll want to click on Ubuntu Desktop.

What Is LTS?

Here you’ll be presented with a couple of options, but you’ll want to download Ubuntu 18.04.2 LTS. LTS stands for Long-Term Support, which means this release will be supported by the developers of Ubuntu for a while.

Once downloaded, the file will probably sit in your downloads as ubuntu-18.04.2-desktop-amd64.iso . This is our image archive file of the operating system, which we’ll need later.

New Machine

Next, we’ll want to create a new machine in Virtual Box by clicking on New, or going to Machine > New, or doing ⌘ + N.

Once the prompt opens, give it a Name (if you start typing ubuntu, it will automatically convert the version to Ubuntu 64-bit), and set the Memory to 2048 MB (2GB). Make sure you set the Hard Disk option to Create a virtual hard disk now. Leave the rest of the options as is and click Create button.

This will then prompt us to define the settings for our new virtual hard disk.

Set the File size will be set to 10.00GB to give the Ubuntu file enough space to work with, the Hard disk file type to VDI to make an image formatted for VirtualBox, and allow the Storage on physical hard disk to be Dynamically allocated. Once done, click the Create button.

Once your new machine settings are setup, you should see the following:

Install Ubuntu Image

Notice we haven’t touched our ubuntu-18.04.2-desktop-amd64.iso file yet. This is the next step. Right click on our new machine and go to Start > Normal Start or select the machine and just click the Green Start Arrow Icon. We’ll soon be prompted with the following, where we’ll now select our file, and click Start.

Ubuntu will start but we might get this tiny screen at start.

To temporary fix this before we configure our display setting in Ubuntu directly, click the fifth icon from bottom right and go to Virtual Screen 1 > Scale to 200% (autoscaled output).

We should see something slightly bigger, where you can now click Install Ubuntu.

NOTE: If at any time you need to get out of the Virtual Machine / Ubuntu, just press the left ⌘ twice.

The next prompt will ask you what your keyboard setting might be. I’ve set them to English (US). Once you’ve selected your option, click the Continue button.

Just to get those alert prompts at the top out of the way, click the x button.

For the sake of this walkthrough, we’ll go with the Normal Installation and Download updates while installing Ubuntu. Click the Continue button.

This next step might look scary but there is nothing for Ubuntu to delete except for what the size and storage we allocated it. Select Erase disk and install Ubuntu, and click the Install now button.

You’ll also be prompted to confirm your selection with the following prompt, just click the Continue button.

Next we’ll select our location for the timezone, type and set your location, click the Continue button.

Lastly, we’ll give our name, our computer name, username, and give it a password.

The installation will wrap up and you’ll just need to restart.

Small note when you get to this screen, you’ll need to press Enter for things to restart.

It’ll finish loading and then the login will present itself. Enter your credentials and let Ubuntu load up.

When you get to the Desktop, you’ll be presented with What’s new in Ubuntu, and the screen resolution is still very small.

The last thing we’re going to do is fix the screen resolution in the settings by going to the 9 dots in the bottom left and searching for Settings.

Once settings shows up, scroll to the bottom with the left sidebar until you see Devices and click on it.

It will be hard to see but select the new resolution from the dropdown.

It will prompt you the top right to apply these changes, but unfortunately you can’t click Apply because it’s not within the view of the resolution of the window. To get access it to, double-click the top navigation bar where it says Displays, and then drag the window from right to left until you see the Apply button.

The resolution will change, and you’ll be prompted to confirm if you want to keep these changes. If it doesn’t fit your screen, leave it for a few seconds and it will reset back, otherwise click Keep Changes.

There we go, we’ve fully set up Ubuntu 18.04 with VirtualBox on Mac OS.

From Here

Now you can use Ubuntu on Mac OS, install whatever apps you want, and still have access to you native OS controls and more.

If you got value from this, and/or if you think this can be improved, please let me know in the comments.

Please share it on twitter 🐦 or other social media platforms. Thanks again for reading. 🙏

Please also follow me on twitter: @codingwithmanny and instagram at @codingwithmanny.

Consider Contributing

One last thing I will say, is you feel like contributing to other Open-Source projects, consider contributing the Ubuntu to keep it free and allow other developers to work on it to make it better.


Mac OS X Hints