OpenNebula Conf 2014 | Bootstrapping a virtual infrastructure using OpenNebula from scratch by...

9
OpenNebula Conference 2014 Bootstrapping a virtual infrastructure using OpenNebula from scratch Arnold Bechtoldt Karlsruhe, 04.12.14

description

This talk shows how to setup a virtual infrastructure using OpenNebula as cloud management platform, SaltStack for configuration management and Foreman for bare-metal/ virtual host provisioning. You will see how to combine OpenNebula with bare-metal deployment on standard server hardware using non-shared storage in an environment without physical access to the hardware and no existing base infrastructure like DNS, NTP, DHCP, VPN or other. The infrastructure installation has been done automatically using public code and free Open Source software.

Transcript of OpenNebula Conf 2014 | Bootstrapping a virtual infrastructure using OpenNebula from scratch by...

Page 1: OpenNebula Conf 2014 | Bootstrapping a virtual infrastructure using OpenNebula from scratch by Arnold Bechtoldt

OpenNebula Conference 2014

Bootstrapping a virtual infrastructure using OpenNebula from scratch

Arnold Bechtoldt

Karlsruhe, 04.12.14

Page 2: OpenNebula Conf 2014 | Bootstrapping a virtual infrastructure using OpenNebula from scratch by Arnold Bechtoldt

github.com/bechtoldt � [email protected] 2

‣  IT Systems Engineer at inovex GmbH (Germany)

‣  Small to large Open Source datacenter management solutions

‣  High available web-based applications

‣  Contributing to various Open Source projects

About Arnold Bechtoldt

Page 3: OpenNebula Conf 2014 | Bootstrapping a virtual infrastructure using OpenNebula from scratch by Arnold Bechtoldt

3

Goal:

‣  Setup a lightweight hosting platform to run web applications

‣  Virtual machines (VMs) instead of plain bare-metal

‣  Infrastructure should be easy to maintain

Outlines:

‣  Create a new infrastructure from scratch ‣  Individual VM deployment (Preseed/ Kickstart)

‣  No shared storage available (yet)

‣  Small network bandwidth (2 x 1 GigE per node)

Concept Requirements

Page 4: OpenNebula Conf 2014 | Bootstrapping a virtual infrastructure using OpenNebula from scratch by Arnold Bechtoldt

4

Concept Network Topology

Page 5: OpenNebula Conf 2014 | Bootstrapping a virtual infrastructure using OpenNebula from scratch by Arnold Bechtoldt

5

Concept VM Deployment

Foreman (Provisioning + ENC)

OpenNebula (VM Management)

SaltStack (Cfg Mgmt + Orchestration)

1. VM Creation 2. „Host“ Creation

3. DHCP/ Preseed

4. VM Netinstall 5. Software Install

6. Orchestration

(7. Scaling)

Page 6: OpenNebula Conf 2014 | Bootstrapping a virtual infrastructure using OpenNebula from scratch by Arnold Bechtoldt

6

Storage:

‣  HW-RAID 10

‣  QCOW2 VM disk images

‣  Creation of disk during VM deployment (custom TM driver)

Networking:

‣  „Ethernet“ address range in ONE, IPAM by Foreman/ SaltStack

‣  Open vSwitch (custom VNM driver) ‣  STP management via VNM driver

‣  IPSec/ GRE tunneling between compute nodes (MTU 9000)

Concept Challenges

Page 7: OpenNebula Conf 2014 | Bootstrapping a virtual infrastructure using OpenNebula from scratch by Arnold Bechtoldt

7

Pros: +  Low (cloud) infrastructure requirements

+  High degree of automation (Automate everything!)

+  „Cloud“-like feature set

Cons:

-  No VM live migration due to non-shared storage

-  No experiences in Open vSwitch (GRE) scaling

-  VM deployment takes ~ 10 minutes (deployment + software install)

‣  VM Images vs. individual deployment/ netinstall

‣  DHCP vs. OpenNebula contextualization

‣  IPAM in OpenNebula vs. Foreman vs. Salt

‣  Pets vs. cattles

Conclusions Pros & Cons

Page 8: OpenNebula Conf 2014 | Bootstrapping a virtual infrastructure using OpenNebula from scratch by Arnold Bechtoldt

8

We are hiring! inovex.de

exciting projects � great technologies � nice colleagues � cool offices

We have excellent job offers in Karlsruhe, Cologne, Munich and Pforzheim!

Page 9: OpenNebula Conf 2014 | Bootstrapping a virtual infrastructure using OpenNebula from scratch by Arnold Bechtoldt

9

Contact Arnold Bechtoldt IT Engineering & Operations inovex GmbH Office Karlsruhe Ludwig-Erhard-Allee 6 D-76139 Karlsruhe [email protected]

Thank You! Questions?