NxPrep: Installing Virtual Machine Images on Engine

Slides:



Advertisements
Similar presentations
XenClient Enterprise 4.5 Snapback and OS Profiles.
Advertisements

Virtual Machine Import and Export
Module 6: Configuring Windows XP Professional to Operate in a Microsoft Network.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 9: Implementing and Using Group Policy.
Configuring Windows Vista Security Chapter 3. IE7 Pop-up Blocker Pop-up Blocker prevents annoying and sometimes unsafe pop-ups from web sites Can block.
14.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
Hands-On Microsoft Windows Server 2003 Administration Chapter 4 Managing Group Policy.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 10: Collect and Analyze Performance Data.
10.1 © 2004 Pearson Education, Inc. Exam Planning, Implementing, and Maintaining a Microsoft Windows Server 2003 Active Directory Infrastructure.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 12: Managing and Implementing Backups and Disaster Recovery.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 9: Implementing and Using Group Policy.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 10: Server Administration.
Week:#14 Windows Recovery
5.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 5: Working with File Systems.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 5: User Environment and Multiple Languages.
Maintaining and Updating Windows Server 2008
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 11 Managing and Monitoring a Windows Server 2008 Network.
1 Chapter Overview Creating User and Computer Objects Maintaining User Accounts Creating User Profiles.
11 MAINTAINING THE OPERATING SYSTEM Chapter 5. Chapter 5: MAINTAINING THE OPERATING SYSTEM2 CHAPTER OVERVIEW Understand the difference between service.
XenClient Enterprise 4.5 What’s New in Version 4.5.
June 5, 2013 XenClient Enterprise 5.0 Engine VNC Remote Access.
16.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 16: Examining Software Update.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
70-293: MCSE Guide to Planning a Microsoft Windows Server 2003 Network, Enhanced Chapter 14: Problem Recovery.
VMWare Workstation Installation. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *Note: The following instructions.
Ch 11 Managing System Reliability and Availability 1.
Chapter-4 Windows 2000 Professional Win2K Professional provides a very usable interface and was designed for use in the desktop PC. Microsoft server system.
Administering Windows 7 Lesson 11. Objectives Troubleshoot Windows 7 Use remote access technologies Troubleshoot installation and startup issues Understand.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 9: Implementing and Using Group Policy.
®® Microsoft Windows 7 for Power Users Tutorial 8 Troubleshooting Windows 7.
Hands-On Microsoft Windows Server 2008
MCTS Guide to Microsoft Windows Server 2008 Applications Infrastructure Configuration (Exam # ) Chapter Two Deploying Windows Servers.
XenClient Enterprise 4.5 Diagnostics. XenClient Enterprise 4.5 Diagnostics Copyright © 2013 Citrix Page 2 Table of Contents Engine and Synchronizer Problem.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 1 Third Edition Chapter 6 Today’s Windows Windows Vista and Windows 7 McGraw-Hill.
70-294: MCSE Guide to Microsoft Windows Server 2003 Active Directory Chapter 12: Deploying and Managing Software with Group Policy.
Tutorial 11 Installing, Updating, and Configuring Software
Hands-On Microsoft Windows Server 2003 Administration Chapter 2 Managing Windows Server 2003 Hardware and Software.
Week #7 Objectives: Secure Windows 7 Desktop
Chapter Fourteen Windows XP Professional Fault Tolerance.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 12: Managing and Implementing Backups and Disaster Recovery.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 1 Third Edition Chapter 5 Windows XP Professional McGraw-Hill.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Section 10: Assigning and Publishing Software Packages Using MSI Packages to Distribute Software Using Group Policy as a Software Deployment Method Deploying.
1 Chapter Overview Configuring and Troubleshooting the Display Configuring Power Management Configuring Operating System Settings Configuring and Troubleshooting.
Troubleshooting Windows Vista Security Chapter 4.
Module 7: Fundamentals of Administering Windows Server 2008.
1 Chapter Overview Configuring Account Policies Configuring User Rights Configuring Security Options Configuring Internet Options.
Chapter 13 Users, Groups Profiles and Policies. Learning Objectives Understand Windows XP Professional user accounts Understand the different types of.
Windows Vista Inside Out Chapter 22 - Monitoring System Activities with Event Viewer Last modified am.
MCTS Guide to Microsoft Windows Server 2008 Applications Infrastructure Configuration (Exam # ) Chapter Four Windows Server 2008 Remote Desktop Services,
Module 7 Configure User and Computer Environments By Using Group Policy.
PvD Troubleshooting and Support Shane Broomhall APAC Readiness.
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
Module 4 Planning for Group Policy. Module Overview Planning Group Policy Application Planning Group Policy Processing Planning the Management of Group.
5 Lesson 5: Installing and Configuring Desktop Applications and Windows Store Apps MOAC : Configuring Windows 8.1.
IT1001 – Personal Computer Hardware & system Operations Week7- Introduction to backup & restore tools Introduction to user account with access rights.
Page 1 of 38 Lenovo Confidential Lenovo Confidential Lenovo Confidential Lenovo Confidential Lenovo Confidential Please Note: Information contained in.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 1 Third Edition Chapter 6 Today’s Windows Windows Vista and Windows 7 McGraw-Hill.
1 Chapter Overview Monitoring Access to Shared Folders Creating and Sharing Local and Remote Folders Monitoring Network Users Using Offline Folders and.
By the end of this lesson you will be able to explain: 1. Identify the support categories for reported computer problems 2. Use Remote Assistance to connect.
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
Troubleshooting Windows Vista Lesson 11. Skills Matrix Technology SkillObjective DomainObjective # Troubleshooting Installation and Startup Issues Troubleshoot.
ITMT 1371 – Window 7 Configuration 1 ITMT Windows 7 Configuration Chapter 8 – Managing and Monitoring Windows 7 Performance.
Maintaining and Updating Windows Server 2008 Lesson 8.
Introduction to Group Policy Lesson 7. Group Policy Group Policy is a method of controlling settings across your network. – Group Policy consists of user.
CACI Proprietary Information | Date 1 Upgrading to webMethods Product Suite Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8,
Windows Vista Configuration MCTS : Maintenance and Optimization.
Bomgar Remote support software
bh
Presentation transcript:

NxPrep: Installing Virtual Machine Images on Engine XenClient Enterprise 4.5 NxPrep: Installing Virtual Machine Images on Engine

Table of Contents NxPrep Overview Page 3 Page 4 Page 5 Page 6 Page 7 NxPrep: Installing Deployed Virtual Machines Page 4 NxPrep Virtual Machine Boots Page 5 Windows Domain Membership Page 6 PV Drivers Installation Page 7 NxPrepExtend Page 8 NxPrepExtend Example: Disable Reboot Warning Page 9 NxPrep Timeout and Retry Page 10 NxPrep Memory Page 11 NxPrep, Quick Launch, and Smart Memory Page 12 Disk Layering, VHD Files, and Snapback Page 13 VHD Layering for Running Virtual Machines Page 14 System and Publish Layers Page 15 NxPrep Layer Page 16 Runtime Layer Page 17 Snapback Page 18 Concurrent NxPrep Page 19 NxPrep Troubleshooting Page 20 NxPrep Failure Status Page 21 NxPrep Failures Caused By Virtual Machine Image Issues Page 22 NxPrep Failures Caused By Synchronizer Issues Page 23 NxPrep Best Practices Page 24 NxPrep Best Practices (continued) Page 25 NxPrep Logs in Running Virtual Machines Page 26 NxPrep Logs in Engine Diagnostics Page 27 Foreground NxPrep Page 28 Background vs. Foreground NxPrep Page 29 Enabling Foreground Install Page 30 Enabling Foreground Install in Synchronizer Page 31 Enabling Foreground Install in the Engine Page 32 Foreground NxPrep Example Page 33

NxPrep Overview

NxPrep: Installing Deployed Virtual Machines This is what happens when a new version of a Virtual Machine (VM) image is deployed to a computer from the Synchronizer. The VM update is downloaded from Synchronizer. The new version of the VM image is installed on Engine. After installation, the new VM image version is ready to run. The “Installing Update” process is called NxPrep. During NxPrep, the Engine prepares a new version of a VM image to run on the Engine.

NxPrep Virtual Machine Boots During NxPrep, Engine will boot the new VM version in the background. Windows XP VMs: Three background boots. Other VM types: Two background boots. The term “background boot” means there is no display attached and the user cannot see what is happening (and is less able to interfere with the process). What happens in the VM during the background boots: Windows discovers new XCE virtual devices, which are different from Hyper-V virtual devices, and is given a chance to adjust to the new device set. The XCE PV drivers package is installed. The user and local disks are initialized (if necessary). The Microsoft iSCSI initiator service is configured. This is how the optical drive is shared between the Engine and VMs. Miscellaneous Windows configuration tasks. The NxPrepExtend script is run (if it exists). For a more detailed account of what happens during the background boots, refer to this log file in a running VM: C:\NxTop\Logs\nxprep.log

Windows Domain Membership NxPrep Configures Domain Membership This is only done when a VM is initially installed on Engine. For VM updates, the previous configuration is carried forward. For a restored VM, domain configuration is included in the backup. Synchronizer Coordination Engine never communicates with Active Directory (AD) directly. Synchronizer creates a computer account in the domain for the VM. Engine injects computer account settings into the VM during NxPrep. AD Required for First VM Boot Windows (in the VM) needs to contact AD to: Establish a trust relationship with the domain controller. Authenticate domain login credentials for the user. Domain logins will fail if the VM cannot access AD. Windows will cache credentials after the first successful login. This is standard Windows behavior. AD Issues can Break NxPrep Synchronizer must be able to create a computer account for the VM. If AD integration is misconfigured in Synchronizer, NxPrep will fail. Usually caused by an incorrect password. Can also be caused by network problems.

PV Drivers Installation The PV Drivers are installed into the VM during NxPrep. The version of the PV Drivers will match either the Synchronizer or Engine version as outlined below. XCE Engine Version 4.1 (and earlier) NxPrep will install PV Drivers from a kit that was injected into the VM image when the VM image version was published in Synchronizer. Therefore, the installed VM will have PV drivers that match the version of the Synchronizer when the deployed version of the VM image was published. This might be different from the version of the Synchronizer that exists when the VM image is being installed on Engine. XCE Engine Version 4.5 (and later) The Engine will inject the PV Drivers installation kit into the VM before the first NxPrep boot. Therefore, the installed VM will have PV drivers that match the Engine version. Any PV Drivers installation kit previously injected into the image by Synchronizer is ignored.

C:\NxPrepExtend.cmd NxPrepExtend If this script exists in the VM image, it is executed within the VM near the end of the NxPrep process. This feature can be used to customize an installed VM. Since the script is run during NxPrep, the results of the script will persist across snapback. Best Practices Keep NxPrepExtend scripts short and simple. All NxPrepExtend commands must complete with no user action. When modifying the registry with reg.exe, use the “/f” switch. Limitations There is no networking available when the NxPrepExtend script is run. The user and local disks (U: and L: drives) might not be available. NxPrep can fail if a NxPrepExtend command hangs or returns an error. NxPrepExtend Results A new or modified NxPrepExtend script would not take effect in deployed VMs until: The VM image is republished in Synchronizer. The new VM image version is deployed to the computer.

NxPrepExtend Example: Disable Reboot Warning This warning appears when a user logs into a VM for the first time. It alerts the user to restart the VM so the user profile can be relocated from the system disk to the user disk. Until this is done, user data will not be included in VM backups uploaded from Engine to Synchronizer. For owned or assigned computers, it is strongly recommended to keep this warning intact. But for unowned or kiosk computers where user data is not being backed up to Synchronizer, the warning might be disabled. To disable the warning, create a file “C:\NxPrepExtend.cmd” in the VM image in Synchronizer. This script will be executed at the end of NxPrep. The command to include in the script is: reg delete HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v "NxTop Notify" /f This change would not go into effect until the VM image is republished and the new version installed on Engine.

NxPrep Timeout and Retry Engine terminates NxPrep after 90 minutes. NxPrep should never take this long to complete. If it takes this long, the NxPrep VM is probably blocked. NxPrep Retry For most NxPrep failures, Engine will retry NxPrep once. If the second NxPrep also fails, Engine will give up. The VM status will go to “Error: Contact Administrator”. NxPrep Retry Reset Engine will reset the NxPrep retry count when: The computer is restarted. The VM image is redeployed to the computer. A new VM version is deployed to the computer. The Engine management endpoint service (mepd) is restarted.

Memory Used for NxPrep VMs NxPrep Memory The Engine requires memory to run the NxPrep VMs. Memory used for NxPrep depends on the OS type. OS Type Memory Used for NxPrep VMs Windows XP 304 MB Other 32-bit Windows 432 MB Any 64-bit Windows 432 MB (first attempt) 1024 MB (if first attempt fails) This VM status means Engine cannot install a VM update because there is insufficient memory for the NxPrep VMs. To free up memory, shutdown any running VM. This includes the Dock (previously known as the Connect VM) if it is enabled.

NxPrep, Quick Launch, and Smart Memory Quick Launch and Smart Memory affect memory allocation for VMs. These features might not leave sufficient memory for NxPrep. For Quick Launch this should only happen for a 64-bit VM and only if the first NxPrep attempt fails. For Quick Launch, the solution is to reboot the computer. NxPrep should begin after the computer restarts. The user might have to wait until NxPrep completes before the VM can be accessed. For Smart Memory, the solution is to shutdown a VM to free up memory. Quick Launch is configured in the Synchronizer Engine policy. Smart Memory is configured in the Engine control panel.

Disk Layering, VHD Files, and Snapback

VHD Layering for Running Virtual Machines The system disk for a running VM is backed by a chain of VHD files. The VHD files can be divided into logical layers as illustrated in the following diagram. Some layers come from Synchronizer, others are created on the Engine. System Layer Downloaded from Synchronizer. Contains the VM image as authored and configured within the Synchronizer. Might include multiple VHD files. NxPrep Layer Created on the Engine. Contains the results of the NxPrep operation. This layer sets the baseline for snapback. Runtime Layer Created on the Engine. Captures all changes made to the system disk while the VM runs. Reset by snapback. Publish Layer Downloaded from Synchronizer. Contains the results of the publish operation when a VM image version is published. VM System Disk (C: Drive)

System and Publish Layers The system and publish layers are downloaded from Synchronizer. System Layer Contains the VM image as authored and configured in Synchronizer. Will often include multiple VHD files (one per VM image version). Publish Layer Contains the results of the publish operation in Synchronizer. Always a single VHD file. System Layer Publish Layer system-2-diff.vhd Contains the results of the version 2 publish operation. system-2.vhd Contains the differences between versions 1 and 2. system-1.vhd Base VHD file for version 1 of the VM image. VHD System Disk (C: Drive) Before NxPrep

VM NxPrep Layer During the NxPrep process: Engine creates the NxPrep layer linked to the Publish layer. All system disk changes during NxPrep are captured in this layer. Publish and System layers are read-only during NxPrep. NxPrep VMs run in the background with no console access. Unless the console is enabled for troubleshooting. VM Read NxPrep Layer System Layer Publish Layer Write System Disk (C: Drive)

VM Runtime Layer When the VM is started after NxPrep: Engine creates a new Runtime layer linked to the NxPrep layer. All system disk changes are captured in the Runtime layer. NxPrep, Publish, and System layers are read-only. The VM starts with console access available to the user. VM Read Runtime Layer NxPrep Layer System Layer Publish Layer Write System Disk (C: Drive)

VM Snapback Shared VMs are snapped back every time they are restarted. Custom and Local VMs do not participate in snapback. Before snapback: Runtime layer contains all changes made to the system disk by the VM. NxPrep layer is unchanged since the VM was installed. Publish and System layers are consistent with the Synchronizer. After snapback: Runtime layer is discarded and replaced with a new empty VHD file. NxPrep, Publish, and System layers remain unchanged. The system disk is “snapped back” to the results of NxPrep. System Disk (C: Drive) Runtime Layer NxPrep Layer System Layer Publish Layer These layers are read-only when the VM runs in user mode and cannot be modified by the VM. The Runtime layer might grow large while the VM runs. It is reset during the snapback process. This “snaps back” the system disk to a state consistent with the results of NxPrep. VM

Concurrent NxPrep NxPrep can run in the background while the VM is running. Two copies of the VM are running at the same time. Only possible if sufficient memory is available. Runtime Version 1 System Version 2 System Version 1 NxPrep Version 2 NxPrep Version 2 Publish Version 1 Publish VM version 1 (Running) VM version 2 (NxPrep) Two versions of the VM are running at the same time, starting from different locations in the VHD tree. There is no conflict between running versions because all common VHD files are read-only. Read/Write for Version 2 Read-Only Read/Write for Version 1 The VM is running while an update is being installed.

NxPrep Troubleshooting

NxPrep Failure Status Error: Contact Administrator NxPrep started but failed part-way through. Usually caused by problems within the VM image. Install Update When Server Available NxPrep failed due to a problem with the Synchronizer. Most often caused by AD integration problems.

NxPrep Failures Caused By Virtual Machine Image Issues Application or Service Conflicts Some applications or services can conflict with NxPrep. Even if they are installed and working properly in the Hyper-V VM. Potentially problematic applications or services include: Antivirus, Encryption, USB-over-IP, or VPN software. Software that creates devices or installs drivers. VMWare or XenServer tools from a V2V conversion. Windows Inconsistencies NxPrep can fail due to Windows inconsistencies such as: Windows updates that were not completely applied. A Windows configuration change that requires a restart to complete. An application or service in a partially-installed state. To avoid these issues, verify Windows is in a consistent state before publishing. NxPrepExtend A NxPrepExtend script can cause NxPrep to fail if the script: Runs a command that blocks waiting for user input or user action. Becomes unresponsive or returns an error. Terminates the NxPrep VM or prevents it from shutting down as expected.

NxPrep Failures Caused By Synchronizer Issues NxPrep requires coordination between Engine and Synchronizer. Synchronizer problems can cause NxPrep to fail. Network problems: Between Engine and Synchronizer. Between Synchronizer and the Database or Active Directory. Between a remote Synchronizer server and the primary server. Active Directory configuration problems: Incorrect/changed/expired password or account disabled. Insufficient privileges (most commonly, unable to create computer accounts). AD configuration can be tested in the Synchronizer console.

NxPrep Best Practices Sizing Computers for XCE Engine Include a memory allowance for NxPrep. 512 MB if only 32-bit VMs will be run. 1024 MB if any 64-bit VMs will be run. Otherwise the VM might be unavailable to the user during NxPrep. Getting Started with VM Images in Synchronizer Start with a VM image containing a very basic Windows installation. Verify the basic Windows image can publish, download, install, and run as expected. Then build up the image incrementally with applications and services. Before Publishing a New VM Image Version Ensure there are no pending updates or configuration changes in the image. Verify all applications are installed and working properly. Run the VM image through a clean start/login/logout/shutdown cycle.

NxPrep Best Practices (continued) Always Publish for Staged Deployment Assign the staged version to test users and verify: The new image version can download and install properly. The new image version contains the desired changes. Applications and services in the image are working properly. Do not deploy the new version to production users until it has been tested. Logging Into Hyper-V VMs When managing VM images, always login as one of two users: The local Administrator. A domain account created for image management. User profiles created in the image will carry over to deployed VMs. VM Image Management Turn off the Windows “system protection” setting for the system disk. Avoid copying large files to the system disk. Even if they are deleted later, they will cause the image to grow. Install or update software from network shares. Turn off all automatic update mechanisms for Windows and applications. Antivirus software services should be disabled for publish and NxPrep.

NxPrep Logs in Running Virtual Machines Publish and NxPrep Log Folder In a running VM installed on Engine, the folder C:\NxTop contains log files generated when the VM image was published (in the Synchronizer) and installed (on the Engine). This is a hidden folder. NxPrep Log Files The log file C:\NxTop\nxprep.log contains a detailed record of what was done during the NxPrep process. It can be useful to review if NxPrep succeeds but the installed VM is inconsistent in some way. For example this log can be checked to ensure that a NxPrepExtend script was run successfully. Log Files for Installed Version Only The C:\NxTop folder will only contain log files for the NxPrep operation that successfully produced the running version of the VM. If the NxPrep process fails while trying to install a newer version of the VM image, the results of the failed NxPrep would not be reflected in the log files within the running VM.

NxPrep Logs in Engine Diagnostics NxPrep logs are included in the standard Engine diagnostics. Each VM will have its own set of NxPrep logs. The logs are for the “last completed” NxPrep cycle, meaning that NxPrep has run through to completion, or both NxPrep attempts have failed. Diagnostics will not include logs for NxPrep in progress. If you want Engine diagnostics for a NxPrep problem, do not collect them while NxPrep is in progress. You must wait until both NxPrep attempts fail. This might mean that you must wait for NxPrep to be timed out twice.

Foreground NxPrep

Background vs. Foreground NxPrep Background NxPrep This is the default mode for NxPrep. The console for the NxPrep VM is not visible to the user. NxPrep should complete automatically with no user action. Displaying the NxPrep VM console could be confusing to the user. Foreground NxPrep Sometimes it is desired to run the NxPrep VM in the foreground. So the console is visible and accessible. This should only be done when necessary for troubleshooting. For NxPrep failures caused by problems within the NxPrep VM.

Enabling Foreground Install Foreground install must be enabled in two places: In the Synchronizer Engine policy. This is usually done for a specific user by overriding the default policy. In the Engine control panel. This can only be done after the Engine policy has been updated to allow foreground installs.

Enabling Foreground Install in Synchronizer Locate the user in the navigation panel. Select the Policies tab, then the Support section. Enable the “Allow Foreground Install” option, then save the policy changes. The change will go into effect when the Engine checks for updates with Synchronizer.

Enabling Foreground Install in the Engine Start the Engine control panel and choose the “Tools by Category” view. Start the Activity Center applet. Click the link under “Related Tasks” to enable foreground installation. This can only be done if foreground installation is enabled in the Engine policy. If the “Turn on Visible Installation” option is not displayed, ensure foreground installation is enabled for the user or computer in the Synchronizer.

Foreground NxPrep Example After the update is downloaded… The VM would normally go into an “Installing Update” stage… But with foreground installation enabled, the NxPrep VM should start in the foreground like an installed VM. When the NxPrep VM is in the foreground, pressing the Ctrl-Down hotkey should show that the VM is in the “Installing Update” phase.