Skip to main content

Spin ManageIQ/CFME Appliance locally.

Project description

MiqBox

Spin ManageIQ/CFME Appliance locally with Virtualization.

Python Versions Build Status License: GPLV2 PyPI version Downloads Code style: black

Prerequisite

  1. Virtualization:

    • Fedora

      sudo dnf install @virtualization
      systemctl start libvirtd
      systemctl enable libvirtd
      

      If you want optional packages

      dnf group install --with-optional virtualization
      
    • Ubuntu

      sudo apt-get install qemu-kvm
      
  2. Devel Packages:

    sudo dnf install libvirt-devel python-devel python3-devel
    

Install

  • pip

    pip install miqbox --user
    
  • source

    python setup.py install --user
    

Troubleshooting

  • libvirt: Polkit error

  • To prevent libvirt from asking root password:

    • Add libvirt group (It may be present by default)

      sudo groupadd libvirt
      
    • Add not root user as member

      sudo usermod -a -G libvirt <username>
      
    • Add Polkit rule for libvirt:

      vim /etc/polkit-1/rules.d/80-libvirt.rules
      
      polkit.addRule(function(action, subject) {
      if (action.id == "org.libvirt.unix.manage"
          && subject.local
          && subject.active
          && subject.isInGroup("libvirt")) {
      return polkit.Result.YES;
      }
      });
      

Usage

  • Help available with MiqBox

     Usage: miqbox [OPTIONS] COMMAND [ARGS]...
    
       Spin ManageIQ/CFME Appliance locally with Virtualization.
    
     Options:
       --version  Show the version and exit.
       --help     Show this message and exit.
    
     Commands:
       config     Configure MiqBox
       create     Create Appliance
       evmserver  Restart Miq/CFME Server
       images     Check available images
       kill       Kill Appliance
       pull       Download Image
       rmi        Remove local Images
       start      Start Appliance
       status     Appliance Status
       stop       Stop Appliance
    

Contribute

  • Fork the repository on GitHub and make some changes. Make sure to add yourself to AUTHORS.

  • Install the in development mode

    pip install -r requirements-dev.txt
    pip install -e .
    
  • Send pull requests and bugs.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

miqbox-1.5.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

miqbox-1.5-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file miqbox-1.5.tar.gz.

File metadata

  • Download URL: miqbox-1.5.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for miqbox-1.5.tar.gz
Algorithm Hash digest
SHA256 ab61688e6b68a332ac02771355587069b1c7ce815df2f7798a3c6bdd3137c919
MD5 a454eedd59784b8f506b3d9cad66d2cc
BLAKE2b-256 22b91da1435cfdf21c37acde5d2fa3cd8b5de66816b09955f3939fab0518cdf8

See more details on using hashes here.

File details

Details for the file miqbox-1.5-py3-none-any.whl.

File metadata

  • Download URL: miqbox-1.5-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for miqbox-1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1c0cac343e243e7a9c4c4beba467db92810f2e81d0d99189cf9cff6f3fe6a95e
MD5 c5219b7e59bd7b548c30dad1213e506c
BLAKE2b-256 d3986c2bab311fbfcb8cb9d3187851d4b47969f09f6d52104a993e24bd6757ea

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page