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
    

Note: For Development install in editable mode.

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:

 Usage: miqbox [OPTIONS] COMMAND [ARGS]...

   Command line application entry point

 Options:
   --help  Show this message and exit.

 Commands:
   config     Configure miqbox
   create     Create Appliance
   evmserver  Restart Miq/CFME Server
   images     Get local or remote available image Args: local: default, will...
   kill       Kill Appliance
   pull       Download Image
   rmi        Remove local Image
   start      Start Appliance
   status     Appliance Status
   stop       Stop Appliance

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-0.8.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

miqbox-0.8-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: miqbox-0.8.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for miqbox-0.8.tar.gz
Algorithm Hash digest
SHA256 ba9a53c529d333d90487f78a095f083b99622beb01513646c0262f62def673e8
MD5 7f24bc77fd5a1c7b03e6eaa02aaf93ce
BLAKE2b-256 7cfb2c77974f62a19dd6b38da996690f03f0c2fe2a934de2ea2ae249f51d9153

See more details on using hashes here.

File details

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

File metadata

  • Download URL: miqbox-0.8-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for miqbox-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 356be2aa33a20b349a62d71105b7fc2ef582cf8a2ac4645af4bdf506ec6cfbb6
MD5 60243c39db0d65c9d9e35975065f4c94
BLAKE2b-256 c9aa626d4c908ea06b9f931d7aa66bea2e42af665762a4b20ded89b82c7b2937

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