© 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation...

47
© 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer

Transcript of © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation...

Page 1: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

© 2009 VMware Inc. All rights reserved

Transitioning to ESXi

Spencer Cuffe, Sr. Escalation Engineer

Page 2: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Agenda

2 Confidential

Overview of ESXi

Hardware Monitoring and Systems Management

Upgrading/Migrating to ESXi

Infrastructure Services

Command Line Interfaces

Diagnostics and Troubleshooting

Next Steps

Page 3: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Why ESXi?

Full-featured hypervisor Superior consolidation and scalability

Same performance as VMware ESX architecture

More secure and reliable Small code base thanks to OS-Independent, thin architecture

No Service console means smaller attack footprint

Streamlined deployment and configuration Fewer configuration items making it easier to maintain

consistency

Automation of routine tasks through scripting environmentssuch as vCLI or PowerCLI

Simplified hypervisor Patching and Updating Smaller code base = fewer patches

Eliminates patch drifting due to single image update

The “dual-image” approach lets you revert to prior image if desired

VMware components and third party components can be updated independently

Next generation of VMware’s Hypervisor Architecture

Page 4: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

New and Improved ESX Management

Commands forconfiguration and

diagnostics

Commands forconfiguration and

diagnostics

Management Agents

Hardware Agents

Service Console (COS)

VMware ESXi

CIM API

Agentless vAPI-based

“Classic” VMware ESX

Agentless CIM-based

vCLI, PowerCLI, vMA

vSphere APIInfrastructure

Service Agents Native Agents:hostd, vpxa, NTP, Syslog, SNMP, etc.

Local Support ConsoleRemote Support Console

Page 5: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Agenda

5 Confidential

Overview of ESXi

Hardware Monitoring and Systems Management

Upgrading/Migrating to ESXi

Infrastructure Services

Command Line Interfaces

Diagnostics and Troubleshooting

Next Steps

Page 6: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

WS

-MA

N

Hardware Monitoring with CIM

Common Information Model (CIM)• Agent-less, standards based

monitoring of hardware resources• Output readable by 3rd party

management tools via standard APIs• VMware and Partner CIM

providers for specific hardware devices

Management Server

ManagementClient

Hardware

VMkernel

HardwarePlatformCPU Network StorageMemory

CIM Broker

VMware Providers

Partner Providers

Page 7: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Monitor and Manage Health of Server Hardware with vCenter

New CIM Interface• Detailed hardware health

monitoring• Physical and virtual visibility

on server health• vCenter alarms alert when

hardware failures occur Host hardware fan status Host hardware power status Host hardware system board

status Host hardware temperature

status

New vCenter

Alarms for Hardware

Page 8: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Third Party Hardware Monitoring

• OEMs HW Monitoring through their Management Consoles

Dell Open Manager Server Administrator 6.1HP SIM 5.3.2+

• view server and storage asset data• view server and storage health information• view alert and command logs• configure hardware (e.g. storage, BIOS)

Page 9: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Monitoring of Installed Software Component

In vCenter Server In ESXi 4.1 directly

9

Page 10: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

ESXi OEM Versions

• VMware, Dell, IBM, HP versions available at www.vmware.com/go/get-free-esxi (requires registration)

Page 11: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

BPM for Virtual Servers BPA for Virtual Servers Capacity Mgmt Essentials Atrium Orchestrator Bladelogic Operations

Manager ProactiveNet v7.7 * Client Automation Atrium Discovery &

Dependency Mapping

v7.4 *

CA Virtual

Performance

Manager (VPM) Spectrum Automation

Management Spectrum eHealth Cohesion ARCserve

Smarts ESM v1.1 ADM v6.2 ControlCenter Avamar Networker

ITM for Virtual

Servers v6.1.2 * TPM ITUAM ITLCM Tivoli Storage

Manager

Operations Orchestration VI SPI Client Automation DDM Operations Agent UCMDB SiteScope Performance Agent DataProtector HP Operations

Majority of Systems Management and Back Up Vendors Support ESXi

Page 12: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Agenda

12 Confidential

Overview of ESXi

Hardware Monitoring and Systems Management

Upgrading/Migrating to ESXi

Infrastructure Services

Command Line Interfaces

Diagnostics and Troubleshooting

Next Steps

Page 13: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Information on Migration to ESXi

13 Confidential

http://www.vmware.com/files/pdf/techpaper/VMW-ESXi41-Migration-Guide.pdf

Provides an overview of differences between ESX Classic and ESXi

Provides examples of tasks and how to complete them on ESXi Vs. ESX Classic

Page 14: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Installation methods for ESXi 4.1

Details

• Numerous choices for installation Installer booted from

CD-ROM (default)

Preboot Execution Environment (PXE)

ESXi Installation image on

CD-ROM (default), HTTP/S, FTP, NFS

Script can be stored and accessed

Within the ESXi Installer ramdisk(Default Script)

On the installation CD-ROM

HTTP / HTTPS, FTP, NFS , USB

Config script (“ks.cfg”) can include

Preinstall

Postinstall

First boot

Page 15: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

ESXi 4.1 Installer

15 Confidential

Page 16: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

ESXi 4.1 Installer

16 Confidential

Page 17: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

ESXi 4.1 Installer

17 Confidential

Page 18: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

ESXi 4.1 Installer

18 Confidential

Page 19: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

ESXi 4.1 Installer

19 Confidential

Page 20: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

ESXi 4.1 Installer

20 Confidential

Page 21: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Agenda

21 Confidential

Overview of ESXi

Hardware Monitoring and Systems Management

Upgrading/Migrating to ESXi

Infrastructure Services

Command Line Interfaces

Diagnostics and Troubleshooting

Next Steps

Page 22: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Infrastructure Services for Production Environments

Function ESX ESXi

Time synchronization

NTP agent in COS Built-in NTP service

Centralized log collection

Syslog agent in COS Built-in Syslog service

SNMP monitoring SNMP agent in COS Built-in SNMP service

Persistent Logging Filesystem of the COS Log to files on datastore

Local access authentication

AD agent in COS, Built-in Active Directory service

Built-in Active Directory service

Large-Scale Deployment

Boot from SAN, PXE Install, Kickstart

Boot from SAN, PXE Install, Scripted Installation

New in vSphere 4.1

Page 23: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

New Feature: Boot from SAN

Details

• Fully supported in ESXi 4.1 Only experimentally supported in ESXi 4.0

• Boot from SAN supported for FC, iSCSI, and FCoE

• ESX and ESXi have different requirement:

iBFT (Boot Firmware Table) required

• The host must have an iSCSI boot capable NIC that supports the iSCSI iBFT format.

• iBFT is a method of communicating parameters about the iSCSI boot device to an OS

Page 24: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Agenda

24 Confidential

Overview of ESXi

Hardware Monitoring and Systems Management

Upgrading/Migrating to ESXi

Infrastructure Services

Command Line Interfaces

Diagnostics and Troubleshooting

Next Steps

Page 25: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

vCLI and PowerCLI: primary scripting interfaces

vCLI and PowerCLI built on same API as vSphere Client

• Same authentication (e.g. Active Directory), roles and privileges, event logging

• API is secure, optimized for remote environments, firewall-friendly, standards-based

vSphere Web Service API

vSphere SDK

Otherlanguages

vCLI Other utility

scripts

vSphere Client

vSpherePowerCLI

Page 26: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

New Feature: Additional vCLI commands

Storage Configuration

• esxcli swiscsi session: Manage iSCSI sessions

• esxcli swiscsi nic: Manage iSCSI NICs

• esxcli swiscsi vmknic: List VMkernel NICs available for binding to particular iSCSI adapter

• esxcli swiscsi vmnic: List available uplink adapters for use with a specified iSCSI adapter

• esxcli vaai device: Display information about devices claimed by the VMware VAAI (vStorage APIs for Array Integration) Filter Plugin.

• esxcli corestorage device: List devices or plugins. Used in conjunction with hardware acceleration.

Host Operations

• vicfg-hostops: Perform operations on ESX/ESXi hosts: enter/exit maintenance mode shutdown/reboot host

Page 27: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Agenda

27 Confidential

Overview of ESXi

Hardware Monitoring and Systems Management

Upgrading/Migrating to ESXi

Infrastructure Services

Command Line Interfaces

Diagnostics and Troubleshooting

Next Steps

Page 28: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Diagnostics and Troubleshooting

ESXi Troubleshooting Options

• vCLI commands

• DCUI-based troubleshooting

• Browser-based troubleshooting

• Tech Support Mode

Confidential28

Page 29: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Diagnostic Commands for ESXi: vCLI

Familiar set of ‘esxcfg-*’ commands available in vCLI

• Names mapped to ‘vicfg-*’

• Also includes vmkfstools vmware-cmd resxtop esxcli: suite of diagnostic tools

Page 30: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

New Feature: Additional vCLI troubleshooting commands

Network

• esxcli network: List active connections or list active ARP table entries.

Storage

• NFS statistics available in resxtop

VM

• esxcli vms vm kill: Forcibly stop VMs that do not respond to normal stop operations, by using kill commands. # esxcli vms vm kill --type <kill_type> --world-id <ID>

• NOTE: designed to kill VMs in a reliable way (not dependent upon well-behaving system)

• Eliminates one of the most common reasons for wanting to use COS.

Page 31: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

DCUI-based Troubleshooting

Menu item to restart all management agents, including

Hostd

vpxa

Menu item to reset all configuration settings

Fix a misconfigured vNetwork Distributed Switch

Reset all configurations

Page 32: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Browser-based access of config files

https://<hostname>/host

Page 33: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Browser-based access of log files

https://<hostname>/host/messages

Page 34: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Browser-based access of datastore files

https://<hostname>/folder

Disk Descriptor

Page 35: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

New Feature: Full Support of Tech Support Mode

Two ways to access

• Local: on console of host (press “Alt-F1”)

• Remote: via SSH

Page 36: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

New Feature: Full Support of Tech Support Mode

• Toggle on DCUI Disable/Enable Both Local and Remote

• Optional timeout automatically disables TSM (local and remote) Running sessions are

not terminated. New sessions are

rejected

• All commands issued in Tech Support Mode are sent to syslog

Page 37: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

New Feature: Full Support of Tech Support Mode

37

Can also enable in vCenter Server and Host Profiles

Page 38: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

New Feature: Full Support of Tech Support Mode

Recommended uses

• Support, troubleshooting, and break-fix

• Scripted deployment preinstall, postinstall, and first boot scripts

Discouraged uses

• Any other scripts

• Running commands/scripts periodically (cron jobs)

• Leaving open for routine access or permanent SSH connection

Admin will benotified when active

Page 39: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

New Feature: Additional commands in Tech Support Mode

Additional commands for troubleshooting

• vscsiStat

• nc (netcat)

• tcpdump-uw

Page 40: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

TSM: Advanced troubleshooting

DCUI: misconfigs / restart mgmt agents

Summary of ESXi Diagnostics and Troubleshooting

ESXiAPI Access

Browser vCLI

vSphere APIs

• During normal operations: • If things go wrong:

Direct Access

Page 41: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

New Feature: Total Lockdown

Ability to totally control local access via vCenter Server

• Lockdown Mode (prevents all access except root on DCUI)

• DCUI – can additionally disable

• If both configured, then no local activity possible (except pull the plugs)

41

Access Mode Normal Lockdown

vSphere API (e.g., vSphere Client, PowerCLI, vCLI, etc)

Any user, based on local roles/privileges

None (except vCenter vpxuser)

CIM Any user, based on local role/privilege

None (except via vCenter ticket)

DCUI Root and users with Admin privileges

Root only

Tech Support Mode (Local) Root and users with Admin privileges

None

Tech Support Mode (Remote) Root and users with Admin privileges

None

Page 42: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Agenda

42 Confidential

Overview of ESXi

Hardware Monitoring and Systems Management

Upgrading/Migrating to ESXi

Infrastructure Services

Command Line Interfaces

Diagnostics and Troubleshooting

Next Steps

Page 43: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Summary of new ESXi features in vSphere 4.1

Capability ESX i 4.0 ESX i 4.1 ESX 4.1

Admin/config CLIs PowerCLI + vCLI PowerCLI + vCLI COS + vCLI + PowerCLI

Advanced troubleshooting

Tech Support Mode (restricted) Tech Support Mode COS

Scripted installation Not supported Supported Supported

Boot from SAN Not supported Supported Supported

SNMP Supported (limited) Supported (limited) Supported

Active Directory Not supported Integrated Integrated

HW monitoring CIM providers CIM providers 3rd party agents in COS

Jumbo frames Supported Supported Supported

Serial port host management

Not supported Not supported Supported

Web Access Not supported Not supported Not Supported

Total Lockdown Not available Supported Not available

Page 44: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Planning the transition

Start Testing ESXi

• All the functionality of vSphere is supported on both ESX and ESXi architectures

Familiarize Yourself with Remote Command Lines

• vCLI and PowerCLI can also be used to manage ESX hosts

• Start using them even before you fully migrate to the ESXi architecture

Ensure Your Backup and Systems Management Products Integrate with ESXi.

• If you are using an agent-based partner solution to integrate with vSphere, please check with

your vendor to see if a newer version of the product supports the ESXi architecture

Plan an ESXi Migration as Part of Your vSphere Upgrade

• During the upgrade process, prior versions of VMware ESX can be replaced with the latest

version of VMware ESXi.

• Testing of ESXi architecture can be incorporated into overall vSphere testing

Page 45: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

We Are Converging on the ESXi Architecture

• VMware will converge on the ESXi architecture in mid 2011.

• End-of-Sale ≠ End of Support: ESX 4.0 (with Service Console) will be supported at least through May 2014 according to the VMware vSphere Support Life Cycle (HW enablement is limited to first 2 years):

987654321

General Extended

General Extended

General Availability

1st Minor Rel.

Years After Release

Please Look up the Details on vmware.com

Page 46: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

Questions?

46 Confidential

Page 47: © 2009 VMware Inc. All rights reserved Transitioning to ESXi Spencer Cuffe, Sr. Escalation Engineer.

© 2009 VMware Inc. All rights reserved

Thank You

Spencer Cuffe

[email protected]