How To's Tutorials

Spacewalk Installation Tutorial Step by Step On CentOS/RHEL/Fedora/Scientific Linux

Overview :


Spacewalk is an open source configuration management tool sponsored by Red Hat. Spacewalk is alternate of Redhat network satellite server on Centos / Fedora / Scientific Linux. Spacewalk is the upstream project for the source of Red Hat Network Satellite.


It provides a management interface for software content across registered servers. Some of important Features of Spacewalk are mentioned below :

  • Manage Inventory of Servers (hardware and software information)
  • Install and update software on Servers
  • Manage and deploy configuration files to your systems
  • Monitor your systems / Servers


Spacewalk Installation Steps on CentOS / RHEL


Step:1  Setup Spacewalk Repo.


rpm -Uvh


Step:2 Setup Additional Repositories.


For Spacewalk on RHEL 6 and Fedora, We nee  additional dependencies that are needed from jpackage. Create  a file using below command :


cat > /etc/yum.repos.d/jpackage-generic.repo << EOF
name=JPackage generic


Enable EPEL Repository :


Spacewalk requires a Java Virtual Machine with version 1.6.0 or greater. EPEL - Extra Packages for Enterprise Linux contains a version of the openjdk that works with Spacewalk.


# rpm -Uvh


Step:3 Spacewalk Database Server Installation


Spacewalk uses database to store its primary data , it supports either  PostgreSQL  or Oracle RDBMS. In our case we are using postgresql.


# yum install spacewalk-setup-embedded-postgresql


Step:4 Installing Spacewalk


# yum install spacewalk-postgresql


Create a file under /root called “answer” with below contents :


# vi /root/answers

admin-email = root@localhost

ssl-set-org = Nextstep4it

ssl-set-org-unit = IT

ssl-set-city = Delhi

ssl-set-state = Delhi

ssl-set-country = IN

ssl-password = spacewalkpasswd

ssl-set-email = root@localhost

ssl-config-sslvhost = Y







Configure Spacewalk with an Answer File


# spacewalk-setup --disconnected –answer-file=/root/answers


After spacewalk-setup is complete , application is ready to use. Above command will create the postgresql database environment for spacewalk and will create ssl certificates and will start the services like tomcat.


Step:5 Access the Spacewalk using below URL and set administrative account .


Open Web browser and type "https://<Hostname / IP>", replace hostname or ip address according to your setup


After Setting the Administrative account , we can login to spacewalk admin GUI:


Spacewalk Admin panel


Spacewalk Service


# /usr/sbin/spacewalk-service [stop|start|restart]


Susindran on, 2013-10-28 19:10:36
I am getting below error after given first command, [root]# rpm -Uvh Retrieving
bharat on, 2013-12-05 07:04:23
Installed, can you please let me know how can i use further
Post Your Comments
Security Code  *
Enter Security Code  *
Can't read the image? click here to refresh