Spacewalk Installation Step by Step


To evaluate Spacewalk, I have installed it in my lab.

Spacewalk Server: RHEL01 (RHEL5.5/ 1vCPU/ 2G vRAM/ 20G vHDD)
Spacewalk Client:  RHEL02 (RHEL5.5/ 1vCPU/ 1G vRAM/ 8G vHDD)

Install Spacewalk Server

1) Install the Spacewalk Server yum repo

rpm -Uvh http://spacewalk.redhat.com/yum/1.8/RHEL/5/i386/spacewalk-repo-1.8-4.el5.noarch.rpm

2) Install EPEL yum repo

rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

3) Install Spacewalk server and its dependencies

yum install spacewalk-setup-embedded-postgresql
rpm -Uvh http://pkgs.repoforge.org/python-simplejson/python-simplejson-2.0.9-1.el5.rf.i386.rpm
yum install spacewalk-postgresql

4) Initialize Spacewalk server

spacewalk-setup –disconnected

Follow the wizard to create certificate, then go to https://RHEL01 to create the admin account and activation key.

Install Spacewalk Client

1) Install Spacewalk client yum repo

rpm -Uvh http://yum.spacewalkproject.org/1.8-client/RHEL/5/i386/spacewalk-client-repo-1.8-4.el5.noarch.rpm

2) Install EPEL yum repo

BASEARCH=$(uname -i)
rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/$BASEARCH/epel-release-5-4.noarch.rpm

3) Install client and its dependencies

rpm -Uvh yum -Uvh ftp://ftp.pbone.net/mirror/www.startcom.org/AS-5.0.0/updates/i386/libnl-1.0-0.10.pre5.5.i386.rpm
yum install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin

4) Register RHEL02 to RHEL01.

rhnreg_ks –serverUrl=http://rhel01/XMLRPC –activationkey=1-6c22a63db6a7fbaa89b6723c372axxxx

5) Go to https://RHEL01 to confirm RHEL02 has registered itself successfully

References: https://fedorahosted.org/spacewalk/wiki/UserDocs

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s