How to Install SpaceWalk on CentOS 7

r00t December 6, 2017

Install SpaceWalk on CentOS 7

In this tutorial we’ll learn how to install SpaceWalk on CentOS 7. We will also install and configure its prerequisites. The spacewalk is a free, open source Linux management program. It is an upstream community job for the Red Hat Satellite server. Using Spacewalk, we can deploy, manage and upgrade packs to Red Hat derived distributions like CentOS, Fedora, and Scientific Linux etc.. It’s a cool web interface which will help us to see the status of software updates in the clients and initiate update tasks. Spacewalk provides provisioning capabilities that enable you to kick-start provision systems and handle and deploy configuration files. It also has virtualization capabilities to enable you to provision, control, manage, and track virtual KVM and Xen guests.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.


  • Operating System : CentOS 7 minimal installation
  • Hostname : server.myvpsource.local
  • IP Address :

Install SpaceWalk on CentOS 7

Step 1. First, ensure your system is fully up-to-date by running the following:

yum -y update
yum -y install epel-release

Step 2. Installing SpaceWalk.

First, Add Spacewalk official repository as shown below depending upon the distribution you use:

rpm -Uvh

Now, update the repository lists:

yum repolist
yum update

Step 3. SpaceWalk Database.

Spacewalk needs a database server to store it’s primary data. By default, SpaceWalk supports PostgreSQL (version 8.4 or higher) or Oracle ( version 10g or higher) as a database for storing its data:

yum install spacewalk-postgresql

If you have installed embedded database, then use below command:

spacewalk-setup --disconnected

if you have setup database manually, then use below commands depend on database type:

spacewalk-setup --disconnected --external-postgresql

Step 4. Configure Spacewalk server.

Your Spacewalk server should have a resolvable fully-qualified domain name (FQDN) such as “”, to do that; edit /etc/hosts file:

nano /etc/hosts

Modify it according to your environment. localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 server.myvpsource.local server

On complete, start the Spacewalk service if not started automatically:

/usr/sbin/spacewalk-service start

Step 5. Configure Firewall for SpaceWalk.

You need to allow few ports via your Firewall and router:

firewall-cmd --add-service=https --permanent
firewall-cmd --add-service=http --permanent
firewall-cmd --reload

Step 6. Accesing SpaceWalk

SpaceWalk will be accessible on port 80 by default, As installation is now successful, you may proceed to navigate to http://server-ip/ or http://server-hostname/ and complete the required the steps to finish the installation. Enter the administrator account name, password, first name, last name and Email address etc. Then, click Create Login button.

Congratulation’s! You have successfully install and configured SpaceWalk on your CentOS 7 server. Thanks for using this tutorial for installing SpaceWalk on CentOS 7 system.

The Tags:

Leave a Comment

Comments are closed.