The VMware vSphere 5.0 Image Builder

13
© 2011 VMware Inc. All rights reserved The VMware vSphere 5.0 Image Builder John Balsillie VCI VCAP4-DCA VCP4 VCP3 Consultant – Explorer IT Services [email protected]

description

The VMware vSphere 5.0 Image Builder. John Balsillie VCI VCAP4-DCA VCP4 VCP3 Consultant – Explorer IT Services [email protected]. What Is an ESXi Image?. An ESXi image is a software bundle that consists of four main components. core hypervisor. CIM providers. plug-in components. - PowerPoint PPT Presentation

Transcript of The VMware vSphere 5.0 Image Builder

Page 1: The VMware  vSphere  5.0 Image Builder

© 2011 VMware Inc. All rights reserved

The VMware vSphere 5.0 Image Builder

John BalsillieVCI VCAP4-DCA VCP4 VCP3

Consultant – Explorer IT [email protected]

Page 2: The VMware  vSphere  5.0 Image Builder

8-2

© 2011 VMware Inc. All rights reserved

VMware vSphere: What’s New – Revision A

What Is an ESXi Image?

corehypervisor

CIMproviders

plug-incomponents drivers

An ESXi image is a software bundle that consists of four main components.

Page 3: The VMware  vSphere  5.0 Image Builder

8-3

© 2011 VMware Inc. All rights reserved

VMware vSphere: What’s New – Revision A

ESXi Image Deployment

?standardESXi ISO

• base providers• base drivers

missing CIM

provider

missing driver

missing vendorplug-in

The challenge of using a standard ESXi image is that the image might be missing desired functionality.

Page 4: The VMware  vSphere  5.0 Image Builder

8-4

© 2011 VMware Inc. All rights reserved

VMware vSphere: What’s New – Revision A

What Is Image Builder?

Image Builder is a set of command-line utilities that are used to create and manage image profiles. An image profile is a group of VIBs that are used to create an ESXi

image.Image Builder allows the administrator to build customized ESXi boot images: Used for booting disk-based ESXi installations Used by VMware vSphere® Auto Deploy to boot an ESXi host in

memory

Image Builder is based on VMware vSphere® PowerCLI. The Image Builder cmdlets are included with the vSphere PowerCLI

tools.

Page 5: The VMware  vSphere  5.0 Image Builder

8-5

© 2011 VMware Inc. All rights reserved

VMware vSphere: What’s New – Revision A

image profile

Image Builder Architecture

software depot

OEM VIBs

ESXiVIBs

driverVIBs

VIB: ESXi software package:

• Provided by VMware and its partners

Image profile: Defines an ESXi image Consists of one or more VIBs

Software depot: Logical grouping of VIBs and

image profiles Can be online or offline

Software channel: Used to group different types of

VIBs at a software depot

securityVIBs

software channels

Page 6: The VMware  vSphere  5.0 Image Builder

8-6

© 2011 VMware Inc. All rights reserved

VMware vSphere: What’s New – Revision A

Building an ESXi Image: Step 1

Windows host with vSphere PowerCLI

and Image Builder snap-in

Image Builder

Start the vSphere PowerCLI session. Verify that the execution

policy is set to unrestricted.• Cmdlet:

Get-ExecutionPolicy Connect to your vCenter

Server.• Cmdlet:

Connect-VIServer

Page 7: The VMware  vSphere  5.0 Image Builder

8-7

© 2011 VMware Inc. All rights reserved

VMware vSphere: What’s New – Revision A

Building an ESXi Image: Step 2

software depot

OEM VIBs

ESXiVIBs

imageprofile

driverVIBs

Windows host with vSphere PowerCLIand Image Builder

snap-in

Image Builder

Connect to a software depot. Add a software

depot to ImageBuilder.• Cmdlet:

Add-EsxSoftwareDepot Verify that the

software depot canbe read.• Cmdlet:

Get-EsxImageProfile

Page 8: The VMware  vSphere  5.0 Image Builder

8-8

© 2011 VMware Inc. All rights reserved

VMware vSphere: What’s New – Revision A

Building an ESXi Image: Step 3

software depot

OEM VIBs

ESXiVIBs

imageprofile

driverVIBs

Windows host with vSphere PowerCLIand Image Builder

snap-in

Image Builder

Clone and modify an image profile. Clone an image profile.

• Cmdlet: New-EsxImageProfile

Modify an image profile.• Cmdlets:

Add-EsxSoftwarePackageRemove-EsxSoftwarePackage

Start by cloning the default ESXi image provided by

VMware and then customize it.

Page 9: The VMware  vSphere  5.0 Image Builder

8-9

© 2011 VMware Inc. All rights reserved

VMware vSphere: What’s New – Revision A

Windows host with vSphere PowerCLIand Image Builder

snap-in

Using Image Builder to Build an Image: Step 4

ISO image

PXE-bootableImage

software depot

OEM VIBs

ESXiVIBs

imageprofile

driverVIBs

Generate a new ESXi image. Cmdlet: Export-ESXImageProfile

Image Builder

Page 10: The VMware  vSphere  5.0 Image Builder

8-10

© 2011 VMware Inc. All rights reserved

VMware vSphere: What’s New – Revision A

vCenter Server

Host ProfileHost Profilehost profile

“waiter”

rules engine

ESXiimage

Auto Deploy

image profile,host profile,cluster info

Boot of an Autodeployed ESXi Host: Step 3

The ESXi image is downloaded from the Auto Deploy server to the host. The host profile is downloaded from vCenter Server to the host.

ESXihost

TFTP DHCP

ESXi image

(VIBs)

OEM VIBs

ESXiVIBs

driverVIBs

imageprofile

Page 11: The VMware  vSphere  5.0 Image Builder

8-11

© 2011 VMware Inc. All rights reserved

VMware vSphere: What’s New – Revision A

Demo

Demo

• VMware Workstation on Windows• 1 x vCenter 5.0 virtual machine with:

• vSphere Client • PowerCLI• Auto Deploy and thus Image Builder

• 2 x ESXi 5.0 virtual machines

Page 12: The VMware  vSphere  5.0 Image Builder

8-12

© 2011 VMware Inc. All rights reserved

VMware vSphere: What’s New – Revision A

Demo

Demo Scriptget-executionpolicyset-executionpolicy unrestrictedget-executionpolicyconnect-viserver vc01.vclass.local or vc02.vclass.local

add-esxsoftwaredepot c:\depot\LSI_5_34-455140\LSI_5_34-offline_bundle-455140.zipget-esxsoftwarepackage

add-esxsoftwaredepot c:\depot\BCD-bna-3.0.0.0-00000-465579\BCD-bna-3.0.0.0-00000-offline_bundle-465579.zipget-esxsoftwarepackageadd-esxsoftwaredepot c:\depot\labdepotget-esxsoftwarepackageget-esximageprofilenew-esximageprofile -cloneprofile ESXi-5.0.0-441354-standard -name "my_profile"

get-esximageprofileadd-esxsoftwarepackage -imageprofile "my_profile" -softwarepackage scsi-megaraid-sas

add-esxsoftwarepackage -imageprofile "my_profile" -softwarepackage net-bnaexport-esximageprofile -imageprofile "my_profile" -filepath c:\depot\esxi5.0.0-my_profile-469512.iso -exporttoiso –force

• Install ESXi into a vm from c:\depot\esxi5.0.0-my_profile-469512.iso

Page 13: The VMware  vSphere  5.0 Image Builder

8-13

© 2011 VMware Inc. All rights reserved

VMware vSphere: What’s New – Revision A

Key Points

Image Builder allows the administrator to create customized ESXi boot images.

Auto Deploy is a new method for deploying ESXi hosts, where the ESXi host’s state and configuration run entirely in memory.

Questions?

John BalsillieExplorer IT Services

[email protected]