Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.
/ ovirt Public archive

script to create ovirt/rhev-m virtual machines and register them in cobbler for autoinstall

Notifications You must be signed in to change notification settings

karmab/ovirt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ovirt.py repository

Build Status Code Climate Pypi

This script allows creation/stop/start/runonce/console/add disk or iso/migrate/deploy/listing from template/add tags,... for ovirt/rhev-m virtual machines in a multi-client way

Requisites

  • ovirt-engine-sdk-python rpm
  • python-requests rpm
  • python-prettytable rpm
  • ovirt.ini file in your home directory or in same directory as program (look at sample for syntax)
  • a client.ini (for instance nyse.ini) in your home directory for every client you want to manage.This file will contain profiles (disksize,number of network interfaces and type,...) used when creating machines (look at sample for syntax)

Contents

  • README.txt this file
  • ovirt.py start/stop/migrate/creates/deletes virtual machines in ovirt/rhev-m of several clients
  • hypervisor.py start/stop/get console of virtual machines connecting directly to the hypervisor (usefull when manager is down)

Typical uses

  • CREATE VIRTUAL MACHINE V0100 BASED ON PROFILE BE6 FOR CLIENT BIGCOMPANY, PROVIDING IPS FOR COBBLER TOO
    • ovirt.py -ZC bigcompany -n v0100 -p be6 -1 192.168.1.100 -2 192.168.10.100
  • DELETE VIRTUAL MACHINE V0100 FROM CLIENT NYSE
    • ovirt.py -C nyse -K v0100
  • GET A CONSOLE FOR VIRTUAL MACHINE HENDRIX ( IN DEFAULT CLIENT) - ovirt.py -o hendrix
  • START A VM KIPA02 DIRECTLY THROUGH THE HYPERVISOR WITH - hypervisor.py -T ~/vdsm_certs -H 192.168.6.1 -s kipa02

Problems?

Send me a mail at karimboumedhel@gmail.com !

Mac Fly!!!

karmab

About

script to create ovirt/rhev-m virtual machines and register them in cobbler for autoinstall

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages