0-day deployment (UKVMUG)

24
UK VMUG 0-DAY DEPLOYMENT

description

This session was given at the UKVMUG, in November 2013. What happens when you don't have a virtual infrastructure in place - and you need to deploy everything from scratch? In this session I explained the issues that need to be addressed in such a situation.

Transcript of 0-day deployment (UKVMUG)

Page 1: 0-day deployment (UKVMUG)

UK VMUG

0-DAY DEPLOYMENT

Page 2: 0-day deployment (UKVMUG)

A little about myself

• Maish Saidel-Keesing - @maishsk

• Blogger – Technodrone (http://technodrone.blogspot.com)

• Platform Architect – Cisco, Israel

• Co-Author of VMware vSphere Design

• vExpert, VCAP5-DCD/DCA blah blah blah …..

Page 3: 0-day deployment (UKVMUG)

We will cover…

• The problem …

• The Journey …

• Why was it so difficult?

• Tools of the trade …

Page 4: 0-day deployment (UKVMUG)

Things you won’t get (Today)

• An End-to-End Solution

• Code Samples (unless they are already public).

• The pot at the end of the rainbow.

Page 5: 0-day deployment (UKVMUG)

The Typical Datacenter #1

• Mine is better

Page 6: 0-day deployment (UKVMUG)

• What do they all have in common?

• Existing Infrastructure

•Storage

•Network

•Virtual Infrastructure

The Typical Datacenter #2

Page 7: 0-day deployment (UKVMUG)

Docklandsboy (flickr)

What if that wasn’t the case?

And all you had

was this ??

VMware vCenter Server

ManageManage

VMware vSphere VMware vSphere VMware vSphere

Page 8: 0-day deployment (UKVMUG)

First THE PROBLEM…..• Install Hardware

• Servers

• Network

• Storage

• Virtualization Stack

• Operating Systems

• Applications

Page 9: 0-day deployment (UKVMUG)

……

• ~0 margin for error

• Easy to implement in the field

• Rinse and repeat (100’s of times)

Page 10: 0-day deployment (UKVMUG)

This is what we got.

Page 11: 0-day deployment (UKVMUG)

What is a must for Automation?

Halans (flickr)

Page 12: 0-day deployment (UKVMUG)

What comes first?

Jasonunbound (flickr)

Page 13: 0-day deployment (UKVMUG)

Uplink Switches and FI’s

Page 14: 0-day deployment (UKVMUG)

UCS configuration

• Houston we have an API!

• Cisco UCS and VMware Integration(http://bit.ly/1bFIDdT)

Page 15: 0-day deployment (UKVMUG)

Hypervisor

• Kickstart

• USB Key

• Deployment appliance (Razor)

Power On Server

Boot from CDROM/PXE

ESXi Kickstart installation

EngineerEngineer

Provide Kickstart File

Page 16: 0-day deployment (UKVMUG)

Static IP’s + Hostnames

• External CSV file

• Plant the hostnameafter kickstart in the host

• Set static IP

Page 17: 0-day deployment (UKVMUG)

EngineerEngineer

vSphere ClientDeploy vCenter and vCenterDB

Images

EngineerEngineer

vSphere ClientConfigure IP vCenter VM

vSphere ClientConfigure IP

vCenterDB VM

Setup VMware environment

EngineerEngineer

Powershell

Deploy vCenter

• 2 predefined OVF’s

• vCenter (http://bit.ly/18Osy1l)

• Oracle Database

• No VCSA

• External Oracle DB

• Was not production ready until vSphere 5.5

Page 18: 0-day deployment (UKVMUG)

How to connect the ESXi hosts to vCenter?

• vCenter deployment script

• PS:\> PowerCLI

• Kickstart

• Puppet vCenter Module

Page 19: 0-day deployment (UKVMUG)

Dude where’s my Storage?

• Standard Arrays (NetApp/EMC)

• Predefined scripts for configuration

• IP’s

• LUNs / Volumes / NFS

Page 20: 0-day deployment (UKVMUG)

aarongilson (flickr)

The VM’s ….

• Clone / Deploy ?

• Razor – handoff to Puppet Broker

(Nickapedia)

Page 21: 0-day deployment (UKVMUG)

Deploy Applications

• Tags were already there (Razor)

• Active / Passive Nodes

• Puppet Modules

Page 22: 0-day deployment (UKVMUG)

Tools

• How To Deal With a Complex Project – (http://bit.ly/1hWoy8t)

• PowerShell/bash/Python/…

• Razor

• Puppet

Page 23: 0-day deployment (UKVMUG)

Looking forward

•Handling the Workflow

•Wrapping this in a normal interface

Page 24: 0-day deployment (UKVMUG)

• Questions???