7
NETW3005: Operating System Lab-2 How to Install Oracle VM VirtualBox and Create a Virtual Machine Oracle VM VirtualBox is an open source virtualization software that you can install on various x86 systems. You can install Oracle VM Virtualbox on top of Windows, Linux, Mac, or Solaris. Once you install the virtualbox, you can create virtual machines that can be used to run guest operating systems like Windows, Linux, Solaris, etc. On a high-level Oracle VM VirtualBox is similar to VMware. Oracle got this VirtualBox technology from Sun. This article cover the basic installation of virtualbox and how to install a guest OS on it. The following are the basic terms you should be aware of before we go further: Host The physical machine where you are going to install VirtualBox Guest The machines created using VirtualBox. ( Virtual Machine ) Steps 1. Download and install the Oracle VM Virtual Box http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html 2. Open the Oracle VM virtual Box application 3. Click -> Machine -> New. 4. This will launch a “Create New Virtual Machine” wizard. a. Enter the Guest Machine Name b. Select the Operating system and version in the wizard c. Click next

How to Install Oracle VM VirtualBox and Create a Virtual ... · Once you install the virtualbox, you can create virtual machines that can be used to run guest operating systems like

  • Upload
    others

  • View
    16

  • Download
    0

Embed Size (px)

Citation preview

Page 1: How to Install Oracle VM VirtualBox and Create a Virtual ... · Once you install the virtualbox, you can create virtual machines that can be used to run guest operating systems like

NETW3005: Operating System Lab-2

How to Install Oracle VM VirtualBox and Create a Virtual Machine Oracle VM VirtualBox is an open source virtualization software that you can install on various x86 systems. You can install Oracle VM Virtualbox on top of Windows, Linux, Mac, or Solaris. Once you install the virtualbox, you can create virtual machines that can be used to run guest operating systems like Windows, Linux, Solaris, etc. On a high-level Oracle VM VirtualBox is similar to VMware. Oracle got this VirtualBox technology from Sun. This article cover the basic installation of virtualbox and how to install a guest OS on it.

The following are the basic terms you should be aware of before we go further:

Host – The physical machine where you are going to install VirtualBox

Guest – The machines created using VirtualBox. ( Virtual Machine )

Steps 1. Download and install the Oracle VM Virtual Box

http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html 2. Open the Oracle VM virtual Box application 3. Click -> Machine -> New. 4. This will launch a “Create New Virtual Machine” wizard.

a. Enter the Guest Machine Name b. Select the Operating system and version in the wizard c. Click next

Page 2: How to Install Oracle VM VirtualBox and Create a Virtual ... · Once you install the virtualbox, you can create virtual machines that can be used to run guest operating systems like

NETW3005: Operating System Lab-2

5. Enter the RAM size that you want to provide to your Guest machine as follows.

6. Choose Virtual Hard Disk, for installing the guest OS as follows

a. When it is installed for the first time , click “Create New Hard disk”. b. Create “New Virtual Disk” wizard will open. Click Next c. Now we need to choose, whether the disk has to be “Dynamically expanding disk” or

“Fixed-size storage”. Remember, for a guest machine, it sees a file residing in the host machine as the “Hard Disk”. Whenever a guest machine does any write to disk, it will be written into the file which resides on the host machine If we select “Fixed storage” and if we choose the size as 10GB then, in host machine ( by default under VirtualBox/Guest-Machine/Guest-Machine.vdi ) a file will be created with 10GB of size

Page 3: How to Install Oracle VM VirtualBox and Create a Virtual ... · Once you install the virtualbox, you can create virtual machines that can be used to run guest operating systems like

NETW3005: Operating System Lab-2

If we select “Dynamic storage” then, VirtualBox/Guest-Machine/Guest-Machine.vdi will initially be a small size file, but it will grow whenever the guest machine writes data to the disk.

d. Enter the maximum size that you want to allocate for the guest machine. e. Click Finish. Now a file named “Guest-Machine.vdi” will be created under

“.VirtualBox/Guest-Machine/” f. Click “Finish” to complete the creation of Virtual Machine.

Page 4: How to Install Oracle VM VirtualBox and Create a Virtual ... · Once you install the virtualbox, you can create virtual machines that can be used to run guest operating systems like

NETW3005: Operating System Lab-2

Now a new “Virtual Machine” is created and it

will be in “power off” state as follows.

7. Installing OS in a Virtual machine

We can install any OS ( personally tested windows and linux ) on a virtual machine. We can install the OS in virtual machine by 2 methods

Through OS-DVD

Through ISO image of the OS Here we will cover the installation using an ISO image, although using DVD is very similar to this.

Make sure that the iso file of your distribution is present in the host machine.

(http://www.ubuntu.com/download/desktop) Launch “virtualbox”. Select the newly created virtual machine. Click “Settings”. Now a new window will open which will list out the settings group on left panel and actual

setting on the right side as follows.

Page 5: How to Install Oracle VM VirtualBox and Create a Virtual ... · Once you install the virtualbox, you can create virtual machines that can be used to run guest operating systems like

NETW3005: Operating System Lab-2

Select “System”. On the right panel ensure that the boot order is correct ( Similar to setting the boot order in BIOS ).

Use the “Move Up” or “Move Down” button button to change the boot order, and make sure CD/DVD is selected as the “First boot device” and click “Ok”.

The next step is to map the “ISO file” of your distribution to the virtual CD/DVD device. Under “Settings” go to “Storage”, the following screen will appear.

Page 6: How to Install Oracle VM VirtualBox and Create a Virtual ... · Once you install the virtualbox, you can create virtual machines that can be used to run guest operating systems like

NETW3005: Operating System Lab-2

Click the “CD icon” and choose the “iso file of the OS”, The following screen will appear once you have choosen the ISO file. Click “Ok”.

Now select the virtual machine, and click “Start”. It will start to boot from the CD/DVD which is

mapped to the ISO file.

The OS installation is similar to installing an OS in a physical machine.

Page 7: How to Install Oracle VM VirtualBox and Create a Virtual ... · Once you install the virtualbox, you can create virtual machines that can be used to run guest operating systems like

NETW3005: Operating System Lab-2

Once OS is installed successfully, change the “Boot Order” to boot from HDD, and click “Start”. Now you can start using the virtual machine as like other machines.

---------------------------------------------------***************------------------------------------------------