Projekt

Allgemein

Profil

Aktionen

Install Procedure für VirtualBox Guest Additions 4.3

Requirements

To install VirtualBox guest additions you will need the following:
  • a virtual machine
  • a installed and supported operating system (e.g. CentOS 6.x)
  • root-access
  • a fast internet connection
  • rpmforge

Preliminary Note

This procedure is based on a documentation supplied by http://www.virtualbox.org/manual/ch04.html#idp11234128

Install Virtual Guest Additions

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.

Installation generally involves the following steps:

CentOS preperation

  • update everything
    In order to fully update your guest system, open a terminal and run as root
    yum update
    
  • Install DKMS
    Install Dynamic Kernel Module System: (automatically installs appropriate kernel modules per selected version)
    yum --enablerepo rpmforge install dkms
    

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

/etc/init.d/vboxadd setup

  • install the gcc and kernel development packages
    Install the GNU C compiler and the kernel development packages using
    yum install gcc
    

    followed by
    yum install kernel-devel
    
  • reboot
    Reboot your guest system in order to activate the updates and then proceed as described above.
    reboot
    

installation of Guest Additions via X11

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.
Change to the directory where your CD-ROM drive is mounted and execute as root:

sh ./VBoxLinuxAdditions.run

Restart the guest.

reboot

installation of Guest Additions via CLI

On the host-side stop the guest and then insert the VBoxGuestAdditions.iso CD into the virtual CD-ROM drive via

VBoxManage modifyvm MyCentOSGuest --dvd /usr/share/virtualbox/VBoxGuestAdditions.iso

if the CD is not mounted automatically on the guest-side you may do it manually by
mount -t iso9660 -o ro /dev/cdrom /media/

sh /media/VBoxLinuxAdditions.run

umount /media/
poweroff

On the host-side you remove the CD-ROM by

VBoxManage modifyvm MyCentOSGuest --dvd none

Problem

Von Jeremias Keihsler vor fast 8 Jahren aktualisiert · 1 Revisionen