Skip to main content
AI
  • Get started with AI

    • Red Hat AI

      Accelerate the development and deployment of enterprise AI solutions.

    • AI learning hub

      Explore learning materials and tools, organized by task.

    • AI interactive demos

      Click through scenarios with Red Hat AI, including training LLMs and more.

    • AI/ML learning paths

      Expand your Red Hat OpenShift AI knowledge using these learning resources.

    • AI quickstarts

      Focused AI use cases designed for fast deployment on Red Hat AI platforms.

    • No-cost AI training

      Foundational Red Hat AI training.

  • Featured resources

    • Red Hat OpenShift AI
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

Red Hat AI Factory with NVIDIA

Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.

Learn
  • Self-guided

    • Documentation

      Find answers, get step-by-step guidance, and learn how to use Red Hat products.

    • Learning paths

      Explore curated walkthroughs for common development tasks.

    • Guided learning

      Receive custom learning paths powered by our AI assistant.

    • See all learning
  • Hands-on

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

    • Interactive labs

      Learn by doing in these hands-on, browser-based experiences.

    • Interactive demos

      Click through product features in these guided tours.

  • Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics
  • Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
Build
  • Get started

    • Red Hat build of Podman Desktop

      A downloadable, local development hub to experiment with our products and builds.

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

  • Download products

    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products
  • Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset
  • References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
Community
  • Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions
  • Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github
  • Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

Join the Red Hat Developer program

Download Red Hat products and project builds, access support documentation, learning content, and more.

ConsoleDocsSupport Search
New For you

Recommended

We'll recommend resources you may like as you browse. Try these suggestions for now.

  • Product downloads
  • Cheat sheets
  • Red Hat Developer learning portal
  • Developer blog
  • E-books
  • Developer Sandbox
Log in

Get more with a Red Hat Developer account

  • Product downloads
  • Console access
  • Event registration
  • Training & trials
Explore more account benefitsLog in or register

A subscription may be required for some services.

Contact us

Installing Red Hat Container Development Kit on Fedora

<p>&nbsp;</p> <quillbot-extension-portal></quillbot-extension-portal>

December 1, 2016
Preeti Chandrashekar
Related topics:
ContainersDeveloper toolsKubernetesMicroservices
Related products:
Developer ToolsetRed Hat OpenShift Container Platform

    Fedora users seeking help on installing Container Development Kit (CDK), here is how you can install CDK 2.2 on your Fedora 24. These same steps can be used for CDK 2.3 too.

    CDK provides a container development environment, to build production-grade applications, for use on OpenShift.

    The installation of CDK 2.2 on Fedora essentially involves the following stages:

    Setting up your virtualization environment
    You need to first install the virtualization software, in this case, KVM/libvirt, and then proceed to install Vagrant and its additional plugins to enable the various features of CDK.

    1. Install KVM and libvirt:
      $ sudo dnf install @Virtualization
    2. Launch the libvirt daemon and configure it to start at boot:
      $ sudo systemctl start libvirtd
      $ sudo systemctl enable libvirtd
    3. Install Vagrant and the other required vagrant-libvirt plugins:
      $ sudo dnf install vagrant vagrant-libvirt vagrant-libvirt-doc vagrant-registration rubygem-ruby-libvirt
    4. A PolicyKit rule needs to be added that allows users in the vagrant group to control VMs through libvirt. Add the PolicyKit rule on to your system:
      $ sudo cp /usr/share/vagrant/gems/doc/vagrant-libvirt-*/polkit/10-vagrant-libvirt.rules /etc/polkit-1/rules.d
      Note: Starting from Fedora 25 the PolicyKit rule is no longer shipped. So Fedora 25 users should follow these steps, instead of the one mentioned above:
      $ sudo gpasswd -a ${USER} libvirt
      $ newgrp libvirt

      This would add the user to the libvirt UNIX group.
    5. Restart the libvirt and PolicyKit services for the changes to take effect:
      $ sudo systemctl restart libvirtd
      $ sudo systemctl restart polkit

      Note: If you get an error PolicyKit daemon disconnected from the bus. We are no longer a registered authentication agent., try $ systemctl status polkit, if the status is active (running), you can carry on with the installation.
    6. Add your user name to the vagrant group:
      $ sudo usermod -a -G vagrant

    Installing and setting up CDK software components
    Download Red Hat CDK from the Red Hat Developers website, install the plugins and add the CDK box to Vagrant.

    1. Download the CDK software components to your home directory. The following steps assume that these components have been downloaded in the ~/Downloads directory:
      • Red Hat Container Tools (cdk-2.2.0.zip)
      • Red Hat Enterprise Linux 7.2 Vagrant box for libvirt (rhel-cdk-kubernetes-7.2-*.x86_64.vagrant-libvirt.box or later)
    2. Unzip the ZIP file you downloaded in your home directory. This should create the ~/cdk subdirectory:
      $ cd
      $ unzip ~/Downloads/cdk-2.2.0.zip
    3. Install the vagrant plugins contained in the plugins directory:
      $ cd ~/cdk/plugins/
      $ vagrant plugin install \
      ./vagrant-registration-1.3.0.gem \
      ./vagrant-service-manager-1.3.3.gem \
      ./vagrant-sshfs-1.2.0.gem

      Note: If you use libvirt as your vagrant provider, and get a vagrant provider missing error, ensure that you have the provider plugin installed as follows:
      $ vagrant plugin install vagrant-libvirt
    4. Verify that all the vagrant plugins are installed by running:
      $ vagrant plugin list
      You should see the following output:
      vagrant-libvirt (0.0.32, system)
      vagrant-registration (1.3.1)
      - Version Constraint: 1.3.1
      vagrant-service-manager (1.4.1)
      - Version Constraint: 1.4.1
      vagrant-sshfs (1.2.1)
      - Version Constraint: 1.2.1

      Note: vagrant-libvirt would be displayed in the output, only if you have installed the vagrant-libvirt plugin.
    5. Add the CDK box to Vagrant with this command:
      $ vagrant box add --name cdkv2 ~/Downloads/rhel-cdk-kubernetes-7.2*.x86_64.vagrant-libvirt.box
      Verify that the box is installed by running the following command:
      $ vagrant box list

    Starting CDK
    Start the Vagrant box using a Vagrantfile. CDK provides you with Vagrantfiles for OpenShift and Kubernetes. The OpenShift (rhel-ose) Vagrantfile launches a VM with OpenShift Enterprise running on it.

    1. Navigate to the rhel-ose directory:
      $ cd ~/cdk/components/rhel/rhel-ose/
    2. Start CDK with OpenShift Container Platform setup as follows:
      $ vagrant up
      Note that, this returns a very helpful message with tips to access the OpenShift console and CLI.
    3. Enter your developers.redhat.com user credentials when prompted to register the Red Hat Enterprise Linux system running in the Vagrant VM.
    4. Verify that your Vagrant VM is running, to ensure you are ready to use CDK, as follows:
      $ vagrant status
      Note that, for this command to work, you need to be in the same directory where your Vagrantfile is located.

    Ta da, you can now access the OpenShift console or use the OpenShift CLI to run a microservices based architecture on a stable platform.

    Last updated: March 22, 2023

    Recent Posts

    • Run Red Hat Enterprise Linux CoreOS on NVIDIA BlueField DPUs

    • Agent harness engineering: Separating model capabilities from enforcement

    • What's new for developers in Red Hat Enterprise Linux 10.3 and 9.9

    • Control multicluster costs with right-sizing in Red Hat Advanced Cluster Management 5

    • Lightbits is now certified for Red Hat OpenStack Services on OpenShift

    What’s up next?

     

    Red Hat Developers logo

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    Red Hat Developer

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility
    Ask AI