© 2011 vmware inc. all rights reserved the vmware vsphere 5.0 image builder john balsillie vci...

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]

Upload: rita-blamer

Post on 28-Mar-2015

214 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: © 2011 VMware Inc. All rights reserved The VMware vSphere 5.0 Image Builder John Balsillie VCI VCAP4-DCA VCP4 VCP3 Consultant – Explorer IT Services jbalsillie@explorerIT.com

© 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]

Page 2: © 2011 VMware Inc. All rights reserved The VMware vSphere 5.0 Image Builder John Balsillie VCI VCAP4-DCA VCP4 VCP3 Consultant – Explorer IT Services jbalsillie@explorerIT.com

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: © 2011 VMware Inc. All rights reserved The VMware vSphere 5.0 Image Builder John Balsillie VCI VCAP4-DCA VCP4 VCP3 Consultant – Explorer IT Services jbalsillie@explorerIT.com

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: © 2011 VMware Inc. All rights reserved The VMware vSphere 5.0 Image Builder John Balsillie VCI VCAP4-DCA VCP4 VCP3 Consultant – Explorer IT Services jbalsillie@explorerIT.com

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: © 2011 VMware Inc. All rights reserved The VMware vSphere 5.0 Image Builder John Balsillie VCI VCAP4-DCA VCP4 VCP3 Consultant – Explorer IT Services jbalsillie@explorerIT.com

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: © 2011 VMware Inc. All rights reserved The VMware vSphere 5.0 Image Builder John Balsillie VCI VCAP4-DCA VCP4 VCP3 Consultant – Explorer IT Services jbalsillie@explorerIT.com

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: © 2011 VMware Inc. All rights reserved The VMware vSphere 5.0 Image Builder John Balsillie VCI VCAP4-DCA VCP4 VCP3 Consultant – Explorer IT Services jbalsillie@explorerIT.com

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 softwaredepot to ImageBuilder.

• Cmdlet: Add-EsxSoftwareDepot

Verify that thesoftware depot canbe read.

• Cmdlet: Get-EsxImageProfile

Page 8: © 2011 VMware Inc. All rights reserved The VMware vSphere 5.0 Image Builder John Balsillie VCI VCAP4-DCA VCP4 VCP3 Consultant – Explorer IT Services jbalsillie@explorerIT.com

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: © 2011 VMware Inc. All rights reserved The VMware vSphere 5.0 Image Builder John Balsillie VCI VCAP4-DCA VCP4 VCP3 Consultant – Explorer IT Services jbalsillie@explorerIT.com

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: © 2011 VMware Inc. All rights reserved The VMware vSphere 5.0 Image Builder John Balsillie VCI VCAP4-DCA VCP4 VCP3 Consultant – Explorer IT Services jbalsillie@explorerIT.com

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: © 2011 VMware Inc. All rights reserved The VMware vSphere 5.0 Image Builder John Balsillie VCI VCAP4-DCA VCP4 VCP3 Consultant – Explorer IT Services jbalsillie@explorerIT.com

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: © 2011 VMware Inc. All rights reserved The VMware vSphere 5.0 Image Builder John Balsillie VCI VCAP4-DCA VCP4 VCP3 Consultant – Explorer IT Services jbalsillie@explorerIT.com

8-12

© 2011 VMware Inc. All rights reserved

VMware vSphere: What’s New – Revision A

Demo

Demo Script

get-executionpolicy

set-executionpolicy unrestricted

get-executionpolicy

connect-viserver vc01.vclass.local or vc02.vclass.local

add-esxsoftwaredepot c:\depot\LSI_5_34-455140\LSI_5_34-offline_bundle-455140.zip

get-esxsoftwarepackage

add-esxsoftwaredepot c:\depot\BCD-bna-3.0.0.0-00000-465579\BCD-bna-3.0.0.0-00000-offline_bundle-465579.zip

get-esxsoftwarepackage

add-esxsoftwaredepot c:\depot\labdepot

get-esxsoftwarepackage

get-esximageprofile

new-esximageprofile -cloneprofile ESXi-5.0.0-441354-standard -name "my_profile"

get-esximageprofile

add-esxsoftwarepackage -imageprofile "my_profile" -softwarepackage scsi-megaraid-sas

add-esxsoftwarepackage -imageprofile "my_profile" -softwarepackage net-bna

export-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: © 2011 VMware Inc. All rights reserved The VMware vSphere 5.0 Image Builder John Balsillie VCI VCAP4-DCA VCP4 VCP3 Consultant – Explorer IT Services jbalsillie@explorerIT.com

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 Balsillie

Explorer IT Services

[email protected]