RHEV-M with nested VM for OSP

Since some time ago, I’ve been mostly dealing with OpenStack, requiring different releases to test for different tests, etc. Virtualization, as provided by KVM requires some CPU flags to get accelerated operations, vmx and svm depending on your processor architecture, but, of course, this is only provided on bare-metal. In order to get more flexibility at the expense of performance, nestedvt allows to expose those flags to the VM’s running at the hypervisor so you can run another level of VM’s inside those VM’s (this starts to sound like the movie Inception). ...

July 17, 2015 · 5 min · Pablo Iranzo Gómez

RHEV/oVirt API with Python

RHEV/oVirt API allows faster and simple development of scripts and utilities ranging from gathering of information to VM/host, etc manipulation. For example, a simple script for connecting to API and list VM’s could be: import sys import getopt import optparse import os import time from ovirtsdk.api import API from ovirtsdk.xml import params from random import choice baseurl = "https://localhost:8443" api = API(url=baseurl, username="admin@internal", password="redhat", insecure=True) for vm in api.vms.list(): print(vm.name) The .list() method works pretty well, but beware, it limits collections to 100 elements for performance reasons, so in those cases, we’ll need to check how many results do we have, and paginate by passing an extra argument to our “.list()” invocation, for example: ...

October 24, 2012 · 2 min · Pablo Iranzo Gómez
This blog is a participant in the Amazon Associate Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.