Spacewalk logo source: spacewalk website

Server Information

Host Name:

IP Address:

Operating System : CentOS 7

Step 1: Install EPEL repository & Spacewalk Repository

#yum install epel-release -y

#yum install -y yum-plugin-tmprepo

#yum install -y spacewalk-repo --tmprepo= --nogpg

Step 2: Install the database server and Spacewalk packages

#yum -y install spacewalk-setup-postgresql

#yum -y install spacewalk-postgresql

Step 3: Configure the Firewalld

firewall-cmd --add-service=http
firewall-cmd --add-service=https
firewall-cmd --runtime-to-perm

Step 4: Configure the hosts file

replace the server name and IP address with your spacewalk server name

#vim /etc/hosts   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6 spacewalk

save the file wq:!

Step 5: Install Spacewalk

#spacewalk-setup --skip-fqdn-test

  • Setting up SELinux..
    ** Database: Setting up database connection for PostgreSQL backend.
    ** Database: Installing the database:
    ** Database: This is a long process that is logged in:
    ** Database:   /var/log/rhn/install_db.log
    *** Progress: #
    ** Database: Installation complete.
    ** Database: Populating database.
    *** Progress: ############################
  • Configuring tomcat.
  • Setting up users and groups.
    ** GPG: Initializing GPG and importing key.
    ** GPG: Creating /root/.gnupg directory
    You must enter an email address.
    Admin Email Address?
  • Performing initial configuration.
  • Configuring apache SSL virtual host.
    Should setup configure apache's default ssl server for you (saves original ssl.conf) [Y]? y
    ** /etc/httpd/conf.d/ssl.conf has been backed up to ssl.conf-swsave
  • Configuring jabberd.
  • Creating SSL certificates.
    CA certificate password?
    You must enter a password.
    CA certificate password?
    Re-enter CA certificate password?
    Cname alias of the machine (comma seperated)? spacewalk
    Organization? spacewalk
    Organization Unit []? spacewalk
    Email Address []?
    City? spacewalk city
    State? spacewalk state
    Country code (Examples: "US", "JP", "IN", or type "?" to see a list)? US
    ** SSL: Generating CA certificate.
    ** SSL: Deploying CA certificate.
    ** SSL: Generating server certificate.
    ** SSL: Storing SSL certificates.
  • Deploying configuration files.
  • Update configuration in database.
  • Setting up Cobbler..
    Cobbler requires tftp and xinetd services be turned on for PXE provisioning functionality. Enable these services [Y]? y
  • Restarting services.

Finally After the installation is completed you should be able to see this

Step 6 : Use your favorite browser to navigate to spacewalk server web administration

Fill out your admin information and click create organization button