aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/images/build-appliance-image/README_VirtualBox_Guest_Additions.txt
blob: e7298f2c3cd9770f823b314b50d4b2ba37360108 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Installing VirtualBox Guest Additions
=====================================

In order to use VirtualBox guest additions, they have to be build
first. They may have to be rebuilt each time the time you upgrade to
a new version of VirtualBox.

Make sure VM is configured with an Optical Drive. 

Please follow these steps to install the VirtualBox Guest Additions on the
Build Appliance VM:

1.  Boot VM, select root "Terminal" instead of the default "Terminal <2>"

2.  Insert Guest additions CD into VM optical drive:
    VM menu "Devices"->"Optical Drives"-> Select "VBoxGuestAdditions<version>.iso"

3.  Find your CDROM device. Typically it is /dev/hda for IDE. You can determine
    the actual name <cdromedev> by viewing the cdrom info:

        # cat /proc/sys/dev/cdrom/info

    Mount the cdrom drive:
        # mount -t iso9660 <cdromdev> /media/cdrom
    i.e.:
        # mount -t iso9660 /dev/hda /media/cdrom

4. Build the additions:

    First, we need to build of some prerequisite utilities.
    (This is only needed to be done once)

        # cd /lib/modules/<kernel-version>-yocto-standard/build
        # make scripts

    Now build the guest additions:

        # /media/cdrom/VBoxLinuxAdditions.run --nox11

    At this point, providing there were no build errors, the guest additions are 
    built and installed.

5. Check if vbox additions running:

        # /etc/init.d/vboxadd status

    If not running, try manually starting:

        # /etc/init.d/vboxadd start

6. Check if additons actually work, in particular folder sharing.

    Host: Devices->Shared Folders->Shared Folder Settings...
        Add any host folder and name it (i.e. "images")

    Guest VM: create mount point for the shared folder, i.e.:

        # mkdir ~/my-host

    Mount the shared folder: (Watch out for spelling: it's vboxsf NOT vboxfs)

        # mount -t vboxsf images ~/my-host

    Verify mount, should see the contents of the shared folder:

        # ls ~/my-host