Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

41

Transcript of Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Page 1: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.
Page 2: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Troubleshooting Virtual Machine Manager 2012 SP1John MessecProgram Manager

Kurt SchererProgram Manager

Amit VirmaniSoftware Design Engineer

Madhu JujareSoftware Design Engineer

Page 3: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Session Objectives and TakeawaysOverview of VMM Distributed ArchitectureSetting Up Tracing and LoggingGeneral Troubleshooting TipsTroubleshooting:• Host Communication Issues• Storage• Software-Defined Networks

Where To Go For More Information and Help

Page 4: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Tools and Tips

Page 5: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

General Troubleshooting and Common Issues• Ensure all updates are installed• Application and System Event logs on involved

systems• Ensure servers can communicate• Installation logs• Incorrect RunAs Accounts

• E.g. – Provisioning storage, RunAs account must be local administrator on a Windows-based file server

Page 6: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Microsoft Baseline Configuration Analyzer 2.0

Page 7: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

ETW Tracing – Capture a TraceTracing With Just The Tools On Box!Logman.exe

• Discover ETW Providers (things for which you can collect traces)

• Create a data collector for VMM

• Start and stop the collector

C:\Logman.exe query providers

C:\Logman.exe create trace MyVMMTrace –o trace.etl -p Microsoft-VirtualMachineManager-Debug

C:\Logman.exe start MyVMMTraceC:\Logman.exe stop MyVMMTrace

Page 8: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

ETW Tracing – Reading The Logs• Trace logs are in a binary format, not human-readable• Another on-the-box tool

• Creates human-readable trace file from the .etl file

C:\Netsh trace convert trace.etl

Page 9: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Demo: Grabbing traces with LogMan and NetShJohn Messec

Page 10: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Multi-Service, Multi-Machine Tracing

MPS Reporting Tool• GUI Interface,

allows trace collection from many machines

• Creates zipped archive of .etl traces to send to support

Page 11: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Analyzing VMM TracesConvert from binary .etl to human-readable using Netsh or TraceViewer.exe

Log is chronological top-to-bottomWork upwards from the bottom to identify issuesSearch for error code of issue if availableTraces are asynchronous; other traces may be mixed in with the error traces

Page 12: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Demo: Multi-Machine Tracing and MPS Reporting ToolJohn Messec

Page 13: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

General Troubleshooting Tips• Try repro’ing in Powershell• Does the issue repro independent of VMM (e.g.

directly in Hyper-V)• Dig In To Jobs View to pinpoint the exact step• Look at trace logs (bottom up)• Configure circular 1GB logs for hard-to-reproduce

issues

Page 14: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Troubleshooting VMM Agent Communications

Page 15: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

VMM Deployment OverviewVMM Server

VMM Client

VMM Library

Hyper-V Host

Host Agent

VM

Library Agent

Library Share

Guest Agent

Powershell

WCF

SQL Server

AD

O.N

et

WinRM

WinRMVMM Engine

BITS

Page 16: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Common Issues• WinRM

• WinRM enabled on all systems?• Firewall/proxy letting communication through?• Ports configured correctly?• Permissions?

• Adding Hosts• Ensure credentials used are in local

Administrators group• Ensure Admin$ share is accessible from VMM

Server

• Domain Group Policy Conflict• CredSSP – disabled by Group Policy

Page 17: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Demo: Troubleshooting Agent CommunicationsJohn Messec

Page 18: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Troubleshooting Storage

Page 19: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Evolving Storage Management

VM migration automation using NPIV automation or VDS HW providers

VMM 2007 VMM 2008VMM 2008 R2 SP1

SMI-S based discovery, management and automation of block storage

VMM 2012

Discovery, management and automation of block and file storage using Windows Server 2012

VMM 2012 SP1

Page 20: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Private Cloud Storage Management

Allocation and Assignment

Standards Based Management

VM, Host, and Cluster Storage Management

Extensive SAN and NAS Support

Scalable Provisioning

Storage Monitoring

Array Onboarding

Storage Classification

Rapid ProvisioningBlock and File

Storage Management End to End

Mapping

Insight Flexibility Automation

SAN Migration

Page 21: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

VMM Server

Discovery of portals and targetsLog on & log off

  

FC Array / ISCSI Target

LUN LUN LUN LUNSAN admin tool 

Host

HostSMAPI/

VDSHBA WMI API

Cluster WMI

MS iSCSI initiator

HostHost

Host

FC/SAS HBA DiscoveryPort to LUN mappings

• Cluster storage discovery• Add/remove cluster disk

resource• Convert to CSV

SC 2012 SP1 VMM – Storage Architecture

SMI-S/SMP Provider  

• Enumerate/Rescan• Create

Partition/Format• Mount/UnMount• Volume to Disk

mapping• Disk to LUN mapping

Storage Management Service

Storage Management ServiceDiscovery of Array, Pool and LUNS

LUN create, snapshot, cloneMask and Unmask SMAPI

Page 22: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Windows Server 2012 – Storage Management API

Management

Applications

Storage Managemen

t APIs

Windows Storage Management API (Windows PowerShell and WMI)

Pass-through API for extensibility (WMI)

Storage Array

Storage Management Provider Interface

Non-Microsoft management application

System Center 2012 SP1 - VMM

File Server Manager(File and Storage Services role)

Vendor-provided SMI-S provider (CIMXML or WMI)

Storage Array

Vendor-provided transport and/or protocol

SMP: Windows Standards Based Storage

Management Service

SMP: Vendor-provided WMI-based provider

SMP: Storage Spaces (no pass-through API support)

Page 23: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

SM I-S SAN/NAS Proxy

Provider

SM I-S SANw/ Embedded

Provider

SM I-S NASProxy Provider

WindowsScale-out File Server

SM API

WMI

SM P:SM I-S

StorageService

SM PPartner Provider

SM P:Spaces

WSMAN/WinRM

WSMan/WinRM

Hyper-VStandalone Hyper-V

Cluster

NAS Device

SAN/NAS Device

CIMXML/WMI

CIMXMLCIMXML

SAN Device

Proprietary

Proprietary Proprietary

VMM Server

WSMan/WinRM

SM I-S SAN Proxy

Provider

SANDevice

Proprietary

FC/iSCSI

(some providersrequire this

CIMXMLWMI

VMVM

Library Server

WSMan/WinRM

Page 24: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Troubleshooting Storage: Trace collection

• VMM Server• VMM logs• Traces high level API calls issued from VMM. This could be SMAPI, Host SMAPI, Cluster WMI,

FC HBA API, ISCSI API etc. for each work flow.• SMAPI / Storage WMI logs• Traces provider specific api’s issued for each SMAPI request. For SMI provider you will see

SMI-S calls. • CIM-XML logs• Traces each CIM-XML request/response from storage service to SMI provider and vice versa.

http://blogs.technet.com/b/hectorl/archive/2011/12/08/scvmm-2012-collecting-storage-related-traces.aspx

• Host/Cluster• VMM Agent logs• Host SMAPI logs• VDS logs• Cluster WMI and Cluster logs• MS ISCSI Initiator logs• HBA API logs

Page 25: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Demo: Troubleshooting StorageAmit Virmani

Page 26: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

TroubleshootingSoftware-Defined Networks

Page 27: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Logical Networks• Make network virtualization possible between hosts• Bridge between physical to virtual• Definition of network sites

• VLANs, IP subnets, mappings – assumption of connectivity• Allocate host groups

• Allowing VMs to use network virtualization• IP Pools

• Required for network virtualization• Provider Address (PA)

Page 28: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Logical Switches• Consists of port profiles• Span multiple hosts• Capability definitions for host NICs• Cannot create without Uplink and vNIC Port Profiles

• Can be created during switch creation

Page 29: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Native Port Profile• Uplink Port Profiles:

• Host NIC configurations• Configure Teaming and Load Balancing• Assign logical networks• Hosts must support networks to assign switch to host

• vNIC Port Profiles:• vNIC configurations• Combination of security settings, bandwidth limits, and performance settings• Bandwidth settings not used with SR-IOV• Defaults available

• Group profiles with classifications

Page 30: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

VM Network• Not a fabric component• No isolation – Pre-SP1

• VMs directly connect to logical network

• Isolation• VMs have their own address space• No external connection by default

Page 31: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Connectivity of VM Networks• Requires gateway device• ‘No connectivity’ during creation unless gateway

devices exist• IP pools

• Subnet was defined during creation• Ranges can be divided into pools• One address is reserved for virtual switch

Page 32: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

ArchitectureVM

VM Network

Logical network

Logical Switch(Hyper-V Host)

VM Network

Logical Switch(Hyper-V Host)

VM VM VM

Physical network

vNIC Port Profile

Network Virtualization / Gateway

Network Site Definition

Uplink Port Profile

Page 33: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Cloud Deployment• VM must be connected to a VM network• VM network must be connected to Logical network• Logical network must be associated with the cloud

Page 34: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Demo: Software-Defined NetworksKurt Scherer

Page 35: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

SummaryOverview of VMM Distributed ArchitectureSetting Up Tracing and LoggingGeneral Troubleshooting TipsTroubleshooting:• Host Communication Issues• Storage• Software-Defined Networks

Page 36: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Evaluation

Complete your session evaluations today and enter to win prizes daily. Provide your feedback at a CommNet kiosk or log on at www.2013mms.com.Upon submission you will receive instant notification if you have won a prize. Prize pickup is at the Information Desk located in Attendee Services in the Mandalay Bay Foyer. Entry details can be found on the MMS website.

We want to hear from you!

Page 37: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Resources

http://channel9.msdn.com/Events

Access MMS Online to view session recordings after the event.

Page 39: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Related Sessions

SD-B201 Implementing Common Scenarios in VMM: Services and Service

Templates

IM-B203 Building UI Add–Ins For System Center 2012 SP1 Virtual Machine

Manager

IM-B308 System Center 2012 SP1 Virtual Machine Manager: Managing

Large Datacenters

IM-B310 Troubleshooting Common System Center 2012 SP1 Virtual Machine

Manager Issues

WS-B312 How to Design and Configure Networking in VMM and HyperV

(Part 1 of 2)

WS-B313 How to Design and Configure Networking in VMM and HyperV

(Part 2 of 2)

WS-B314 Implementing Common Storage Scenarios in Windows Server

2012 with SCVMM

WS-B327 Software Defined Networking with WS2012, SC2012 SP1 and

Partner Solutions

Page 40: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

Appendix

Page 41: Amit Virmani Software Design Engineer Madhu Jujare Software Design Engineer.

© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.