OpenStack on Microsoft Azure – Part 2 – Preparing the VM for RHOSP deployment

Preparing the Azure VM for RHOSP installation

Now that we have a Red Hat VM on Azure, let’s proceed to installing required packages for virtualization such as KVM, register the machine with Red Hat and enable OpenStack repositories. To begin login to the Azure VM using an ssh client (such as the terminal in linux/mac & putty for Windows).
NOTE: All commands were run as root.

Install packages required for virtualization

yum install -y qemu-kvm qemu-img virt-manager libvirt libvirt-python python-virtinst libvirt-client

Disable Network Manager & Reboot

systemctl disable NetworkManager

Register VM to Red Hat Satellite

  1. Re-login and run the below command to register the machine to Red Hat Satellite for attaching a RHOSP subscription. The command will ask you to enter your Red Hat account username and password & may ask you open a link (screenshot attached for reference) & accept Red Hat’s Terms and conditions.
    NOTE: Re-run the command again after accepting the agreement.

    subscription-manager register
  2. List all available subscriptions and copy the pool id for RHOSP
    subscription-manager list --available --all
  3. Attach subscription to machine
    subscription-manager attach --pool=<pool id>
  4. Disable repos
    subscription-manager repos --disable=*
  5. Enable required RHEL & RHOSP repos, in this example RHOSP 10 repos are being enabled. For a different RHOSP version replace 10 with desired platform number.
    subscription-manager repos --enable=rhel-7-server-rpms
    subscription-manager repos --enable=rhel-7-server-rh-common-rpms
    subscription-manager repos --enable=rhel-7-server-extras-rpms
    subscription-manager repos --enable=rhel-7-server-openstack-10-rpms
    subscription-manager repos --enable=rhel-7-server-openstack-10-devtools-rpms
  6. Install yum utilities, update server & reboot
    yum install yum-utils
    yum update -y


In Part 3 of this article we will proceed to Red Hat OpenStack Platform 10 using Packstack and perform some really important post installation configuration.

Sangram has written 66 articles