Virtual Machine Provisioning

Version 2 (Ohad Levy, 01/14/2011 09:25 am) → Version 3/15 (Ohad Levy, 01/20/2011 12:38 pm)


h1. Virtual Machine Provisioning

h2. Libvirt

As of version 0.1-7, Foreman provides an interface to build virtual guests using libvirtd, in order to use it, make sure you have:

h3. Requirements

# The ruby libvirtd binding (the libvirt-ruby package on Ubuntu or ruby-libvirt package on RHEL)
# Foreman needs to be able to access libvirtd, this depends on how you communicate with libvirt, for exmaple, if you use qemu+ssh protocol, then the foreman user needs to be able to ssh to the hypervisor(the physical machine) and that user needs to be in the libvirt group.
# Configure the hypervisor under the settings tab

Now you should see hypervisor options when creating a new node.

h3. Notes

# it has been mostly tested on KVM.
# You should already have a network bridge and a storage pool configured on your hypervisor
# on systems that don't support netcf (such as Ubuntu), it is not possible to show the list of allowed interfaces, and its a free text field (you need to provide the interface bridge name or internal NAT network name)

ruby-libvirt RPMS for RHEL/CentOS can be found here (until they will be accepted into EPEL)

RHEL5 - http://koji.fedoraproject.org/koji/buildinfo?buildID=215002

RHEL6 - http://koji.fedoraproject.org/koji/buildinfo?buildID=215016