Install Ubuntu On Virtualbox Mac



  1. Install Ubuntu On Virtualbox Mac

VirtualBox download: download: tutorial showing you how to install Ubuntu 19.04 on.

Install ubuntu virtualbox machine

Important: I'm writing this when the last version of macOS (and the one I have installed) is Mojave.There is already a script which installs Mojave in a virtual machine here https://github.com/img2tab/okiomov. But if you are curios how to do everything manually to install High Sierra, then this guide may be useful.

After reading a few articles I ended up with these steps:

  1. On macOS, download the High Sierra installer (even if you have Mojave installed):https://itunes.apple.com/us/app/macos-high-sierra/id1246284741?ls=1&mt=12
  2. If the High Sierra Installer starts, quit it.
  3. Open 'Disk Utility'.
  4. Click on 'File' > 'New Image' > 'Blank image...'. Or just press cmd+N.
  5. In the 'Size' field, enter 13 GB and save it wherever you want.
  6. If the image is not mounted automatically, double-click the file you just created to do it.
  7. Open 'Terminal'
  8. Run sudo /Applications/Install macOS High Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled. If you changed the value of the 'Name' field in the step where you changed the 'Size', then instead of 'Untitled' the image probably appears with that name you entered.
  9. Once the previous command finished, continue with the following steps.
  10. Copy the file to some device which you can get access from Ubuntu (external drive or whatever works for you).
  11. On Ubuntu, open the 'Terminal'.
  12. Run VBoxManage convertfromraw <path_to_input_.dmg_file> <path_to_output_.vdi_file>.
  13. Open 'VirtualBox'.
  14. Create a new machine of Type 'Mac OS X' and Version 'macOS 10.13 High Sierra (64-bit)' (probably others work, but I just tried with that one).
  15. Once the machine is created, go to the 'Settings'.
  16. Select 'Storage' and click to add a hard disk. When asked click on 'Choose existing disk' and select the .vdi file you created using VBoxManage convertfromraw.
  17. Click 'OK' and start the machine.
  18. Wait until you get to the screen where you have to choose the language. And choose your language.
  19. 'macOS Utilities' appears. Select 'Disk Utility' and click 'Continue'.
  20. Select the disk where you are going to install macOS (probably the same you created when creating the machine).
  21. Click 'Erase'.
  22. Verify that 'Mac OS Extended (Journaled)' is the format selected and click 'Erase'.
  23. Once it finishes, Quit the 'Disk Utility'.
  24. Select 'Install macOS' and click 'Continue'.
  25. Follow the instructions.
  26. Once it finishes, the machine automatically rebooted. What you have to do is power it off.
  27. Remove the installer hard disk from the machine. The one you added previously, not the one where you are installing macOS.
  28. Start the machine.
  29. You are going to see a screen where the last line is Shell>
  30. Run cd 'macOS Install DataLocked FilesBoot Files'
  31. Run boot.efi
  32. Continue the installation normally.

References:

This in depth guide will take you every step of the way through installing Ubuntu Linux on your Mac, by way of VirtualBox – a free and outstanding program. Using this method you’ll be able to run Ubuntu and macOS at the same time!

Please note: although this guide was initially authored in 2015, it has been updated (2020) to be current. The following guide uses Ubuntu 18.04.3 LTS “Bionic Beaver”, but the steps and screenshots are nearly identical for most versions of Ubuntu, up to including 20.04.1 LTS.

Using this method to install Ubuntu not only allows you to run it and macOS at the same time, you can really try out Ubuntu – and if you don’t like it – very easily get rid of it. Plus, it will not affect the files in macOS itself at all. None of the data on your Mac is at risk of being deleted or altered. The entire process is actually quite straightforward – and all of the software involved is free – so why not give it a shot :)

  1. Before you get started, there are a few things that should be noted up front.
    1. Depending on the speed of your Internet connection, it might take a while to download Ubuntu. During the actual installation process, based on the version of Ubuntu you opt to install – you may have to spend some time downloading updates as well.
    2. The installation time is about 20 minutes, depending on the speed of your Mac, amount of memory etc. You may want to make yourself a cup of coffee or tea before you start.
    3. Running both Ubuntu and macOS at the same time will “slow down” your Mac. The more memory you have and the faster your CPU and/or hard drive is, the less you’ll notice it.

    Let’s get started!

    1. First up, head over to the Ubuntu download page and download Ubuntu.
    2. Now you’ll need to download and install VirtualBox. Visit their download page and click the link OS X hosts (which is the current stable version). Once the download has completed, open the .dmg file and run the installer – the installation is as easy as clicking ‘next’ a bunch of times. When installation is done, launch VirtualBox from your Applications folder.
    3. When VirtualBox opens, click the New button.
    4. Give your “virtual machine” a name (something descriptive is good, but it doesn’t matter). Make sure the Type: is set to Linux and the Version: is Ubuntu (64 bit). Then click the Continue button.
    5. Now you’re going to decide how much memory (RAM) you’re going to allocate to Ubuntu when it’s running, and how much to leave for macOS. As illustrated in the screenshot below, my total RAM is 4GB, so I allocated half of it to Ubuntu, and the other half to macOS. The more memory you give to Ubuntu, the faster it will run. The drawback is that macOS will have less to use while Ubuntu is running. At a minimum, give Ubuntu at 1GB (1024MB) of RAM. When you’ve decided how much memory (RAM) to give Ubuntu, click the Continue button.
    6. On the Hard drive screen, select Create a virtual hard drive now and then click Create.
    7. Now select VDI (VirtualBox Disk Image) and click Continue
    8. Select Dynamically allocated and yep – you guessed it – click Continue
    9. Use the “slider” to determine the size you want to make the “hard drive” for Ubuntu. At a minimum, you’ll want to select 6GB – and that will not allow for you to install many programs, let alone store files etc. Keep in mind that because you selected “Dynamically allocated” in the previous step, that does not mean that VirtualBox is going to take up that space right away. It means that as Ubuntu needs more space, it will allow the “hard drive” to increase up to whatever size you set at this step.

      As illustrated in the screenshot below, I opted to give Ubuntu 10GB. That’s enough for the installation and to install quite a few programs. Since I won’t be “storing” many files in Ubuntu (movies, pictures, music etc) – 10GB will suit my needs. Plus, I have a small hard drive on my MacBook Air. If you have a big hard drive, you might as well allocate more rather than less, again – the space won’t be used until it’s needed. After you’ve made your selection, click Create.

    10. Almost time to install Ubuntu! Click the Start button.
    11. If you’re using macOS 10.15 (Catalina) or later, you’re going to need to ‘allow’ Virtualbox to receive keystrokes from any application (which is completely safe). Click the Open System Preferences button.
    12. Click the ‘lock’ icon in the bottom left corner of the screen. After entering your password, place a check in the box next to the Virtualbox item in the list.
    13. Click Later when prompted.
    14. Back in Virtualbox you’ll be prompted to locate a file. Click the “folder” icon next to menu that says Empty (see screenshot below).
    15. Again, if you’re using macOS 10.15 or later, you’ll be prompted to grant permission for Virtualbox to access a folder. Click OK. You may be prompted to do this several more times – just click OK each time.
    16. Navigate to the Ubuntu .iso file that you downloaded all the way back in step #1. Select it, and click Open
    17. Now click Start
    18. Finally! Click Install Ubuntu
    19. Select your keyboard layout and preferred language then click Continue
    20. Make sure to place a check in both of the boxes – Download updates while installing Ubuntu and Install third-party software for graphics and Wi-Fi hardware and additional media formatsthen click the Continue button.
    21. Select Erase disk and install Ubuntu. NOTE: this is not going to ‘wipe out’ or erase any data in macOS. None. It is safe to click Install Now, so do just that.
    22. Click Continue
    23. When prompted, select your Time Zone and then click Continue
    24. Fill in each field with the required information. When you’re done, Continue
    25. Now it’s time to sit back and relax with that cup of coffee or tea. This may take a bit.
    26. Yay! It’s done! Click Restart Now
    27. Hit Enter (the ‘return’ key on your keyboard) when prompted.
    28. And you’ll boot into Ubuntu! Enter your password when prompted.
    29. Welcome to the Ubuntu Desktop! At this point you should be connected to the Internet and completely ready to go – have fun!
    If this article helped you, I'd be grateful if you could share it on your preferred social network - it helps me a lot. If you're feeling particularly generous, you could buy me a coffee and I'd be super grateful :)
MacInstallInstall Ubuntu On Virtualbox Mac

Install Ubuntu On Virtualbox Mac

  • Install Ubuntu Back to Oracle VM VirtualBox Manager, click on the new Ubuntu virtual machine and hit 'Start' button. Now you shall see a 'Welcome' screen. Click 'Install Ubuntu' button.
  • VirtualBox is also a popular software for creating virtual machine available for Windows and Linux environment. How to install Ubuntu on your Android.