Virtualbox-install

Version 2 (Arvind Kandhalu, 02/01/2010 02:25 am)

1 1 Arvind Kandhalu
= Nano-RK VirtualBox Install Guide =
2 1 Arvind Kandhalu
3 2 Arvind Kandhalu
VirutalBox (VBox) is an x86 virtualization software package. This document briefly describes how to install VBox and its related useful packages. 
4 1 Arvind Kandhalu
5 1 Arvind Kandhalu
1) You would want to install VBox if:
6 1 Arvind Kandhalu
     - You are running Windows or Mac OS-X natively on your machine and you want to use Linux.
7 1 Arvind Kandhalu
     - You want to retain the current OS and you do not want to dual-boot.
8 1 Arvind Kandhalu
     - You have atleast 2GB RAM and 10 GB of free-space on your hard drive. 
9 1 Arvind Kandhalu
10 1 Arvind Kandhalu
2) You can download VBox for your host operating system (the OS that is running currently on your machine) here:
11 1 Arvind Kandhalu
     [http://www.virtualbox.org/wiki/Downloads]
12 1 Arvind Kandhalu
13 1 Arvind Kandhalu
3) For instructions on installing VBox and creating a virtual machine , visit:
14 1 Arvind Kandhalu
    [http://www.virtualbox.org/manual/UserManual.html#installation]
15 1 Arvind Kandhalu
16 1 Arvind Kandhalu
4) It is recommended that you install Guest-Additions as this will enhance virtual machine environment. 
17 1 Arvind Kandhalu
It offers a bunch of features such as Mouse Pointer Integration, Better Video Support, Shared Folders and more.
18 1 Arvind Kandhalu
   - Guest Additions are to be installed '''inside''' the virtual machine after the guest operating system has been installed.
19 1 Arvind Kandhalu
   - You will have to first prepare your guest system for building external kernel modules. Open a terminal and type:
20 1 Arvind Kandhalu
{{{
21 1 Arvind Kandhalu
# sudo apt-get install dkms
22 1 Arvind Kandhalu
}}}
23 1 Arvind Kandhalu
      You will have to install DKMS '''before''' installing the Linux Guest Additions.
24 1 Arvind Kandhalu
   - Mount the VBoxGuestAdditions.iso file as your Linux guest's virtual CD-ROM drive.
25 1 Arvind Kandhalu
   - Change to the directory where your CD-ROM drive is mounted and execute
26 1 Arvind Kandhalu
{{{
27 1 Arvind Kandhalu
#sudo ./VboxLinuxAdditions-x86.run
28 1 Arvind Kandhalu
}}}
29 1 Arvind Kandhalu
30 2 Arvind Kandhalu
5) If you are using older versions of Linux as the guest OS, then you will need to modify the configuration file of X server 
31 1 Arvind Kandhalu
to support display settings apart from the settings setup before the guest-additions installation.
32 1 Arvind Kandhalu
The configuration file is usually found at:
33 1 Arvind Kandhalu
/etc/X11/xorg.conf
34 1 Arvind Kandhalu
35 1 Arvind Kandhalu
    - Here is an example configuration file with additional display modes and mouse pointer integration:
36 1 Arvind Kandhalu
{{{
37 1 Arvind Kandhalu
Section "Device"
38 1 Arvind Kandhalu
        Identifier      "Configured Video Device"
39 1 Arvind Kandhalu
        Driver          "vboxvideo"
40 1 Arvind Kandhalu
EndSection
41 1 Arvind Kandhalu
42 1 Arvind Kandhalu
Section "Monitor"
43 1 Arvind Kandhalu
        Identifier      "Configured Monitor"
44 1 Arvind Kandhalu
EndSection
45 1 Arvind Kandhalu
46 1 Arvind Kandhalu
Section "Screen"
47 1 Arvind Kandhalu
        Identifier      "Default Screen"
48 1 Arvind Kandhalu
        Monitor         "Generic Monitor"
49 1 Arvind Kandhalu
        Device          "VirtualBox graphics card"
50 1 Arvind Kandhalu
        DefaultDepth    24
51 1 Arvind Kandhalu
        SubSection      "Display"
52 1 Arvind Kandhalu
                Depth   24
53 1 Arvind Kandhalu
                Modes   "1024x768" "800x600" "640x480" "1600x900"
54 1 Arvind Kandhalu
        EndSubSection
55 1 Arvind Kandhalu
EndSection
56 1 Arvind Kandhalu
57 1 Arvind Kandhalu
Section "Input Device"
58 1 Arvind Kandhalu
Identifier "Configured Mouse"
59 1 Arvind Kandhalu
Driver "vboxmouse"
60 1 Arvind Kandhalu
Option "CorePointer"
61 1 Arvind Kandhalu
EndSection
62 1 Arvind Kandhalu
}}}
63 1 Arvind Kandhalu
64 1 Arvind Kandhalu
6) To create a shared folder: 
65 1 Arvind Kandhalu
     - Select "Shared Folders" options from the "Devices" menu on the graphical user interface of a running virtual machine.
66 1 Arvind Kandhalu
     - You will then need to enter the path to the folder that you want to share on your ''host'' operating system.
67 1 Arvind Kandhalu
     - Then, you can mount the shared folder from inside the VM by using the following command:
68 1 Arvind Kandhalu
{{{
69 1 Arvind Kandhalu
#mount -t vboxsf [-o OPTIONS] sharename mountpoint
70 1 Arvind Kandhalu
}}}
71 1 Arvind Kandhalu
72 1 Arvind Kandhalu
     - Replace "sharename" with the share name that you specified on the gui earlier.
73 1 Arvind Kandhalu
     - Replace "mountpoint" with the path where you want the shared folder to be mounted on the guest os. (e.g. /mnt/shared).