Virtualbox-install

Version 4 (Arvind Kandhalu, 02/01/2010 02:26 am)

1 1 Arvind Kandhalu
2 4 Arvind Kandhalu
h1. Nano-RK Virtual Box Install Guide
3 4 Arvind Kandhalu
4 4 Arvind Kandhalu
5 3 Arvind Kandhalu
Virtual Box (VBox) is an x86 virtualization software package. This document briefly describes how to install VBox and its related useful packages. 
6 1 Arvind Kandhalu
7 1 Arvind Kandhalu
1) You would want to install VBox if:
8 1 Arvind Kandhalu
     - You are running Windows or Mac OS-X natively on your machine and you want to use Linux.
9 1 Arvind Kandhalu
     - You want to retain the current OS and you do not want to dual-boot.
10 1 Arvind Kandhalu
     - You have atleast 2GB RAM and 10 GB of free-space on your hard drive. 
11 1 Arvind Kandhalu
12 1 Arvind Kandhalu
2) You can download VBox for your host operating system (the OS that is running currently on your machine) here:
13 4 Arvind Kandhalu
     "3) For instructions on installing VBox and creating a virtual machine , visit:
14 4 Arvind Kandhalu
    [http://www.virtualbox.org/manual/UserManual.html#installation":http://www.virtualbox.org/wiki/Downloads]
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 4 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 4 Arvind Kandhalu
<pre>
21 1 Arvind Kandhalu
# sudo apt-get install dkms
22 4 Arvind Kandhalu
</pre>
23 4 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 4 Arvind Kandhalu
<pre>
27 1 Arvind Kandhalu
#sudo ./VboxLinuxAdditions-x86.run
28 4 Arvind Kandhalu
</pre>
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 4 Arvind Kandhalu
<pre>
37 1 Arvind Kandhalu
Section "Device"
38 1 Arvind Kandhalu
        Identifier      "Configured Video Device"
39 1 Arvind Kandhalu
        Driver          "vboxvideo"
40 4 Arvind Kandhalu
[[EndSection]]
41 1 Arvind Kandhalu
42 1 Arvind Kandhalu
Section "Monitor"
43 1 Arvind Kandhalu
        Identifier      "Configured Monitor"
44 4 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 4 Arvind Kandhalu
        [[DefaultDepth]]    24
51 4 Arvind Kandhalu
        [[SubSection]]      "Display"
52 1 Arvind Kandhalu
                Depth   24
53 1 Arvind Kandhalu
                Modes   "1024x768" "800x600" "640x480" "1600x900"
54 4 Arvind Kandhalu
        [[EndSubSection]]
55 4 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 4 Arvind Kandhalu
[[EndSection]]
62 4 Arvind Kandhalu
</pre>
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 4 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 4 Arvind Kandhalu
<pre>
69 1 Arvind Kandhalu
#mount -t vboxsf [-o OPTIONS] sharename mountpoint
70 4 Arvind Kandhalu
</pre>
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).