Download as pdf or txt
Download as pdf or txt
You are on page 1of 27

LAB SESSION 1

INSTALLING MULTIPLE OS
In this lab session we will be dealing with:
Native Installation of Linux
Removing the installed Linux
Installing Linux on a Virtual Machine
Prerequisite Knowledge:
Basic computer operations along with some knowledge of BIOS setup.
Prerequisite Tools/software:
USB drive with at least 700MB free space , x86 emulator, ISO for any Linux distribution,
Universal USB Installer.
In this lab session, we'll use Ubuntu for the demonstrations. We'll first install it natively on a
system, in it's own partition, and then we'll install it again inside VMware Player and
VirtualBox running on Windows and QEMU running on Linux. Then we'll remove Linux to
bring the system back to its single-boot state.

What you need to make bootable USB drive


You need a Pen Drive.
You need Software UNIVERSAL USB INSTALLER to make it bootable.
Download it freely from Internet. Its freely available.
http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/
Downloading the Software open it.

After

From Drop Down list Select an OS for which you want to make Pen Drive bootable.

Browse an ISO image from Hard Disk and select USB flash Drive letter.

Set Few MB size for storing changes(100 MB ) and click on create.

Just wait now. Let it Complete the process and finally close it.

NATIVE INSTALLATION
The term dual-booting refers to the common configuration of exactly two operating systems.

You have created bootable Pen drive.


the Pen Drive.
Go to BIOS setup and change the Boot priority to UBS FLASH Drive.
Follow the instructions on the screen to install Ubuntu. Make sure your partitioning
scheme is okay, however, while installing it.

Installing Ubuntu

1. If you choose to install Ubuntu directly, the installer will launch immediately. If you
choose the Try Ubuntu option, you'll be in the Ubuntu live session. From there, click the
Install Ubuntu icon on the desktop.

2.Choose your time zone.

3. Then choose the keyboard layout and the default generally is USA.

4. Now comes the most important part in the process i.e. the partitioning part.

Choose "Manually edit partition table"

Listed will be your current partitions

Select the partition you want to resize and press Enter.

Select "Size: press Enter.

Select Yes, press Enter.

Type in a new size in Gigabytes for your partition, it's recommended that
there is AT
LEAST 10 GB of free space for your Ubuntu install. Press Enter.

Create a swap partition of at least your amount of RAM (if you don't know,
2000 MB
is a good value).

Create a partition for your Ubuntu installation, at least 10 GB. The root
directory or
mount point is /.

In the format partition choose the ext4 file system and Mount point /.
Select "Finish partitioning and write changes to disk".

5. Next you have to give your details.

6. Now Ubuntu will show you the settings which you have specified throughout the
process.
Go through it (If you want). And click on Install. After that Ubuntu will start installing.

REMOVING NATIVE INSTALL


Removal of Linux will require two steps To restore the previous boot loader, and to actually
delete all its files so the space can be used elsewhere.
1. Boot into Windows
2. Open the storage manager (Control Panel Administrative tools Computer
Management Storage Disk Management)
3. Right Click on the Linux partition and then select delete
4. Download the MBR utility from http://www.terabyteunlimited.com/downloads/mbr.zip.
5. Unzip it, and then run the following command:
mbr.exe 0 /install std

VIRTUAL MACHINE INSTALLATION


As we did native installation os linux.
Why to go for Virtual Installation.?
Ans: If suppose you are working in windows and suddenly you come to know that you have
some work on linux.Then what you will do.?You need to close windows and login to
linux.and again you need to switch to windows.It is very time consuming process. So better
option is to Install linux on virtual machine.So that you can work in linx whenever you want.
Linux will work bit slower on virtual than native.
There are several softwares on the market nowadays, which allow you to create and run
Virtual Machines. We'll be covering some of those in this guide, namely:

Oracle VirtualBox Multi Platform, available for both Linux and Windows.
VMware Player Multi Platform, available for both Linux and Windows.
QEMU default software in the Ubuntu linux distribution.

Now that we know what Virtual Machines are, well first try installing Linux as a Virtual
Machine in Windows, using two softwares, VirtualBox and VMware Player, and then install
Linux inside Linux using QEMU.

1. VIRTUALBOX
1.
2.

Install virtual box. Start it.


Click on new.

3.

Following window will appear. Click on Next.

4. Type the name of the OS. Select Linux in the operating system dropdown. Click on
Next.

7.Click on Next.

10.Click on finish.You have successfully created virtual machine

2. VMware Player
1. Install VMware Player and start it.
2. Select Create a new virtual machine.

3. Select the installer source. Click on Next.

Installation on QEMU:
1. Download the Ubuntu ISO (step 1 at ubuntu.com/download)
2. Create a blank disk image on the host
In your home directory, issue the following command (replacing <filename>
and <size> with actual values):

dd if=/dev/zero of=<filename> count=1 bs=1 seek=<size>


3. Run QEMU using the above disk image as hda and the ISO image as CDROM

qemu hda <filename> cdrom <ubuntuiso>


Questions:
1.What is native installation ?
2.What is the need of Virtual machine?
3.While using Virtual machine does it affect speed of computer?
4. What are the different Boot Loaders that are used to boot a system?
5. What is dual booting and how can that be configured?
6.What is the advantage of using bootable pen drive to install os.?
7.Why we need to create swap area while installing linux?

8.What are the different distributions of linux?

You might also like