Menginstall VirtualBox Guest Additions di Linux CentOS 6

VirtualBox Guest Additions adalah software yang bisa kita install ke virtual machine kita (linux) guna meningkatkan performa dan membuat integrasi antar host OS dan guest OS semakin baik. Di antaranya adalah mouse pointer integration, shared folder, dll. 

Langkah - Langkah Installasi pada CentOS atau RedHat (RHEL)

1. Menggunakan user root

     su -
  atau
  sudo -i

2. Mount VirtualBox Guest Additions
    klik Devices > Install Guest Additions pada virtualbox
    
      mkdir /media/cdrom
   mount -r /dev/cdrom /media/cdrom

3. Pastikan anda menjalankan kernel yang terbaru
    
    yum install kernel*
  reboot

4. Install paket - paket berikut

    yum install gcc kernel-devel kernel-headers

5. Tambahkan variabel direktori untuk kernel (KERN_DIR)

    #contoh
    KERN_DIR=/usr/src/kernels/2.6.18-194.11.1.el5-x86_64

  #export KERN_DIR
  export KERN_DIR

6. Install Guest Additions

   cd /media/cdrom
  ./VBoxLinuxAdditions.run

    proses installasi kurang lebih seperti ini :

   [root@localhost VBoxGuestAdditions]# ./VBoxLinuxAdditions.run
   Verifying archive integrity... All good.
   Uncompressing VirtualBox 4.1.6 Guest Additions for Linux.........
   VirtualBox Guest Additions installer
   Removing installed version 4.1.6 of VirtualBox Guest Additions...
   Removing existing VirtualBox DKMS kernel modules           [  OK  ]
   Removing existing VirtualBox non-DKMS kernel modules       [  OK  ]
   Building the VirtualBox Guest Additions kernel modules
   Building the main Guest Additions module                   [  OK  ]
   Building the shared folder support module                  [  OK  ]
   Building the OpenGL support module                         [  OK  ]
   Doing non-kernel setup of the Guest Additions              [  OK  ]
   You should restart your guest to make sure the new modules are actually used 

   Installing the Window System drivers
   Installing X.Org Server 1.11 modules                       [  OK  ]
   Setting up the Window System to use the Guest Additions    [  OK  ]
   You may need to restart the hal service and the Window System (or just restart
   the guest system) to enable the Guest Additions.

   Installing graphics libraries and desktop services componen[  OK  ]

7. Lalu reboot linuxnya ..
   reboot

No comments:

Post a Comment