blob: e7298f2c3cd9770f823b314b50d4b2ba37360108 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001
2Installing VirtualBox Guest Additions
3=====================================
4
5In order to use VirtualBox guest additions, they have to be build
6first. They may have to be rebuilt each time the time you upgrade to
7a new version of VirtualBox.
8
9Make sure VM is configured with an Optical Drive.
10
11Please follow these steps to install the VirtualBox Guest Additions on the
12Build Appliance VM:
13
141. Boot VM, select root "Terminal" instead of the default "Terminal <2>"
15
162. Insert Guest additions CD into VM optical drive:
17 VM menu "Devices"->"Optical Drives"-> Select "VBoxGuestAdditions<version>.iso"
18
193. Find your CDROM device. Typically it is /dev/hda for IDE. You can determine
20 the actual name <cdromedev> by viewing the cdrom info:
21
22 # cat /proc/sys/dev/cdrom/info
23
24 Mount the cdrom drive:
25 # mount -t iso9660 <cdromdev> /media/cdrom
26 i.e.:
27 # mount -t iso9660 /dev/hda /media/cdrom
28
294. Build the additions:
30
31 First, we need to build of some prerequisite utilities.
32 (This is only needed to be done once)
33
34 # cd /lib/modules/<kernel-version>-yocto-standard/build
35 # make scripts
36
37 Now build the guest additions:
38
39 # /media/cdrom/VBoxLinuxAdditions.run --nox11
40
41 At this point, providing there were no build errors, the guest additions are
42 built and installed.
43
445. Check if vbox additions running:
45
46 # /etc/init.d/vboxadd status
47
48 If not running, try manually starting:
49
50 # /etc/init.d/vboxadd start
51
526. Check if additons actually work, in particular folder sharing.
53
54 Host: Devices->Shared Folders->Shared Folder Settings...
55 Add any host folder and name it (i.e. "images")
56
57 Guest VM: create mount point for the shared folder, i.e.:
58
59 # mkdir ~/my-host
60
61 Mount the shared folder: (Watch out for spelling: it's vboxsf NOT vboxfs)
62
63 # mount -t vboxsf images ~/my-host
64
65 Verify mount, should see the contents of the shared folder:
66
67 # ls ~/my-host
68
69
70
71
72
73
74
75