ImageBuilder

Download Report

Transcript ImageBuilder

The VMware vSphere 5.0 Image Builder
John Balsillie
VCI VCAP4-DCA VCP4 VCP3
Consultant – Explorer IT Services
[email protected]
© 2011 VMware Inc. All rights reserved
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
VMware vSphere: What’s New – Revision A
drivers
8-2
© 2011 VMware Inc. All rights reserved
ESXi Image Deployment
The challenge of using a standard ESXi image is that the image
might be missing desired functionality.
missing
CIM
provider
?
missing
driver
standard
ESXi ISO
missing
vendor
plug-in
• base providers
• base drivers
VMware vSphere: What’s New – Revision A
8-3
© 2011 VMware Inc. All rights reserved
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.
VMware vSphere: What’s New – Revision A
8-4
© 2011 VMware Inc. All rights reserved
Image Builder Architecture
software depot
VIB:
 ESXi software package:
•
image profile
ESXi
VIBs
OEM VIBs
driver
VIBs
security
VIBs
software channels
VMware vSphere: What’s New – Revision A
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
8-5
© 2011 VMware Inc. All rights reserved
Building an ESXi Image: Step 1
Start the vSphere PowerCLI
session.
 Verify that the execution
policy is set to unrestricted.
•

Windows host with
vSphere PowerCLI
and Image Builder snap-in
Cmdlet:
Get-ExecutionPolicy
Image
Connect to your vCenter
Server.
•
Builder
Cmdlet:
Connect-VIServer
VMware vSphere: What’s New – Revision A
8-6
© 2011 VMware Inc. All rights reserved
Building an ESXi Image: Step 2
Connect to a software depot.
 Add a software
depot to Image
Builder.
•

Cmdlet:
Add-EsxSoftwareDepot
software depot
Windows host with
vSphere PowerCLI
and Image Builder
snap-in
Verify that the
software depot can
be read.
•
Image
image
profile
ESXi
VIBs
driver
VIBs
Builder
Cmdlet:
Get-EsxImageProfile
OEM VIBs
VMware vSphere: What’s New – Revision A
8-7
© 2011 VMware Inc. All rights reserved
Building an ESXi Image: Step 3
software depot
Clone and modify an image profile.
 Clone an image profile.
•

Cmdlet:
New-EsxImageProfile
Modify an image profile.
•
Cmdlets:
Windows host with
vSphere PowerCLI
and Image Builder
snap-in
Add-EsxSoftwarePackage
Remove-EsxSoftwarePackage
Image
image
profile
ESXi
VIBs
driver
VIBs
Builder
Start by cloning the default
ESXi image provided by
VMware and then
customize it.
VMware vSphere: What’s New – Revision A
OEM VIBs
8-8
© 2011 VMware Inc. All rights reserved
Using Image Builder to Build an Image: Step 4
software depot
image
profile
ESXi
VIBs
driver
VIBs
Generate a new ESXi image.
 Cmdlet: Export-ESXImageProfile
Windows host with
vSphere PowerCLI
and Image Builder
snap-in
Image
ISO image
Builder
PXE-bootable
Image
OEM VIBs
VMware vSphere: What’s New – Revision A
8-9
© 2011 VMware Inc. All rights reserved
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.
vCenter Server
image
profile
ESXi
VIBs
driver
VIBs
Host Profile
Host Profile
host profile
rules engine
image profile,
host profile,
cluster info
ESXi
host
“waiter”
ESXi
image
TFTP
OEM VIBs
VMware vSphere: What’s New – Revision A
DHCP
Auto Deploy
8-10
© 2011 VMware Inc. All rights reserved
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
VMware vSphere: What’s New – Revision A
8-11
© 2011 VMware Inc. All rights reserved
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
VMware vSphere: What’s New – Revision A
8-12
© 2011 VMware Inc. All rights reserved
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]
VMware vSphere: What’s New – Revision A
8-13
© 2011 VMware Inc. All rights reserved