Projekt

Allgemein

Profil

Setup virtualboxguest43 » Historie » Version 1

Jeremias Keihsler, 13.01.2017 12:57

1 1 Jeremias Keihsler
h1. Install Procedure für VirtualBox Guest Additions 4.3
2
3
h2. Requirements
4
5
To install VirtualBox guest additions you will need the following:
6
* a virtual machine
7
* a installed and supported operating system (e.g. CentOS 6.x)
8
* root-access
9
* a fast internet connection
10
* [[repo_rpmforge|rpmforge]]
11
12
h2. Preliminary Note
13
14
This procedure is based on a documentation supplied by http://www.virtualbox.org/manual/ch04.html#idp11234128
15
16
h2. Install Virtual Guest Additions
17
18
The VirtualBox Guest Additions for Linux are provided on the same virtual CD-ROM file as the Guest Additions for Windows. They also come with an installation program guiding you through the setup process, although, due to the significant differences between Linux distributions, installation may be slightly more complex than for a windows guest.
19
20
Installation generally involves the following steps:
21
22
h3. CentOS preperation
23
24
* update everything
25
In order to fully update your guest system, open a terminal and run as root
26
<pre><code class="bash">
27
yum update
28
</code></pre>
29
30
* Install DKMS
31
Install Dynamic Kernel Module System: (automatically installs appropriate kernel modules per selected version)
32
<pre><code class="bash">
33
yum --enablerepo rpmforge install dkms
34
</code></pre>
35
36
Be sure to install DKMS before installing the Linux Guest Additions. If DKMS is not available or not installed, the guest kernel modules will need to be recreated manually as root whenever the guest kernel is updated using the command
37
<pre><code class="bash">
38
/etc/init.d/vboxadd setup
39
</code></pre>
40
41
* install the gcc and kernel development packages
42
Install the GNU C compiler and the kernel development packages using
43
<pre><code class="bash">
44
yum install gcc
45
</code></pre>
46
followed by
47
<pre><code class="bash">
48
yum install kernel-devel
49
</code></pre>
50
51
* reboot
52
Reboot your guest system in order to activate the updates and then proceed as described above.
53
<pre><code class="bash">
54
reboot
55
</code></pre>
56
57
h3. installation of Guest Additions via X11
58
59
Insert the VBoxGuestAdditions.iso CD file into your Linux guest's virtual CD-ROM drive. In the "Devices" menu in the virtual machine's menu bar, VirtualBox has a handy menu item named @Install guest additions@, which mounts the Guest Additions .iso file inside your virtual machine.
60
Change to the directory where your CD-ROM drive is mounted and execute as root:
61
<pre><code class="bash">
62
sh ./VBoxLinuxAdditions.run
63
</code></pre>
64
65
Restart the guest.
66
<pre><code class="bash">
67
reboot
68
</code></pre>
69
70
h3. installation of Guest Additions via CLI
71
72
On the host-side stop the guest and then insert the VBoxGuestAdditions.iso CD into the virtual CD-ROM drive via
73
<pre><code class="bash">
74
VBoxManage modifyvm MyCentOSGuest --dvd /usr/share/virtualbox/VBoxGuestAdditions.iso
75
</code></pre>
76
if the CD is not mounted automatically on the guest-side you may do it manually by
77
<pre><code class="bash">
78
mount -t iso9660 -o ro /dev/cdrom /media/
79
</code></pre>
80
<pre><code class="bash">
81
sh /media/VBoxLinuxAdditions.run
82
</code></pre>
83
<pre><code class="bash">
84
umount /media/
85
poweroff
86
</code></pre>
87
88
On the host-side you remove the CD-ROM by
89
<pre><code class="bash">
90
VBoxManage modifyvm MyCentOSGuest --dvd none
91
</code></pre>
92
93
h2. Problem