How to install Linux in a virtual machine and prepare it for MARS.

Frequently asked questions

How to install Linux in a virtual machine and prepare it for MARS.

Postby zhouxinwei » Tue Jun 20, 2017 11:35 pm

This post is obsolete. See viewtopic.php?f=28&t=181.

--------------------------------------------------------------

So far, MARS is supported on MAC OS and Linux. We may add support for Windows in the near future.

Windows users can follow this tutorial to install Linux OS as a virtual machine, then run MARS in it.

In this tutorial, we will install a Linux OS (Ubuntu 14 LTS) in VirtualBox, and install the necessary software packages in order to build MARS.

1. Download Ubuntu 14 from its website: http://releases.ubuntu.com/14.04/. Choose 64-bit PC (AMD64) desktop image (http://releases.ubuntu.com/14.04/ubuntu-14.04.5-desktop-amd64.iso).

2. Download VirtualBox from its official website: https://www.virtualbox.org/wiki/Downloads. Choose the right OS host according to your native OS.

3. Create a new virtual machine
a. Start VirtualBox and click New to create a new virtual machine
01.png
01.png (126.42 KiB) Viewed 6376 times

b. In the dialog box, choose the operating system you want to install (Ubuntu 64-bit in the example)
02.png
02.png (84.78 KiB) Viewed 6376 times

c. Click next and select the amount of memory (RAM) to be allocated to the virtual machine
3c.png
3c.png (87.44 KiB) Viewed 6376 times

d. Create a virtual hard disk using the default setting (VDI file type, dynamically allocated)
3d.png
3d.png (110.39 KiB) Viewed 6376 times

e. Select the file location and size
3e.png
3e.png (87.44 KiB) Viewed 6376 times


4. Install the operation system
a. Select and right-click the virtual machine (Ubuntu in the picture); Click Setting
4a.png
4a.png (108.74 KiB) Viewed 6376 times

b. Go to Storage setup in the Settings dialog box
4b.png
4b.png (44.96 KiB) Viewed 6376 times

c. Select Controller:IDE and click add optical drive icon; Select Choose disk in the pop-up dialog box
5c.png
5c.png (63.95 KiB) Viewed 6376 times

d. Select the Ubuntu ISO image downloaded in the first step (file with .iso extension)
4d.png
4d.png (50.02 KiB) Viewed 6376 times

e. A virtual optical drive loaded with Ubuntu installer should show up. Click OK.
4e.png
4e.png (53.82 KiB) Viewed 6376 times

f. Click start in the main menu to run the virtual machine. A window of the running virtual machine shows up
4f.png
4f.png (169.4 KiB) Viewed 6376 times

g. The ubuntu installer should start autotomatically in the virtual machine window. Click Install Ubuntu.
4g.png
4g.png (197.07 KiB) Viewed 6376 times

h. Finish installation by following the instruction given by the installer.
4h.png
4h.png (521.43 KiB) Viewed 6376 times

g. update the system. Start Terminal, run next two commands:
Code: Select all
sudo apt-get update

Code: Select all
sudo apt-get upgrade


5. Install software packages.
a. Install development tools (including GNU C/C++ compilers)
Code: Select all
sudo apt-get install build-essential

b. Install zlib library
Code: Select all
sudo apt-get install zlibc zlib1g zlib1g-dev

c. Install Open MPI
Code: Select all
sudo apt-get install openmpi-bin openmpi-doc libopenmpi-dev


By now, you are ready to build MARS. For details, please see here: viewtopic.php?f=28&t=23.

Special thanks to Weixin, who prepared most of the materials (including all the screenshots) in this post.
zhouxinwei
 
Posts: 208
Joined: Thu Jul 09, 2015 7:12 pm

Return to FAQs

Who is online

Users browsing this forum: No registered users and 1 guest

cron