Skip to content
movitto edited this page Jan 14, 2013 · 3 revisions

Aeolus Demo Setup

Setting up Aeolus

Back to presentations / demo portal

These are instructions on setting up an environment to demo Aeolus

Cloud Providers

Allocate a machine with at least 4GB of memory, a cpu architecture to run full hardware virtualization, and plenty of disk space

The machine should have a NIC for each cloud provider you will be setting up. I will be assuming you are setting up oVirt and openstack so you will need two nics

Bond the p1p1 nic to the default libvirt management network:

cat /etc/sysconfig/network-scripts/ifcfg-p1p1
  DEVICE=p1p1
  ONBOOT=yes
  BOOTPROTO=none
  HWADDR=XX:XX:XX:XX:XX:XX
  BRIDGE=defaultmgmt
  NM_CONTROLLED=no

cat /etc/sysconfig/network-scripts/ifcfg-defaultmgmt
  DEVICE=defaultmgmt
  TYPE=Bridge
  ONBOOT=yes
  DELAY=0
  NM_CONTROLLED=no
  BOOTPROTO=dhcp
  UUID=6b2931da-e0c6-4dc6-9d52-f1ed0374100b
  ONBOOT=yes

cat /etc/libvirt/qemu/networks/default.xml
  <network>
   <name>default</name>
   <uuid>eef153cb-f1d7-4baf-8ff1-16ea2ed4c86b</uuid>
   <forward mode='bridge'/>
   <bridge name='defaultmgmt' />
  </network>

$ virsh net-define /etc/libvirt/qemu/networks/default.xml

Connect nics to a hub, other than that, the machine should have no external network access.

Finally openup the firewall on the hostmachine and openstack vms. I enabled full access to keep things simple:

$ sudo iptables -I INPUT 1 -j ACCEPT

Configure Openstack and oVirt on this machine

Aeolus host

###. DHCPD

Connect the LAN port of the machine you are running Aeolus on to the hub, setup the following in /etc/dhcp/dhcpd.conf:

subnet 110.220.110.0 netmask 255.255.255.0 {
  range 110.220.110.11 110.220.110.20;
  #option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
  host openstack {
    hardware ethernet XX:XX:XX:XX:XX:XX;
    fixed-address 110.220.110.10;
  }
  host ovirt {
    hardware ethernet XX:XX:XX:XX:XX:XX;
    fixed-address 110.220.110.30;
  }
  host openstack\_vm {
    hardware ethernet XX:XX:XX:XX:XX:XX;
    fixed-address 110.220.110.40;
  }
}

The 110.220.110.x is just a made up network and you will need to substitute your mac addresses in. The openstack host corresponds to the network interface in the openstack vm. The ovirt host corresponds to the physical nic bonded to the ovirt management interface. The openstack_vm host corresponds to the physical nic bonded to the default libvirt management interface

Configure the route to this host:

cat /etc/sysconfig/network-scripts/route-em1:
  255.255.255.255/32 dev em1

cat /etc/sysconfig/network-scripts/ifcfg-em1:
  DEVICE=“em1”
  HWADDR=“F0:DE:F1:5C:F6:0A”
  ONBOOT=“yes”
  NM_CONTROLLED=“no”
  BOOTPROTO=“static”
  IPADDR=110.220.110.1

  sudo route add -host 255.255.255.255 em1
  sudo ifconfig em1 110.220.110.1

Startup dhcpd:

sudo service dhcpd start

Providers:

Add the following to /etc/hosts:

110.220.110.30 ovirt
110.220.110.10 openstack

Ping the providers:

ping ovirt
ping openstack

Installation

Finally install and setup Aeolus:

sudo yum install aeolus-all
sudo aeolus-configure

From there you can add the ovirt and openstack cloud providers, hardware profiles, realms, pools, and more sample data via the wui.

Make sure your ~/.aeolus-cli file is setup correctly w/ the neccessary credentials to use the aeolus command line interface

Imagefactory

To show off imagefactory / ovirt integration you will need to mount the ovirt exports domain. Note! this must be the exact same mount point as that on the oVirt host (eg cannot be mounted via localhost there)

mount 110.220.110.30:/ext/ovirt31export /mnt/ovirt

Build the latest image factory from source:

There commands in the demo are using the latest imagefactory, to download and build that from source:

git clone git://github.com/aeolusproject/imagefactory.git
cd imagefactory
make rpms
cd imagefactory-plugins
make rpms
rpm  -ivh imagefactory imagefactory-plugins
rpmbuild --rebuild http://repos.fedorapeople.org/repos/aeolus/imagefactory/testing/latest_bindings/ovirt-engine-sdk-3.1.0.3-1.fc14.src.rpm
rpm -ivh ovirt-engine-sdk
Clone this wiki locally