41
Provisioning Services Stream Process Architecture and Advanced Troubleshooting Concepts Keith McLaughlin Lead Escalation Engineer May 11 th 2010

Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

Embed Size (px)

Citation preview

Page 1: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

Provisioning Services Stream Process Architecture and Advanced Troubleshooting ConceptsKeith McLaughlin Lead Escalation EngineerMay 11th 2010

Page 2: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

• PVS Architecture Overview

• Stream Process Architecture

• Authentication Architecture

• Stream Process Troubleshooting

Citrix Confidential - Do Not Distribute

Agenda

Page 3: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

Network Storage

Provisioning Services

Target Device 3

Target Device 1

Target Device 2

Workloads

A

B

What is Provisioning Services?

Page 4: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

Network Storage

Provisioning Services

Target Device 3

Target Device 1

Target Device 2

Workloads

A

B

PXE Booting a Provisioning Services TargetDHCP Server

PXETFTP

BOOT

BOOT

BOOTDHCP Discover

DHCP Discover

DHCP Discover

IP InfoIP InfoIP Info

PXE InfoPXE InfoPXE InfoBootstrapBootstrapBootstrap

Page 5: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

Login Process

1.1.1.1

1.1.1.2

1.1.1.3

Streaming from 1.1.1.4 Bootstrap1.1.1.2

1.1.1.1

Login Process

Request for vDisk3

PVS Target Device

StreamServer

1.1.1.3:vDisk3

Page 6: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

Stream ServiceStream Service

Stream Service and the Stream Process

Citrix Confidential - Do Not Distribute

Stream ProcessStream Process

Page 7: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

Stream Process Responsibilities

Citrix Confidential - Do Not Distribute

Stream ServiceStream Service

StreamDB

StreamDB

SQL Database

Target DevicevDisk Location

Login

MacAuthentication

I/O Request

Stream ProcessStream Process

Page 8: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

• Interacts with SQL Database

• Manages the target device login process

• Streams I/O

• Manages Server Side Write Cache

• Client and Server Side Logging

• Reads the vDisk pvp – Sidecar file

Citrix Confidential - Do Not Distribute

Stream Process Responsibilites

Page 9: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

• Class and type of vDisk

• Active Directory Support on/off switch

• Disk mode (Standard/Private/Differential Disk)

Citrix Confidential - Do Not Distribute

Vdiskname.pvp (Side Car File)

Page 10: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

Stream Process

Citrix Confidential - Do Not Distribute

Stream ServiceStream Service

Stream ProcessStream

Process

Manager

Manager

StreamDB

StreamDB

SQL Database

Streamed ImagevDisk Location

Page 11: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

PVS Console connected locally to the PVS Server

Citrix Confidential - Do Not Distribute

MAPIMAPI SoapServerSoap

Server

PVS Console

Manager

Manager

MCLI

ADAD

Page 12: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

PVS Console changes to remote PVS Server

Citrix Confidential - Do Not Distribute

MAPIMAPI SoapServerSoap

Server

PVS Console

Manager

Manager

MCLI

ADAD

StreamDB

StreamDB

StreamProcessStreamProcess

StreamServiceStreamService M

anag

erM

anag

er

PVS Server A PVS Server B

Page 13: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

More on Manager

Citrix Confidential - Do Not Distribute

Stream ServiceStream Service

Stream ProcessStream

Process

Manager

Manager

MAPIMAPI

StreamDB

StreamDB

SoapServerSoap

Server

PVS ConsoleSQL

Database

Manager

Manager

MCLI

Streamed Image

ADAD

vDisk Location

PVS Server A

Page 14: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

StreamDB

StreamDB

Stream Process and Active Directory

Citrix Confidential - Do Not Distribute

Stream Service

Stream ProcessStream

Process

Manager

Manager

MAPIMAPISoap

Server

PVS ConsoleSQL

Database

Manager

Manager

MCLI

Streamed Image

ADADDomain Controller

PVS Server A

Page 15: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

Authentication

Citrix Confidential - Do Not Distribute

Stream ServiceStream Service

Manager

Manager

StreamDB

StreamDB

SQL Database

Streamed ImagevDisk Location

StreamProcessStreamProcess

Page 16: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

Load Balancing and High Availability

Citrix Confidential - Do Not Distribute

Stream ProcessStream

ProcessStream ServiceStream Service

StreamDB

StreamDB

Streamed Image

Stream ServiceStream Service

Stream ProcessStream

Process

StreamDB

StreamDB

SQL Database

Streamed Image

Server IP Server IP

Device Count Device Count

Update Time Update Time

Page 17: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

• Narrowing down scope of issue by determining where in the boot cycle the issue is occurring.

• Packet Traces

• Capturing Kernel Dump Files

Citrix Confidential - Do Not Distribute

Troubleshooting

Page 18: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

• DHCP – PXE boot downloading of bootstrap file

• Login to the PVS Server

• Streaming of the I/O Pre-BNIStack (Citrix Target Device driver)

• BNIStack up burst traffic.

Citrix Confidential - Do Not Distribute

Boot Stages

Page 19: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

Citrix Confidential - Do Not Distribute

Analyzing Packet Captures

Page 20: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

Packet Capture PXE TFTP download

Citrix Confidential - Do Not Distribute

TFTP

Provisioning Server 10.1.1.1

DHCP

Target 10.1.1.100PXE

Page 21: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

• Target does not receive IP address

• Target gets IP but times out to TFTP

• PXE Errors No boostrap found

Citrix Confidential - Do Not Distribute

Common Issues During DHCP TFTP Download

TFTP

Provisioning Server 10.1.1.1

DHCP

Target 10.1.1.100PXE

Page 22: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

Login Process Traffic

Citrix Confidential - Do Not Distribute

TFTP

Provisioning Server 10.1.1.1

Target 10.1.1.100

Stream Process

TFTP - Login

Page 23: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

• Incorrect Bootstrap IP information

• Login port blocked

• Target not entered in Database

• Stream Service failed to start

Citrix Confidential - Do Not Distribute

Common issues during login process

TFTP

Provisioning Server 10.1.1.1

DHCP

Target 10.1.1.100PXE

Page 24: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

Streaming Pre-BniStack

Citrix Confidential - Do Not Distribute

TFTP

Stream Process

OS Booting UNDI Driver

Target 10.1.1.100

Page 25: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

• Large Send Offload

• Network instability

• Conflicts with UNDI Driver

Citrix Confidential - Do Not Distribute

Common issues pre BNIStack

Page 26: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

Determining if BNIStack Driver is up

Citrix Confidential - Do Not Distribute

TFTP

Stream Process

OS Booting BNISTACK Driver

Target 10.1.1.100

Provisioning Server 10.1.1.1

Page 27: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

• Filter Driver conflicts

• Firewall/Antivirus Services kickoff

• Antivirus Updates being loaded

• Domain Profile creation

Citrix Confidential - Do Not Distribute

Common issues post BNIStack

Page 28: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

Citrix Confidential - Do Not Distribute

Windows Kernel Dump files

Page 29: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

• Capturing Kernel Dump files using Win2k3 and XP

• Capturing Kernel Dump files using Win2k8 Vista and Windows 7

• Capturing Kernel Dump files in XenServer and ESX

Citrix Confidential - Do Not Distribute

Capturing Kernel Dump Files

Page 30: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

• Crash dumps to be on same drive as pagefile

• Page file to be on the system drive

• Redirection of dump not supported

• Live debug can be accomplished via serial cable.

Citrix Confidential - Do Not Distribute

Capturing Kernel Dump Files Win2k3 and XP Limitations

Page 31: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

• Enhancements allow kernel dumps to be directed to a location other then a system drive

• Requires a local hard drive with enough free space for the dump file. (Pagefile Size)

Citrix Confidential - Do Not Distribute

Capturing Kernel Dump Files Win2k8 Vista and Windows 7

Page 32: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

• Create a new string value under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl named DedicatedDumpFile

• Create Value data box, type <drive>:\<dedicateddumpfile.sys>

• Create DWORD Value DumpFileSize use decimal under base and type the name of dump file in megabytes

• More detailed information in this process can be found:• http://support.microsoft.com/kb/969028 • http://support.citrix.com/article/ctx123642

Citrix Confidential - Do Not Distribute

Capturing Kernel Dump Files Win2k8 Vista and Windows 7

Page 33: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

• Vista, Windows 7, Win2k8 redirection only possible if XenTools are not installed

• Live Debug via WinDBG possible by redirecting serial to DOM 0

Citrix Confidential - Do Not Distribute

Capturing a Kernel dump via XenServer

Page 34: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

Citrix Confidential - Do Not Distribute

Capturing a Kernel Dump Via Xenserver

DO

M 0

XEN SERVER

WinDBGSockPipe.EXESerial Redirect

Page 35: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

http://support.citrix.com/article/ctx124979

Citrix Confidential - Do Not Distribute

Page 36: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

• Workstation 7 utility vmss2core

• Suspend hung VM

• Download suspended VM session (.vmss)

• Retrieve downloaded file and run command vmss2core –W filename.vmss

Citrix Confidential - Do Not Distribute

Capturing Kernel dump via ESX

Page 37: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

http://support.citrix.com/article/ctx125086

Citrix Confidential - Do Not Distribute

Page 38: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

• Provisioning Server reduces storage costs and management time

• Stream Process responsibilites

• How to identify where in the boot process a PVS Target is failing

• The different ways to capture a kernel level dump file from a provisioned target.

Citrix Confidential - Do Not Distribute

Recap

Page 39: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

TechEdge Survey, Video Postings & PPTs

• The TechEdge survey will be emailed out to end-user customers

• If you complete the survey, you will be entered to win a $250 Amazon gift card. The winner will be announced June 1st.

• View TechEdge videos & PPTs on the Knowledge Center by Monday, May17th http://support.citrix.com/techedge2010

Page 40: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting

Visit www.citrix.com/SummitEDU for more information

Continue Your Learning

Page 41: Citrix Provisioning Services Stream Process Architecture and Advanced Troubleshooting