Installing Virtualbox on a headless server
Had to install VirtualBox in a jiffy on a server, a totally quick and dirty thing to get a couple of things tested. The CentOS server in question did not had an internet connection, so all the RPM packages I wgeted are downloaded to another box, and rsynced to the CentOS server for installation.
Here are the steps I took...
The CentOS server was running:
First off, the VirtualBox dependency:
And then, the VirtualBox package itself:
The test does not work at all (as expected, actually):
So, onto to install a X11 working environment:
Here are the steps I took...
The CentOS server was running:
CentOS release 4.2 (Final)
Linux centosserver.something.something 2.6.9-22.0.2.ELsmp #1 SMP Tue Jan 17 07:10:04 CST 2006 i686 i686 i386 GNU/Linux
First off, the VirtualBox dependency:
# rpm -ivh xorg-x11-Mesa-libGLU-6.8.2-1.EL.13.20.i386.rpm SDL-1.2.7-8.i386.rpm
Preparing... ########################################### [100%]
1:SDL ########################################### [ 50%]
2:xorg-x11-Mesa-libGLU ########################################### [100%]
And then, the VirtualBox package itself:
# rpm -ivh VirtualBox-3.1-3.1.4_57640_rhel4-1.i386.rpm
warning: only V3 signatures can be verified, skipping V4 signature
Preparing... ########################################### [100%]
1:VirtualBox-3.1 ########################################### [100%]
warning: only V3 signatures can be verified, skipping V4 signature
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.
Success!
Add a regular user to the vboxuser group:
usermod -G vboxusers regular.user.who.can.use.virtualbox
The test does not work at all (as expected, actually):
$ VirtualBox &
[1] 31929
$ Failed to open the X11 display!
So, onto to install a X11 working environment:
# rpm --test -ivh xorg-x11-tools-6.8.2-1.EL.13.20.i386.rpm xorg-x11-xauth-6.8.2-1.EL.13.20.i386.rpm
error: Failed dependencies:
xorg-x11 is needed by xorg-x11-tools-6.8.2-1.EL.13.20.i386
Suggested resolutions:
xorg-x11-6.8.2-1.EL.13.20.i386.rpm
# rpm --test -ivh xorg-x11-6.8.2-1.EL.13.20.i386.rpm
error: Failed dependencies:
/usr/X11R6/bin/mkfontdir is needed by xorg-x11-6.8.2-1.EL.13.20.i386
/usr/X11R6/bin/xauth is needed by xorg-x11-6.8.2-1.EL.13.20.i386
/usr/sbin/chkfontpath is needed by xorg-x11-6.8.2-1.EL.13.20.i386
base-fonts is needed by xorg-x11-6.8.2-1.EL.13.20.i386
xinitrc is needed by xorg-x11-6.8.2-1.EL.13.20.i386
xorg-x11-xfs = 6.8.2-1.EL.13.20 is needed by xorg-x11-6.8.2-1.EL.13.20.i386
Suggested resolutions:
chkfontpath-1.10.0-2.i386.rpm
fonts-xorg-base-6.8.1.1-1.EL.1.noarch.rpm
xinitrc-4.0.14-1.noarch.rpm
xorg-x11-font-utils-6.8.2-1.EL.13.20.i386.rpm
xorg-x11-xfs-6.8.2-1.EL.13.20.i386.rpm
wget http://vault.centos.org/4.2/os/i386/CentOS/RPMS/chkfontpath-1.10.0-2.i386.rpm && \
wget http://vault.centos.org/4.2/os/i386/CentOS/RPMS/fonts-xorg-base-6.8.1.1-1.EL.1.noarch.rpm && \
wget http://vault.centos.org/4.2/os/i386/CentOS/RPMS/xinitrc-4.0.14-1.noarch.rpm && \
wget http://vault.centos.org/4.2/os/i386/CentOS/RPMS/xorg-x11-font-utils-6.8.2-1.EL.13.20.i386.rpm && \
wget http://vault.centos.org/4.2/os/i386/CentOS/RPMS/xorg-x11-xfs-6.8.2-1.EL.13.20.i386.rpm
chkfontpath-1.10.0-2.i386.rpm fonts-xorg-base-6.8.1.1-1.EL.1.noarch.rpm xinitrc-4.0.14-1.noarch.rpm xorg-x11-font-utils-6.8.2-1.EL.13.20.i386.rpm xorg-x11-xfs-6.8.2-1.EL.13.20.i386.rpm
# rpm --test -ivh chkfontpath-1.10.0-2.i386.rpm fonts-xorg-base-6.8.1.1-1.EL.1.noarch.rpm xinitrc-4.0.14-1.noarch.rpm xorg-x11-6.8.2-1.EL.13.20.i386.rpm xorg-x11-font-utils-6.8.2-1.EL.13.20.i386.rpm xorg-x11-tools-6.8.2-1.EL.13.20.i386.rpm xorg-x11-xauth-6.8.2-1.EL.13.20.i386.rpm xorg-x11-xfs-6.8.2-1.EL.13.20.i386.rpm
error: Failed dependencies:
switchdesk >= 3.7 is needed by xinitrc-4.0.14-1.noarch
/usr/bin/ttmkfdir is needed by xorg-x11-xfs-6.8.2-1.EL.13.20.i386
Suggested resolutions:
switchdesk-4.0.6-3.noarch.rpm
ttmkfdir-3.0.9-14.1.EL.i386.rpm
wget http://vault.centos.org/4.2/os/i386/CentOS/RPMS/switchdesk-4.0.6-3.noarch.rpm && \
wget http://vault.centos.org/4.2/os/i386/CentOS/RPMS/ttmkfdir-3.0.9-14.1.EL.i386.rpm
# rpm -ivh chkfontpath-1.10.0-2.i386.rpm fonts-xorg-base-6.8.1.1-1.EL.1.noarch.rpm xinitrc-4.0.14-1.noarch.rpm xorg-x11-6.8.2-1.EL.13.20.i386.rpm xorg-x11-font-utils-6.8.2-1.EL.13.20.i386.rpm xorg-x11-tools-6.8.2-1.EL.13.20.i386.rpm xorg-x11-xauth-6.8.2-1.EL.13.20.i386.rpm xorg-x11-xfs-6.8.2-1.EL.13.20.i386.rpm switchdesk-4.0.6-3.noarch.rpm ttmkfdir-3.0.9-14.1.EL.i386.rpmPreparing... ########################################### [100%]
1:xorg-x11-font-utils ########################################### [ 10%]
2:ttmkfdir ########################################### [ 20%]
3:xorg-x11-xfs ########################################### [ 30%]
4:chkfontpath ########################################### [ 40%]
5:fonts-xorg-base ########################################### [ 50%]
6:switchdesk ########################################### [ 60%]
7:xorg-x11-xauth ########################################### [ 70%]
8:xorg-x11 ########################################### [ 80%]
9:xinitrc ########################################### [ 90%]
10:xorg-x11-tools ########################################### [100%]
Labels: CentOS 4, IT slaves, Linux, Programs, Virtualbox
0 Comments:
Post a Comment
<< Home