Thursday, August 09, 2012

Scientific Linux: Installing Virtual Box via RPM

Another one of these... Installation without repository declaration, except for the VirtualBox repo... Compared to the ones I did lately -specially VLC- this one is a real piece of cake...

First things first... So, install dkms...
wget http://pkgs.repoforge.org/dkms/dkms-2.1.1.2-1.el6.rf.noarch.rpm
> sudo rpm --test -ivh dkms-2.1.1.2-1.el6.rf.noarch.rpm 
[sudo] password for XXXXXXX: 
warning: dkms-2.1.1.2-1.el6.rf.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
error: Failed dependencies:
        gcc is needed by dkms-2.1.1.2-1.el6.rf.noarch
        kernel-devel is needed by dkms-2.1.1.2-1.el6.rf.noarch
        make is needed by dkms-2.1.1.2-1.el6.rf.noarch
A bit of the old yum to install these ones:
> sudo yum install gcc kernel-devel make
So here comes the install...
> sudo rpm -ivh dkms-2.1.1.2-1.el6.rf.noarch.rpm 
warning: dkms-2.1.1.2-1.el6.rf.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing...                ########################################### [100%]
   1:dkms                   ########################################### [100%]


VirtualBox-4.1-4.1.18_78361_rhel6-1.i686.rpm                                                                                             |  63 MB     05:53     
warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID 98ab5139: NOKEY
Retrieving key from http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
Importing GPG key 0x98AB5139:
 Userid: "Oracle Corporation (VirtualBox archive signing key) "
 From  : http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : VirtualBox-4.1-4.1.18_78361_rhel6-1.i686                                                                                                     1/1 

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Stopping VirtualBox kernel modules [  OK  ]
Uninstalling old VirtualBox DKMS kernel modules [  OK  ]
Trying to register the VirtualBox kernel modules using DKMS [  OK  ]
Starting VirtualBox kernel modules [  OK  ]

Installed:
  VirtualBox-4.1.i686 0:4.1.18_78361_rhel6-1                                                                                                                    

Complete!
And finally, add your regular user to the vboxusers group and you are done for the day:
sudo usermod -a -G vboxusers XXXXXX
More info, and howto get the VirtualBox repo on your box: Installing and using VirtualBox on CentOS

Labels: , , , ,

0 Comments:

Post a Comment

<< Home