Primero bajamos el repositorio
wget wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
Tambien podemos crearlo nosotros mismos tiene esta estructura.
[virtualbox]
name=RHEL/CentOS-$releasever / $basearch – VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/rhel/$releasever/$basearch
enabled=1
gpgcheck=1
gpgkey=http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc
Una vez creado lo guardamos o copiamos en la carpeta /etc/yum.repos.d/
cp virtualbox.repo /etc/yum.repos.d/
Ejecutamos una actualizacion de repositorios.
[root@hades tecno]# yum check-update
[root@hades tecno]# yum update
Finalmente lanzamos la instalacion de virtualbox con yum
[root@hades tecno]# yum install VirtualBox-3.2
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: sunsite.rediris.es
* base: sunsite.rediris.es
* extras: sunsite.rediris.es
* updates: sunsite.rediris.es
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package VirtualBox-3.2.x86_64 0:3.2.8_64453_rhel5-1 set to be updated
–> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================
Installing:
VirtualBox-3.2 x86_64 3.2.8_64453_rhel5-1 virtualbox 54 M
Transaction Summary
======================================================================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 54 M
Is this ok [y/N]:
Ya podremos virtualizar 😉