This simple illustrated guide will get you up and running with Ubuntu Desktop on your Mac. We will also install Guest Additions, allowing easy drag and drop between your dual operating systems. Virtualbox is a powerful tool that allows many different operating systems to be run from other operating systems within a window, and best. Mac OS is a computer operating system developed by Apple.This is a operating system with beautiful interface, however, to own a the computer of Apple with this operating system, you need to use a lot of money, normally with the double price than that of common computers using Windows operating system.Fortunately, you can experience the Mac OS right on your computer by installing a Mac OS.
My laptop is a late 2011 MacBook Pro running OS X 10.9 Mavericks. It's my personal laptop, so I use it for everything - browsing, e-mail, and programming. While the OS X experience is wonderful, application development can be frustrating. For example, right now I'm trying to develop a Boost Python module, and I am having trouble compiling it on OS X.
I intend to run my application in a Linux environment, so instead of learning the intricacies of porting my code and makefile to Mac OS X, I decided to install a local Ubuntu Server virtual machine (VM) on my MacBook. I installed Ubuntu Server instead of Ubuntu Desktop because I wanted to run a lightweight Linux environment, which should save laptop resources. I simply run the VM in the background, and ssh into it from the Mac terminal. Easy and awesome!
This entire tutorial should take approximately 20 minutes (not including download times).
Install VirtualBox
Download and install VirtualBox here. Theinstructions below were testing with VirtualBox 4.3.18 on OS X 10.9.5.
Download Ubuntu
Download the Ubuntu Server 14.04.01 LTS iso image.
Setting up the Virtual Machine (VM)
You can configure your virtual machine (VM) using the VirtualBox graphical program, but it's quicker to set it up from the command line. I've adapted these commands in part from this blog post.
The commands below will create a virtual machine called 'UbuntuServer',attach a 32 GB virtual hard drive, attach a DVDdrive loaded with the Ubuntu Server disk image, and allocate 1 GB of RAM. We also attach a network card and set up port forwarding.
Start the VM for the first time
For the first boot, we will start the VM with a graphical display so we can installthe Ubuntu operating system. From your OS X terminal:
The VM will boot from the DVD Drive, which has the Ubuntu Server installation CD image loaded.
Install Ubuntu Server
Install Ubuntu Server using the installation wizard with the default settings. The installer is interactive - it should take about 10 minutes to complete the installation. As part of the installation you will be asked to select a username and a password.
After installation is complete, the machine will reboot. Log in at the prompt.
Hint: If you accidentally click on the VM GUI window, VirtualBox may 'hijack' your mouse pointer to try passing it to the VM. If this happens and you lose your mouse pointer, press the left command key to get your mouse pointer back.
Install the OpenSSH Server
After installing the Ubuntu operating system and logging in to VM, to install the ssh server, issue the following command in the Ubuntu VM:
Now you can try logging into your virtual machine over ssh through port 2222, which has been set up to forward to port 22 of your VM. From the OS X terminal:
Congrats! :-)
For the rest of this installation guide, I recommend issuing all VM commands over ssh because the display is better than the VM GUI console, and you can easily paste commands into the Mac ssh terminal.
Install VirtualBox Guest Additions (for shared folders)
To share a folder from your host machine (i.e. Mac) with the VM, you need to installthe VirtualBox Guest Additions in the VM.
Before you can install the Guest additions, you need to install
gcc
and make
into the VM. Make sure your laptop is connected to the internet (in the VM):From the VirtualBox VM GUI window menu, select 'Devices -> Insert Guest Additions CD Image...'. If prompted, choose 'Force Unmount'.
This will insert the VirtualBox GuestAdditions installation CD into the VM's DVD drive. From the VM terminal (or, more comfortably, the ssh terminal), mount the CD drive and run the installation script. In the VM:
Finally, add your user to the
vboxsf
group so you can access shared folders (in the VM)For the GuestAdditions installation to take effect, you need to reboot the VM. We'll take care of that in the next section when we boot the VM without a GUI.
Starting the VM without GUI.
Now that ssh has been installed and configured, you can run the VM in the background without a GUI window.
First, shutdown the VM using one of these methods:
- From the VM GUI, close the window and select 'Send Shutdown Signal', OR
- From the VM GUI menu, select 'Machine -> ACPI Shutdown' OR
- From the Mac terminal, issue
vboxmanage controlvm UbuntuServer poweroff
Next, start the VM without a GUI from the OS X terminal:
The VM will be running in the background. Give the VM a few moments to boot up, and then you can try to log in again over ssh as before from the OX X terminal:
ssh -p 2222 <username>@localhost
.Access shared folders
To access your Mac home directory from the VM:
Your files should be there. If you get a 'permission denied', make sure you added your user to the
vboxsf
group.Contratulations. Now you have a local lightweight Linux environment that you can access over ssh!
Quick Reference
To shutdown the VM:
You can also pause the VM instead of shutting it down:
To start the VM:
To log into the VM over ssh:
![Ubuntu Ubuntu](/uploads/1/1/0/3/110347121/757073992.jpg)
Additional Tweaks
Here are some solutions to other issues that may arise:
Configure the Grub Boot Loader
On one occasion I powered off the VM while it was booting. The next time time I tried to start the VM without the GUI, I could not log in over ssh because, unknown to me at the time, the VM was sitting in the GRUB bootloader menu waiting for my input.
You can configure GRUB to timeout by editing the VM's GRUB configuration file at
/etc/default/grub
with the line:which willtimeout the bootloader with the default selection after 2 seconds whenever the systemis started after the last boot failed. For more info, see the Ubuntu GRUB 2 page..
Keeping SSH Alive when laptop sleeps
Configure the VM ssh server to keep connections alive by editing the VM's config file
/etc/ssh/sshd_config
and adding the following:![Ubuntu For Virtualbox Mac Ubuntu For Virtualbox Mac](/uploads/1/1/0/3/110347121/522645663.jpg)
When your laptop sleeps, you may find that your ssh connection to the VM is terimnated.This is the result of some VirtualBox bug which has since been resolved provided that you change the VM's DNS resolution setting:
That did the trick for me.
Go TopPlease enable JavaScript to view the comments powered by Disqus.comments powered by Disqus
Just like humans that can’t live without soul, computers are also in need of an operating system which makes their living. Unlike humans that they can’t change their souls, but computers can, but what better than adding a soul in it. From this, I mean of their operating system like if you are running Windows on your PC and you have used it for a while and you’re bored of that, you can easily install a new operating system in it via virtual machine like Ubuntu. So here’s how to install Ubuntu on VMware and install Ubuntu on VirtualBox and Install Ubuntu on VMware VirtualBox on Windows.
As Ubuntu is becoming more popular and widely spread, it has surpassed 20 million users actively installed Ubuntu and even might be suggesting others also to use Ubuntu. So, first of all, let’s see what is Ubuntu and why its one of the most popular operating systems than we will show you how to install Ubuntu on VMware and how to install Ubuntu on Virtualbox.
- Related:Install macOS High Sierra on VMware on Windows PC
Ubuntu is an operating system which is based on the open-source and free Linux distribution network. Ubuntu releases a new version of their software every six months with long term support (LTS) release every two years and because of its continuous updates, it has become one of the most popular operating systems and might tackle down Windows and macOS in a few next decade. The good thing is, Ubuntu is, it is available in three versions of core, server, and desktop, which is a Debian-based operating system.
What is VMware?
Whether you’re on Mac or Windows, a virtual machine is what you’ve probably heard of. There are couple of virtual machine apps. Out of those, there are two ✌ most working and powerful one. One of them is VMware, which has two kinds, probably a free and a paid one. The paid one which is VMware Workstation is definitely for business and more powerful use and the free one which VMware Player is definitely for personal use that will also work professionally. So there’s no difference in their work.
What is VirtualBox?
Virtualbox is a free open-source hosted hypervisor for x89 virtualization, which is developed by oracle corporation. As it’s one of top virtual machine app that will allow you to run multiple operating systems simultaneously or in other words, it allows you to run one operating system inside of another operating system. While it requires at least 4GBs of memory and more than 50GB space, but the more the better it will perform. Like with the 4GB’s of memory and 50GBs of storage, you can run a virtual machine which will work fine but for better performance and better results, having more resources will work better than usual.
Install Ubuntu on VMware & VirtualBox
Installing Ubuntu is probably easy and would take a few time like installing Kali Linux on VMware & VirtualBox. Whether you’re on a Windows or a Mac, we’ll do it completely done. There are a few ways you can install Ubuntu. The first option is to do a clean installation of Ubuntu instead of your actual operating system whether its Windows or Mac. The second option is to install Ubuntu beside Windows or Mac which will be dual-boot that isn’t really cool idea. Last but not least option is to install Ubuntu inside your actual operating system which would be installing Ubuntu on virtual machine or better say install Ubuntu on VMware or install Ubuntu on VirtualBox. This is a safe and interesting idea. So let’s start it.
- Related:Install Kali Linux on VMware & VirtualBox
Step One – Download Ubuntu ISO Image
To install Ubuntu on VMware VirtualBox on Windows, you’ll need to download Ubuntu ISO. Downloading it is pretty easy and it isn’t large too. The Ubuntu 19 is supported for maximum of 9 months while the Ubuntu 18.04 is supported until April 2023 but it’s only available for download in 64-bit.
Step Two – Install VMware or VirtualBox
Whether you’re installing on Mac or Windows, the installation process is nearly the same except a few minor changes and interface. Wherever you’re, installing Ubuntu works from this method. In other words, you can use these steps to install Ubuntu on Mac, install Ubuntu on Windows. The similarity is, they’ll be done on VMware or VirtualBox that there’s no difference in the app.
Fire up VMware or VirtualBox setup and proceed with the installation.
VMware Workstation Setup
Once it’s finished, let it open.
Step Three – Create a New Virtual Machine
Once it’s done, open the VMware or VirtualBox and let it work.
So when it’s there, press Ctrl + N to open the new virtual machine wizard. This key works on both VMware & VirtualBox.
On VirtualBox, write down the name of the virtual machine which is Ubuntu and without making changes to its location and OS type and version, assign 50 – 60% of the system’s memory and then select Create a virtual hard disk file now and click on Create.
Create Virtual Machine
On this window, enter 20GB of file size or more and click Create.
The virtual machine should be created on VirtualBox now.
Ubuntu Virtual Machine
When the new virtual machine wizard is there, simply press Next.
On VMware, select Installer Disc Image file and browse the Ubuntu ISO then hit Next.
Install Disk Image File
Now put a name, username and a password for the machine, then hit Next.
Next up, specify a name and where the machine files should be stored and click Next.
Name The Machine
Then specify a hard disk space of at least 20GBs or more and hit Next.
At the end, uncheck the “Power on this virtual machine after creation” and click on Finish.
Step Four – Configure Virtual Machine Settings
In order to install Ubuntu, we need to set up machine settings.
The machine is now created, so click on Edit Virtual Machine Settings.
Edit Virtual Machine Settings
Then specify 50-60% of your system’s memory and also processor then hit OK.
For the processor, increase the amount of the processor from one to two or more then hit OK on the settings window.
Increase Processor
Ubuntu Virtual Machine
On VirtualBox, click on Settings.
Then select the Display tab, and increase the video memory size to the maximum and also enable 3d Acceleration.
Increase Video Memory
Without closing the settings window, select Storage and click on the “Empty” disc icon and from the right side click on disc icon and click Choose a disk file.
In this screen, browse the Ubuntu ISO image and click on Open.
Select it
When the ISO file is selected, click on OK.
Step Five – Install Ubuntu on VMware & VirtualBox
Once the machine is completely set up, we can now Install Ubuntu on VMware VirtualBox on Windows pretty easily.
From the window, click on Power on This Virtual Machine on VMware & VirtualBox.
From this part, the installation is pretty much the same so you can install it whether you’re installing it on VMware on Windows, on VMware on Mac, or on VirtualBox on Windows or on VirtualBox on Mac.
Power on This Machine
Download Ubuntu For Virtualbox Mac
The machine will start the installation soon, so wait for it until it’s complete.
Note: We’re installing Ubuntu 19.10, and when a newer version is released, you can probably install it with this tutorial, there will be no huge changes in it.
Once it’s installed, it will appear this window.
Ubuntu Installed
So click anywhere on the screen and the account will appear, click on Ubuntu and then enter your password then hit Enter.
After a few startup screen, the desktop of the Ubuntu will appear, so there you go!
Ubuntu Desktop Screen
The Ubuntu has now installed and that’s there anytime, anywhere. It works super smooth and superfine. The best thing is, it has installed VMware Tools already so there’s no more steps to take. However, on VirtualBox, you can install VirtualBox Guest Tool from the steps below.
From here, you can try surfing, browsing and whatever you’ve in mind.
That’s it about Install Ubuntu on VMware VirtualBox on Windows . If there’s something remaining or would like to add or make some nice suggestions, we’re happy to hear.