Professional Documents
Culture Documents
EN-000006-03
You can find the most up-to-date technical documentation on the VMware Web site at: http://www.vmware.com/support/ The VMware Web site also provides the latest product updates. If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com
Copyright 2007-2011 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies. Revision: 20110310
VMware, Inc.
Contents
Overview
13
Why Virtualization? 13 Why a Multi-Host Virtual Machine Benchmark? 13 Intended Audience 14 Legal Notice 14
15
16
VMware, Inc.
Server Memory Requirements 35 Other Server Requirements 36 Client Hardware Requirements 36 Hardware Requirements for Physical Clients 36 Hardware Requirements for Virtual Clients 36 vCenter Hardware Requirements 37 Network Requirements 37 Network Hardware 37 Network Topology 37 VMmark Software Requirements 39 Workload Software Requirements 39 Client Software Requirements 39 Software Versions 40 Software License Summary 40 Free Software 40 Evaluation Software 40 Purchased Software 40
43
Create the Virtualization Infrastructure 43 Install vSphere vCenter 43 Install VMware ESX 43 Configure vCenter 44 Configure Time Synchronization on the ESX Hosts and the vCenter Server 44 Configure Time Synchronization for ESX Hosts 44 Configure Time Synchronization for the vCenter Server 44 Prepare the vSphere vCenter Server for the Deploy Infrastructure Operations 46 Create the VMmark Tiles 47 Create the Mail Server Virtual Machines 49 Create the Standby Virtual Machines 51 Create the Olio Database Virtual Machines 53 Create the Olio Web Virtual Machines 55 Create the DVD Store 2 Database Virtual Machines 57 Create the DVD Store 2 Web Virtual Machines 59
61
Prepare the Client Machine 61 Prepare a Client Physical Machine 61 Prepare a Client Virtual Machine 61 Install Microsoft Windows Server on the Client Systems 63 Install Microsoft Windows Server on a Physical System 63 Install Microsoft Windows Server on a Virtual System 63 Install the VMware Tools Package in Microsoft Windows 64 Enable Time Synchronization in VMware Tools 65 Install Windows Updates 65 Configure Microsoft Windows on the Client Systems 66 Install Windows Server Components 66 Disable Data Execution Prevention (DEP) on the Client 67 Install or Update Windows PowerShell and vSphere PowerCLI 67 For Windows Server 2003 67 For Windows Server 2008 68 Install the General Software 69 Install and Configure the STAF Package 69 Install the STAF Package 69 Configure the Windows Server 2008 Firewall to Allow STAFProc.exe to Pass Through 69
4 VMware, Inc.
Contents
Configure STAF to Start Automatically 69 Create a Customized STAF.cfg File 71 Install the STAX Execution Engine 71 Install the STAF EVENT Service 71 Install a Java JRE 72 Install the Cygwin Environment 73 Install and Configure the VMmark Harness 75 Install the VMmark Harness Package 75 Configure the VMmark Harness 75 Edit the cygserver.conf File 79 Edit Registry Settings in the Client System 79 Automatically Apply the Registry Settings 79 Manually Apply the Registry Settings 80 Update the hosts File 81 Obtain Exchange Server 2007 and LoadGen 81 Configure Windows to Not Use a Proxy Server 82 Create Additional Client Systems 83 Copying the Disk Image 83 Cloning a Virtual Machine 83 Configuring Additional Clients Manually 83 Install and Configure the Workload Client Software 84 Install the Standby Client Software 84 Install the Olio Client Software 84 Install the DVD Store 2 Client Software 84 Install and Configure the Mail Server Client 84 Set the Clients Preferred Domain Name Server 84 Make the Client System a Domain Member 85 Install Exchange Server 2007 Tools 86 Install and Configure LoadGen on the Client 87 Backup the Microsoft Exchange Server 2007 Database 88
91
Tile Placement 91 Running the VMmark Harness 91 Running Multiple-Tile Benchmarks 93 Configuring the VMmark Harness for Multiple-Tile Benchmarks 93 Starting Multiple-Tile Benchmarks 93 VMmark Results Files 94 Creating and Submitting a VMmark Full Disclosure Report 95 Configure the Prime Client to Log Into Virtualization Hosts Without a Password 95 Enable Reporting in the VMMARK2.CONFIG File 96 Create a Name-Mapping File 96 Generate an HTML-Formatted Table of Results and Ratios 97 Edit the disclosure.HTML File 97 Submit the Full Disclosure Report for Review 97 Running VMmark without STAXMonitor 98
Create a Customized STAF.cfg File 104 Configure STAF to Start Automatically 104 Update the HOSTS File 104 Create and Configure the Mail Server Virtual Machines 105 Create the Mail Server Virtual Machine 105 Install Microsoft Windows Server 2008 Enterprise Edition 106 Install the VMware Tools Package in Microsoft Windows 107 Install Windows Updates 108 Create the Database and Backup Drives 108 Create a Second Virtual Disk 108 Create and Format the Database Partition 108 Create and Format the Backup Partition 109 Install and Configure the STAF Package 109 Install the STAF Package 109 Create a Customized STAF.cfg File 110 Configure the Windows Server 2008 Firewall to Allow STAFProc.exe to Pass Through 110 Update the hosts File 110 Install Windows Server Components and Windows Support Tools 110 Install Windows PowerShell 110 Install Windows Server Components 111 Configure Internet Explorer to Not Use a Proxy Server 111 Create and Configure the SLES Virtual Machines 112 Create the Virtual Machine 112 Install and Configure SUSE Linux Enterprise Server 11 113 Install the VMware Tools Package in the Linux Virtual Machine 114 Install and Configure the STAF Package 115 Install the STAF Package 115 Create a Customized STAF.cfg File 116 Set Open File Limits 116 Disable Persistent Network Adapter Name Rules 116 Configure the Linux System to Automatically Start STAFProc 116 Update the hosts File 116
119
VMware, Inc.
Contents
Copy Files 127 Configure the Olio Database 128 Clone the Olio Database Virtual Machine 128 Prepare the Olio Web Virtual Machines 129 Customize the SLES 11 Virtual Machine Template 129 Clone the SLES11 Template Virtual Machine 129 Customize the Virtual Machine for Olio Web 129 Create a Second Virtual Disk 129 Install the Software for the Olio Web Virtual Machines 130 Partition, Format, and Mount the Olio Filestore Disk 130 Tune TCP/IP 130 Edit the /etc/HOSTNAME and /etc/hosts Files 130 Install Memcached 131 Copy the Fileloader 131 Install a 64-bit Java JRE 131 Install tc Server Application Server 132 Install Spring Framework 132 Install EclipseLink 132 Install MySQL Connector/J 133 Install JSTL 133 Configure tc Server 133 Clone the Olio Web Virtual Machine 134 Prepare the DVD Store 2 Database Virtual Machines 135 Customize the SLES 11 Virtual Machine Template 135 Clone the SLES11 Template Virtual Machine 135 Customize the Virtual Machine for DVD Store 2 Database 135 Create a Second Virtual Disk 135 Create a Third (Temporary) Virtual Disk 136 Install the Software for the DVD Store 2 Database Virtual Machines 136 Configure the Network and Set the Hostname 136 Partition, Format, and Mount the DVD Store 2 Database Disk 136 Partition, Format, and Mount the DVD Store 2 Temporary Disk 137 Install MySQL 137 Prepare the DVD Store 2 Database 138 Clone the DVD Store 2 Database Virtual Machine 139 Prepare the DVD Store 2 Web Virtual Machines 140 Customize the SLES 11 Virtual Machine Template 140 Clone the SLES11 Template Virtual Machine 140 Customize the Virtual Machine for DVD Store 2 Web 140 Install the Software for the DVD Store 2 Web Virtual Machines 140 Configure the Network 140 Install Apache and PHP 140 Untar, Edit, and Move the DVD Store 2 Files 141 Copy and Clone the DVD Store 2 Web Virtual Machine 141
143
Running a Subset of the Workloads (a Partial Tile) 143 Optional Windows System Settings 144 Disable the Manage Your Server Window 144 Set the System to Autologon 144 Disable the <Ctrl> <Alt> <Del> Prompt 144 Disable Password Protection on Resume 144 Disable Internet Explorer Enhanced Security 145 Disable the Shutdown Event Tracker 145
VMware, Inc. 7
Using a PVSCSI Virtual Device Driver 146 Configuring Network Settings in SLES 11 147
Troubleshooting
149
Workload Troubleshooting 149 Mailserver Troubleshooting 149 Error Validating State of Active Directory 149 Microsoft Exchange Load Generator -- Error 1722 149 Correcting Mail Server Drive Letters and Names 149 LoadGen Log File Errors 150 Mailserver Virtual Machines Produce No Results 150 No Exchange Window Visible 151 LoadGen Cant Connect to Active Directory 151 LoadGen Crashes If Exchange Server Transport Service Stops 151 Deleting the Microsoft Exchange Database 152 DVD Store 2 Troubleshooting 153 (504) Gateway Timeout Error 153 Miscellaneous Troubleshooting 154 Out of Bounds Error by Harness During Time Sync 154 Popup: Space Allocated for Logging PowerShell Events is Nearly Full 154 Infrastructure Operations Troubleshooting 154 STAF Complains About Trust Level 155 STAF is Unable to Connect to a Particular Server 155 The VMmark Harness Complains That Clients Are Out of Sync 155 VMware vSphere PowerCLI Snap-In Loads Slowly 155 PowerCLI Snap-In Takes About 20 Seconds to Load 155 PowerCLI Snap-In Takes About Two Minutes to Load 156 Error: File C:\VMmark2\tools\VMmarkPScli.ps1 cannot be loaded. 156 Networking Issues 157 Setting the Number of Ports on a Virtual Switch in ESX 157 Setting the Network Name 157 Setting Network to Connect at Power-on 157 Performing a Short Run 158 Testing a Single Failing Client-Workload Pair 159 The VMmark2ConfigChecker Script 160 Running the VMmark2ConfigChecker Script 160 The VMmark2ConfigChecker script is supplied as part of the VMmark kit (in the C:\VMmark2\tools directory). The script can be run in two modes: on a running ESX/ESXi host or on previously-collected reporter results. Both methods are described below. 160 Running the VMmark2ConfigChecker Script on an ESX/ESXi Host 160 Running the VMmark2ConfigChecker Script on Previously-Collected Results 160 Customizing the VMmark2ConfigChecker Script 161 Recovering Data from Abnormal Runs 162 Recovering Data From An Aborted Run 162 Recovering Data if the Harness Hangs 162 Manually Running the vSphere-get-config.sh Script 163
VMware, Inc.
Figures
Figure 1. Example Organization of a Virtual Environment 13 Figure 1-1. Conceptual Example of a Single Server Running One VMmark Tile (Eight Virtual Machines) 20 Figure 2-1. Sample VMmark Benchmark Network Configuration (Not Shown: vCenter Server, VMmark 2.1 Multi-Host Setup, Dedicated vMotion Network) 38 Figure 3-1. Overview of Virtual Machine Creation for Mail Server Workloads 50 Figure 3-2. Overview of Virtual Machine Creation for Standby Workloads 52 Figure 3-3. Overview of Virtual Machine Creation for Olio Database 54 Figure 3-4. Overview of Virtual Machine Creation for Olio Web 56 Figure 3-5. Overview of Virtual Machine Creation for DVD Store 2 Database 58 Figure 3-6. Overview of Virtual Machine Creation for DVD Store 2 Web 60
VMware, Inc.
10
VMware, Inc.
Tables
Table 1. Microsoft Windows Virtual Machine Worksheet 18 Table 2. Linux Virtual Machine Worksheet 18 Table 1-1. VMmark 2.1 Workload Summary 21 Table 1-2. VMmark Client Summary 25 Table 1-3. Individual VMmark Workload Metrics 28 Table 1-4. Example Reference System Workload Scores (Artificial Data) 29 Table 1-5. Single-Tile Example Test System Workload Scores (Artificial Data) 30 Table 1-6. Multiple-Tile Example Test System Workload Scores (Artificial Data) 31 Table 1-7. Reference System Workload Scores 32 Table 3-1. Registry Entries to Change 45 Table 3-2. Registry Entries to Change 45 Table 4-1. Registry Entry to Modify 80 Table 4-2. Registry Entries to Add 80 Table 4-3. Registry Entry to Modify 81 Table D-1. Mail Server Virtual Machine Disk Partitions 150
VMware, Inc.
11
12
VMware, Inc.
Overview
This document describes a virtual machine benchmarking utility called VMmark, it provides instructions for configuring a system for VMmark testing, it details the steps required to perform such a test, and it discusses the interpretation of the data acquired.
Why Virtualization?
Trends in computer hardware have led to the proliferation of powerful yet relatively inexpensive multiprocessor servers. In many cases, applications do not fully utilize these systems. As recent industry developments such as multi-core processors become commonplace, the degree of underutilization should increase. These realities have led to renewed interest in virtual machines for server consolidation. Virtual machine environments provide a software layer that enables users to create multiple independent virtual machines on the same physical server, as shown in Figure 1. Figure 1. Example Organization of a Virtual Environment
Virtual Machine
Virtual Machine
By running multiple virtual machines simultaneously, a physical server can be driven to much higher utilizations, albeit with some virtualization overhead. Although the underlying physical resources are shared, each virtual machine is fully isolated from other virtual machines and executes a separate operating system instance and separate application software.
VMware, Inc.
13
server consolidation in mind. These metrics focus on achieving maximum system performance for a single workload by driving at least one of the underlying hardware resources to saturation. These types of benchmarks do not provide sufficient insight into the scalability of virtual environments supporting multiple simultaneous workloads. More recently, multi-workload server consolidation benchmarks, such as VMmark 1.1 and SPECvirt_sc2010, have been released. These benchmarks measure single-host performance in virtualized environments. However the rapid pace of innovation has quickly transformed typical server usage by enabling easier virtualization of bursty and heavy workloads, dynamic virtual machine relocation (vMotion), dynamic datastore relocation (storage vMotion), and the automation of many provisioning and administrative tasks across large-scale multi-host environments. In this paradigm, a significant portion of the stress on CPU, network, disk, and memory subsystems is generated by the underlying infrastructure operations. Load balancing across multiple hosts can also greatly affect application performance. Any relevant benchmarking methodology must still focus on user-centric application performance while accounting for the effects of this infrastructure activity on overall platform performance.
Intended Audience
This document is written for users with a relatively advanced understanding of system administration. However, familiarity with virtualization software and with benchmarking methodology is not assumed.
Legal Notice
This documentation contains information including but not limited to the installation and operation of the Software. Modifications, additions, deletions or other updates (Modifications) to the information may be incorporated in future releases. VMware, Inc., its affiliates or subsidiaries (VMware) are not responsible for any Modifications made to the published version of this documentation unless performed by VMware. All information is provided as is and is believed to be accurate at the time of publication. VMware shall not be liable for any damages arising out of or in connection with the information and recommended actions provided herein (if any), including direct, indirect, consequential damages, loss of business profits or special damages, even if VMware has been advised of the possibility of such damages.
14
VMware, Inc.
Many of the operations required to configure a VMmark Benchmark test system can be performed in parallel to save time (for example, while the operating system is being installed in one virtual machine, you can be installing applications in another). These checklists and worksheets are designed to help track which tasks have been completed and which remain to be done. The checklists and worksheets are highly abbreviated and are intended for use in conjunction with the detailed material elsewhere in the book. NOTE When this document is viewed electronically, clicking on the cross references (for example, on page 100) brings you to the cross-reference target.
Infrastructure Preparation
Install VMware vCenter Server (on page 43). Install VMware ESX/ESXi (on page 43). Configure vCenter (on page 44). Prepare the vCenter server (on page 46).
Install and configure the STAF package (on page 109). Install Windows Server Components and Windows Support Tools (on page 110). Create clones of the mail server virtual machine (on page 119). Make the mail server virtual machine a domain controller (on page 120). Install Microsoft Exchange Server (on page 121). Configure Microsoft Exchange Server (on page 121). Update Microsoft Exchange Server (on page 122). Increase the transport database cache size (on page 122). Configure STAF to start automatically (on page 123). Repeat the previous five steps for each additional mail server virtual machine, starting with making the mail server virtual machine a domain controller (on page 120).
16
VMware, Inc.
Client Preparation
This section summarizes the preparation of the VMmark 2.1 clients. Prepare the client machine (on page 61). Install Microsoft Windows Server (on page 63). Install Windows Server components (on page 66). Disable data execution prevention (on page 67). Install or update Windows PowerShell and vSphere PowerCLI (on page 67). Install and configure the STAF package (on page 69). Install the STAX execution engine (on page 71). Install the STAF EVENT service (on page 71). Install a Java JRE (on page 72). Install the Cygwin environment (on page 73). Install the VMmark Harness (on page 75). Configure the VMmark Harness (on page 75). Edit the cygserver.conf file (on page 79). Edit registry settings (on page 79). Update the HOSTS file (on page 81). Obtain Exchange Server 2003 and LoadGen (on page 81). Configure Windows to not use a proxy server (on page 82). Create any additional client systems you will need (on page 83). (Note that this must be done before the mail server client is installed and configured.) Set the clients preferred domain name server (on page 84). Make the client system a domain member (on page 85). Install Exchange Server 2007 Tools (on page 86). Install and configure LoadGen (on page 87). Create a backup of the mail server database (on page 88).
VMware, Inc.
17
StandbyN
OlioWebN
DS2DBN
DS2WebAN
DVD Store 2 Web (64-bit SLES 11) DVD Store 2 Web (64-bit SLES 11) DVD Store 2 Web (64-bit SLES 11)
DS2WebBN
DS2WebCN
18
VMware, Inc.
This chapter provides an overview of the VMmark Benchmark and describes how it works. The chapter consists of the following sections: Overview of VMmark 2.1 Benchmark on page 19 VMmark Benchmark Workloads on page 21 VMmark Client Systems on page 25 VMmark Harness on page 26 Contents of VMmark Kit on page 27 VMmark 2.1 Benchmark Scoring Methodology on page 28 Reference Scores on page 32 VMmark Version Notes on page 33 VMmark Run and Reporting Rules on page 33
VMware, Inc.
19
When a tile is added the performance of workloads in existing tiles might decrease. If the system has not been overcommitted, however, and the minimum quality-of-service metrics are met, the aggregate score, including the new tile, should increase. The result is a flexible benchmark metric that provides a measure of the total number of workloads that can be supported by a particular multi-host platform as well as the overall performance level within the virtual machines. VMmark 2.1 generates a realistic measure of platform performance by incorporating a variety of platform-level workloads in addition to traditional application-level workloads. Live migration both of virtual machines and of their underlying disk files has quickly become a powerful and commonplace tool in virtualized datacenters. Likewise, the ability to quickly clone and deploy virtual machines onto available resources has transformed traditional server provisioning. Each of these operations place non-trivial resource demands on the underlying computational infrastructure and must be included in order to accurately characterize platform performance. Virtual machine migration, clone and deploy, and storage migration operations are repeatedly performed on a set of the workload virtual machines to simulate the additional resource demands typical in production datacenters. Additionally, automated load balancing is enabled to ensure application-level workloads are relocated to satisfy their resource needs as the computational loads vary among the individual hosts over time. VMware VMmark is designed to benchmark the performance of the virtualization software and hardware and is not designed as a benchmark of any other software component. Figure 1-1. Conceptual Example of a Single Server Running One VMmark Tile (Eight Virtual Machines)
20
VMware, Inc.
The design of some of the workloads did not completely align with the design goals for VMmark 2.1. Some modifications to the workloads were thus required in order to make them suitable for a multi-workload data center benchmark. Additionally, individual loads were tuned to generate load levels that were representative of workloads in a consolidation environment. VMmark leverages components of these workload virtual machines to run some common virtualization procedures, which include: Dynamic storage relocation Dynamic virtual machine relocation Virtual machine cloning and deployment Automated load balancing The following sections discuss each workload and any necessary modifications.
VMware, Inc.
21
We fix the load by limiting our configuration to 1000 heavy profile users with a more limited mailbox size compared to the default to fix the load. This does not cause the Exchange virtual machine to be bottlenecked on any resource. VMmark design also requires a periodic rate metric for each workload. Rather than using the number of users as a metric, as is typical, we periodically measure the number of transactions executed by the mail server and use that as our metric. The Microsoft Exchange Server 2007 workload is run in 64-bit Microsoft Windows Server 2008 Enterprise Edition on a virtual machine with four virtual CPUs and 8GB of memory.
E-Commerce Simulation
Databases running transactional workloads support a wide array of applications, typically as part of a multi-tier architecture. Databases tend to be resource intensive and exercise most server and infrastructure components. In many cases, database systems also face strict response-time demands. Transaction processing often exhibits bursty behavior, resulting in widely varying resource demands over time. The ability of the underlying platform to support usage spikes is critical to maintaining acceptable performance.
22
VMware, Inc.
DVD Store Version 2 (DS2) is a complete online e-commerce test application with a back-end database component, a Web application layer, and driver programs. (See http://www.delltechcenter.com/page/DVD+Store for additional information.) The DS2 driver simulates users logging into a Web server and browsing a catalog of products using basic queries. Users may select items for purchase then proceed to check out or continue shopping. Each Web server communicates with a database server that maintains user account and inventory data. The DS2 workload used in VMmark 2.1 utilizes four virtual machines in each tilethree Web servers and one database server. One Web server delivers a constant load to the database throughout each benchmark interval. The two remaining Web servers deliver periodic load to the database during the benchmark interval to create a bursty overall load profile and varying resource demands. For VMmark 2.1, each Web server is driven by 10 driver threads when active. The performance metric for this workload is the total number of transactions per minute. Minimum quality-of-service metrics must also be met. The DS2 workload used in each VMmark 2.1 tile utilizes four virtual machines, each running 64-bit Novell SLES 11. The three virtual machines in the DS2 Web tier (DS2WebA, DS2WebB, and DS2WebC) each run the Apache 2.2 Web server on virtual machines with two virtual CPUs and 2GB of memory. The DS2 database tier runs the MySQL database on a virtual machine with four virtual CPUs and 4GB of memory.
VMware, Inc.
23
24
VMware, Inc.
In addition to the software listed above, all client systems must also be running the STAF software package, a Java JDK, Cygwin, and Microsoft Exchange management tools. The prime client must also be running the STAX software package and up-to-date versions of PowerShell and the VMware vSphere PowerCLI.
VMware, Inc.
25
VMmark Harness
The VMmark Harness is a utility run on the prime client system that can start and stop the applications running on the workload virtual machines and can report the results of a test run. The VMmark Harness is based on the open-source Software Testing Automation Framework (STAF, see http://staf.sourceforge.net/index.php) and its companion execution engine, STAX. These tools support the development and running of distributed coordinated tests across heterogeneous machines and operating systems. The VMmark Harness consists of several STAX XML modules, the VMMARK2.CONFIG file, and several workload-specific configuration files. The main STAX module, vmmark2_main.xml, processes the VMMARK2.CONFIG file to configure the test to be run. Each workload has its own <workload>_functions.xml module that contains the workload-specific code needed to initialize the test, run the test, and collect the results. The VMMARK2.CONFIG file defines the actual test, identifying all the clients and server virtual machines involved in the test, the number of tiles to be run, and the workloads within each tile. After the VMMARK2.CONFIG file has been processed, the VMmark Harness performs pre-run system and timing validation and initiates the setup phase for the VMmark infrastructure operations and for each workload in each tile. After the setup has completed, the VMmark Harness simultaneously initiates the individual workloads in all the tiles. When the workload runs have completed, the harness again validates the timing, then collects the results into a results directory.
26
VMware, Inc.
VMware, Inc.
27
NOTE The standby server workload does not produce a metric that affects the benchmark score. However the standby server is required to answer to a periodic heartbeat request in order for the VMmark test to be considered valid. Likewise, DRS must be enabled to allow the platform to automatically balance resources during the benchmark run. DRS does not produce a metric but will affect the performance of other workloads by managing the overall resource allocations to improve performance and provide stability. The DVD Store implementation in VMmark 2.1 is a multi-tier workload containing three webserver virtual machines with varying load patterns accessing a single database virtual machine. For scoring purposes, each webserver generates a separate results file to be processed independently from the others. This approach provides a clearer understanding of platform behavior. These metrics are collected at frequent intervals during the course of the run. The standard VMmark 2.1 workload is designed to run for at least 3 hours with workload metrics reported every 60 seconds. This means that rather than having a single number upon completion of a test run, the user will have a series of numbers for each of the workloads. However, each workload score is defined as a single number: the average of a consecutive subset of the series of datapoints for that workload. Normalization allows the integration of the different component metrics into an overall score. A reference system is commonly used for normalization when computing benchmark scores. For example, SPEC CPU2000 (see http://www.spec.org/cpu2000/) takes this approach, using a Sun Ultra5_10 with a 300Mhz processor as its reference platform. VMmark 2.1 measures consolidation workloads within virtual environments and therefore requires a reference platform capable of successfully running a single tile. The steady state for the benchmark is defined as the middle two hours of the three-hour run. The first and last half hours are the ramp-up and ramp-down times, respectively. The steady state is further divided into three 40-minute sections. For each of the 40-minute sections we compute the overall result for the platform and select the median score of the three as the reported score.
28
VMware, Inc.
After a valid run, the metrics of the application workloads within each tile are computed and aggregated into a score for that tile. This aggregation is performed by first normalizing the different performance metrics (such as Actions/minute and operations/minute) with respect to a reference platform. Then a geometric mean of the normalized scores is computed as the final score for the tile. The resulting per-tile scores are then summed to create the application-workload portion of the final metric. The metrics for the infrastructure workloads are aggregated separately using the same mathematical technique of normalization with respect to a reference platform followed by the computation of the geometric mean. Unlike the application workloads, the infrastructure workloads are not scaled explicitly by the user. Consequently, the infrastructure workloads are compiled as a single group and no multi-tile sums are required. The final benchmark score is then computed as a weighted average of the application-workload component and the infrastructure-workload component. VMmark 2.1 gives weights of 80% to the application-workload component and 20% to the infrastructure-workload component. These weights were chosen to reflect the relative contribution of infrastructure and application workloads to overall resource demands. The benchmark helps measure the virtualization overheads of the individual workloads as well as the scalability of the entire system. Therefore results for multi-tile runs are reported as the aggregate score for all tiles, the individual scores for each of the tiles, and the scores for the workloads within the tiles as well as the individual scores for each infrastructure workload. If any of the workloads within any tile fails to run, produces errors during a run, or fails its minimum quality-of-service requirement, that entire VMmark run is considered to be invalid. This applies to programs running on both the servers and the client systems. Also, the configuration of the workloads, the versions of the benchmarks, operating systems, tools, and all other software used must conform to the specifications in the VMmark documentation. To illustrate the scoring methodology, consider the following two examples. The first example demonstrates how to compute the score for a single tile benchmark run, while the second example demonstrates how to compute the scores for a multiple-tile benchmark run. For these examples, assume the reference system had the scores shown in Table 1-4. Table 1-4. Example Reference System Workload Scores (Artificial Data)
Workload Name Mail server Standby Olio DS2WebA DS2WebB DS2WebC Clone and deploy vMotion Storage vMotion DRS Score 1000 actions/minute None 1000 operations/minute 1000 Transactions/minute 1000 Transactions/minute 1000 Transactions/minute 10 clones/hour 10 VM migrations/hour 10 VM migrations/hour None
VMware, Inc.
29
Table 1-5. Single-Tile Example Test System Workload Scores (Artificial Data)
Workload Name Mail server Standby Olio DS2WebA DS2WebB DS2WebC Clone and deploy vMotion Storage vMotion DRS Score 950 actions/minute None 940 operations/minute 1020 Transactions/minute 980 Transactions/minute 970 Transactions/minute 9 clones/hour 11 VM migrations/hour 9 VM migrations/hour None
To compute the score for this tile, you first compute each workload's normalized scores by dividing the score for each workload by the reference score for that workload: Mail server: Standby: Olio DS2WebA DS2WebB DS2WebC Clone and deploy vMotion Storage vMotion DRS 950/1000 n/a 940/1000 1020/1000 980/1000 970/1000 9/10 11/10 9/10 n/a = 0.95 n/a = 0.94 = 1.02 = 0.98 = 0.97 = 0.90 = 1.10 = 0.90 n/a
You would then combine the normalized scores for the application workloads using a geometric mean: (0.95 * 0.94 * 1.02 * 0.98 * 0.97)^(0.2) = 0.97
Next, you would combine the normalized scores for the infrastructure workloads using a geometric mean: (1.10 * 0.90 * 0.90)^(0.333333) = 0.96
Finally, you would combine the geometric means with a weighted average (80% for application workloads, 20% for infrastructure workloads): (0.8 * 0.97) + (0.2 * 0.96) = 0.97
The score for this tile is 0.97. For reporting, include this score as well as the individual scores for all of the workloads (both raw and normalized).
30
VMware, Inc.
Table 1-6. Multiple-Tile Example Test System Workload Scores (Artificial Data)
Workload Name Mail server Standby Olio DS2WebA DS2WebB DS2WebC Clone and deploy vMotion Storage vMotion DRS Tile 1 Score 1100 n/a 940 950 940 930 Tile 2 Score 1050 n/a 950 1000 1010 1020 21 22 11 n/a Tile 3 Score 990 n/a 890 990 1020 960 Tile 4 Score 1080 n/a 940 970 970 1050
The scores for the application workload tiles would be: Normalized scores: 0.97 1.01 0.97 1.00
The overall application component to the score would be the sum of these scores: 0.97 + 1.01 + 0.97 + 1.00 = 3.95
The score for the infrastructure workloads would be: Normalized score: 1.72
The overall score for the system would be the weighted average of these scores: (0.8 * 3.95) + (0.2 * 1.72) = 3.50
Along with the overall score, a valid test report must include both the individual tile scores and the workload scores (both raw and normalized).
VMware, Inc.
31
Reference Scores
A pair of identical HP ProLiant DL380 servers running VMware ESX Server 4.0 U1, build 208167 were used in the reference platform. Each server contained two 3.16 GHz quad-core Intel Xeon X5460 CPUs, and was configured with 32GB of memory. Storage was provided by an EMC Clariion CX3-20 disk array connected via a 4Gb/s fiber channel link and containing eight 15,000 RPM disks configured in RAID0. The servers were connected to the disk array using a Brocade DS-5000 fiber switch. Each server used a single 1Gigabit Ethernet link for vMotion. The systems were managed by a Virtual Center 4.0 U1 system. The load-generating client was an HP ProLiant DL360 G5 with one 2.66 GHz quad-core Intel Xeon X5355 CPU and 8GB of memory running 32-bit Microsoft Windows Server 2003 R2 with Service Pack 2. The client and the reference system were connected through a single 1 Gigabit Ethernet link. Network connectivity was provided by an HP ProCurve 5406zl switch. The reference scores obtained on this system are shown in Table 1-7. Table 1-7. Reference System Workload Scores
Workload Name Standby server Mail server Olio DS2WebA DS2WebB DS2WebC Clone and deploy vMotion Storage vMotion Score None 330.25 send mail actions/minute 4641.43 operations/minute 2199.18 operations/minute 1518.55 operations/minute 1058.05 operations/minute 4.0 DeployedVMs/Hour 16.0 vMotionedVMs/Hour 9.0 Storage vMotionedVMs/Hour
32
VMware, Inc.
VMware, Inc.
33
34
VMware, Inc.
This chapter describes the hardware and software required in order to perform VMmark benchmark testing. It consists of the following sections: VMmark Version and Settings Requirements on page 35 VMmark Hardware Requirements on page 35 VMmark Software Requirements on page 39 Software License Summary on page 40
VMware, Inc.
35
36
VMware, Inc.
The physical storage used for the virtual machines should be typical of a modern datacenter and should offer performance sufficient to meet the client virtual machines resource requirements without introducing delays that might affect the benchmark results. The physical network infrastructure used for virtual machine traffic should be typical of a modern datacenter and should offer performance sufficient to meet the client virtual machines resource requirements without introducing delays that might affect the benchmark results. All virtual clients must have identical resource, scheduling, and tuning configurations. Virtual Hardware for Virtual Clients When client functions are run in a virtual client, each virtual system must meet or exceed the following requirements: Virtual hardware version 7 or later. Four virtual CPUs 4GB of RAM 15GB of available disk space (for Windows Server 2003); 32GB of available disk space (for Windows Server 2008) One virtual network adapter per virtual client. This can be whatever virtual device type desired. Virtual client systems should not be resource constrained and should not be running services or applications unrelated to the benchmark.
Network Requirements
VMmark tests require a dedicated private gigabit (or faster) network between the server system and the client machine (or machines) and a separate dedicated vMotion network for infrastructure operations. Some configurations might need multiple network links for optimal performance.
Network Hardware
All components of this network (network interface cards, cables, and switches) should be at least gigabit rated, and all should be set to at least gigabit speeds. This is to ensure that the system performance is not limited by network bandwidth constraints, thus artificially skewing the benchmark results.
Network Topology
Connect the client system (or systems) to the server system through switches that are dedicated to the benchmark tests and are not shared with any other systems. Additionally, though the VMmark test systems may be connected to a company-wide network during setup, neither the client system (or systems) nor the server systems should have a network connection to any other network, whether an internal company network or the external Internet, during the VMmark tests. Use of a completely private network facilitates the configuration of the domain controller which is part of each tile and ensures that extraneous network traffic does not impact the VMmark tests. Configure the servers, each workload virtual machine, and each client system with a static IP address. Figure 2-1 illustrates a sample network configuration.
VMware, Inc. 37
Figure 2-1. Sample VMmark Benchmark Network Configuration (Not Shown: vCenter Server, VMmark 2.1 Multi-Host Setup, Dedicated vMotion Network)
Prime Client
Client
Server
Private Fibre Channel switch Optional SAN, iSCSI, or NFS (SAN shown)
SAN
38
VMware, Inc.
VMware, Inc.
39
Software Versions
The VMmark benchmark is designed to work with specific versions of the operating systems, workload software, and other software packages. Where it is relevant, specific versions are called out for each such software package, often with the notation or later (for example, STAF version 3.4.1 or later). When this notation is included, minor revisions later than the one specified can be used with VMmark, but major revisions can not. With a version number of the form X.Y (or X.Y.Z), a change in the value of X represents a major revision, while a change in the value of Y, or Z, or both Y and Z, represents a minor revision. Similarly, the addition of a service pack is considered a minor revision. In the case of operating systems, for both workload and client systems, the service pack or release can be later than specified in this guide, but the base version (for example, Windows Server 2008), the edition (for example, Enterprise Edition), and the bit architecture (32-bit or 64-bit) should not be changed. NOTE To avoid communication problems, we recommend that all clients and all workload virtual machines be running the same version of STAF.
Free Software
You can download the following free software packages from the Web: Cygwin environment STAF/STAX software Olio DVD Store 2 Java SDK VMware VMmark Harness (available only as part of the free VMmark download)
Evaluation Software
You can download evaluation versions of the following software packages from the Web: VMware vSphere (which includes vCenter Server and ESX) tc Server SLES 11 Linux (64-bit) Microsoft Outlook 2007 (standalone or included in Microsoft Office 2007)
Purchased Software
You must purchase licenses for the following software packages if you do not already own them:
40
VMware, Inc.
Microsoft Windows Server 2003 Enterprise Edition, 32-bit One or two copies per tile (one for the standby virtual machine and (optionally) one for that tiles client system). NOTE Any Service Pack 1 or later release of Windows Server 2003 Enterprise Edition, 32-bit may be used for the standby virtual machine, and any Service Pack 2 or later release of Windows Server 2003, 32-bit Enterprise Edition may be used for the client system. The instructions in this guide, however, are based on the use of Service Pack 2. The installation and configuration of other releases and service packs may vary slightly from these instructions. Microsoft Windows Server 2008 Enterprise Edition, 64-bit One or two copies per tile (one for the Mail Server and (optionally) one for that tiles client system). NOTE Though Windows Server 2008 Enterprise Edition, 64-bit with or without a service pack, and any release, may be used, the installation instructions in this guide are based on the use of Windows Server 2008 Enterprise Edition with Service Pack 2. The installation and configuration of other releases and service packs might vary slightly from these instructions. NOTE Each tile needs one client, and that client must be running either Microsoft Windows Server 2003 Enterprise Edition, 32-bit or Microsoft Windows Server 2008 Enterprise Edition, 64-bit. Thus in total each tile requires one Windows Server 2003 license, one Windows Server 2008 license, and one additional license of either type. Microsoft Exchange Server 2007 Enterprise Edition This is available as part of the Microsoft Developers Network (MSDN) Universal subscription. NOTE Because some of these packages may be available only in physical form (that is, CDs), order them early in the planning process to allow time for shipping.
VMware, Inc.
41
42
VMware, Inc.
This chapter describes the steps required in order to prepare the infrastructure for VMmark 2.1 tests. It consists of the following sections: Create the Virtualization Infrastructure on page 43 Create the VMmark Tiles on page 47
VMware, Inc.
43
Configure vCenter
1 Using the vSphere Client, create a new datacenter on your vSphere server (File > New > Datacenter). NOTE If theres already a datacenter on your vSphere server, use that one instead. 2 Create a cluster under the datacenter as follows: a b c Right-click on the new datacenter and select New Cluster.... At the Cluster Features window, enter a name for the cluster (recording the name for later use), click the box next to Turn on VMware DRS, then click Next. At the VMware DRS window, under Fully automated, move the Migration threshold: slider to the 4th option (from left to right), closer to the Aggressive label, then click Next. When the slider is in the correct place, the text below the slider should read Apply priority 1, priority 2, priority 3, and priority 4 recommendations. vCenter will apply recommendations that promise even a moderate improvement to the clusters load balance. At the Power Management window, leave Power Management at its default setting of Off, then click Next. At the VMware EVC window, choose the VMware EVC setting that best fits your expected hosts in the cluster, then click Next. At the Virtual Machine Swapfile Location window, choose the Swapfile Policy for Virtual Machines that best fits your benchmarking environment, then click Next. At the Ready to Complete window, click Finish.
d e f g 3 4 5
Add hosts to your cluster by right clicking on the cluster name and selecting Add Host.... In order to enable vMotion and Storage vMotion infrastructure operations, make sure that all the ESX hosts in your cluster can reach the same shared storage. Make sure that all hosts can vMotion to all other hosts within the cluster.
Configure Time Synchronization on the ESX Hosts and the vCenter Server
The time on the ESX hosts and on the vCenter Server need to be synchronized to a common NTP server. The following sections describe how to accomplish this.
44
VMware, Inc.
Navigate to the entry specified in the path column of Table 3-1. Right-click the entry and select Modify. If the Type in Table 3-1 is REG_DWORD, select the Decimal radio button. Enter the new data from Table 3-1. Click OK. Repeat for each entry in Table 3-1.
Type Data NTP 5 1
Still within W32Time, navigate to Parameters. Right click on NtpServer. Select Modify. Enter the DNS name or IP address of your NTP server. If you enter a DNS name (rather than an IP address) you must append ,0x1 to the end. NOTE Use the same NTP server to synchronize your vCenter Server system and all your hosts. (Remember which NTP server youre using, as some configurations will also use it for their prime client, as described in Install Microsoft Windows Server on a Physical System on page 63.)
Navigate to the entry specified in the path column of Table 3-2. Right-click the entry and select Modify. Select the Decimal radio button. Enter the new data from Table 3-2. Click OK. Repeat for each new entry in Table 3-2.
Type Data 900 3600 3600
Restart the time service by entering the following at a Command Prompt: net stop w32time && net start w32time
VMware, Inc.
45
Prepare the vSphere vCenter Server for the Deploy Infrastructure Operations
One of the operations in a VMmark 2 test is to deploy a server and upgrade its VMware Tools installation. In order to allow this, follow these steps: 1 Create a standby system virtual machine from an existing virtual machine with outdated VMware tools. VMware Tools must be installed but must be older than the oldest host in your cluster. For example, if you have a mix of ESX 4.0 U1 and ESX 4.0 U2 hosts in your cluster, you should install the tools from the ESX 4.0 initial release. See Prepare the Template for the Deploy Operation on page 124. Install the sysprep files needed for the Standby virtual machine on the system hosting the vSphere vCenter Server. Instructions to do this can be found in vSphere Basic System Administration, available on the VMware website. Using the vSphere vCenter Server's Customization Specifications Manager (View > Management > Customization Specification Manager), create a new OS customization specification that corresponds to your benchmarking environment. Take special care in filling out the Computer Name, Windows License, Password, Time Zone, and Networking options. This specification must allow a newly deployed virtual machine to be able to be customized and then pinged by the prime client, not conflicting with any other virtual machine names or IP addresses. Edit the newly-created customization specification: a b 5 6 At Administrator Password screen, select Automatically log on as the Administrator, then set Number of times to logon automatically: 100 times. At the Run Once menu, add the following command: secedit /configure /db c:\SignedOff.sdb /cfg c:\SignedOff.ini
Save the customization specification. If your cluster contains four or more hosts and you will be running four or more tiles, VMmark will attempt additional simultaneous Clone and deploy operations. The number of operations is half of the smaller of either the number of hosts or the number of tiles, rounded down to an integer. To prepare your environment, select the previously created OS customization specification and Duplicate it, making enough copies for all clone and deploy operations your environment will need. Once done, edit these copies to change the VMnames and IP addresses (noting them for later use, when you edit the VMMARK2.CONFIG file in Configure the VMmark Harness on page 75).
Move the ESX servers you will be testing into this cluster. NOTE Only ESX servers in this cluster will be used for the VMmark 2.1 test. Servers can be moved into and out of the cluster as needed for testing or they can be placed into maintenance mode to remove them testing.
46
VMware, Inc.
VMware, Inc.
47
NOTE For full harness functionality, we highly recommended that you adhere to the following naming conventions when creating the tiles and virtual machines: Tiles should be numbered, starting from zero. Example: Tile0, Tile1, Tile2 Virtual machines should be named StandbyN, MailserverN, OlioDBN, OlioWebN, DS2DBN, DS2WebAN, DS2WebBN, DS2WebCN, with N replaced by the appropriate tile number. For Example, for Tile0: Standby0 Mailserver0 OlioDB0 OlioWeb0 DS2DB0 DS2WebA0 DS2WebB0 DS2WebC0 And for Tile 1: Standby1 Mailserver1 OlioDB1 OlioWeb1 DS2DB1 DS2WebA1 DS2WebB1 DS2WebC1 If these naming rules are not adhered to, several areas of functionality during the benchmark run will be hampered. These are: automatic tile to host placement before run, virtual machine resources review (vCPU and memory) before run, and virtual machine powered on review before run.
48
VMware, Inc.
NOTE Unlike the other virtual machines, the mail server requires custom settings for each tile, because it acts as the domain controller for all the virtual machines in its tile. After the machine is fully configured, changing these settings is time consuming. It is most efficient to partially configure a virtual machine as a template, clone that virtual machine, and complete the configuration within each clone. 3 4 5 6 7 8 Follow the instructions in Make the Mail Server Virtual Machine a Domain Controller on page 120, and promote each of the Exchange virtual machines to be a domain controller. Follow the instructions in Install Microsoft Exchange Server 2007 on page 121, and install the software on each of the Exchange virtual machines. Follow the instructions in Configure Microsoft Exchange Server on page 121, and configure each of the Exchange virtual machines. Follow the instructions in Update Exchange Server 2007 on page 122, and update each of the Exchange virtual machines. Follow the instructions in Increase the Transport Database Cache Size on page 122, and increase the cache size on each of the Exchange virtual machines. Follow the instructions in Configure STAF to Start Automatically on page 123, and configure each of the Exchange virtual machines.
VMware, Inc.
49
Figure 3-1. Overview of Virtual Machine Creation for Mail Server Workloads
Create Mail Server VM Template MailServerTemplate Install MS Windows Install VMware Tools
mailserver0 Configure
mailserver1 Configure
mailserver2 Configure
...
Install MS Exchange
Install MS Exchange
Install MS Exchange
50
VMware, Inc.
VMware, Inc.
51
Configure
standby1
standby2
standby3
...
52
VMware, Inc.
5 6
VMware, Inc.
53
OlioDB1
OlioDB2
OlioDB3
...
54
VMware, Inc.
5 6
VMware, Inc.
55
OlioWeb1
OlioWeb2
OlioWeb3
...
56
VMware, Inc.
5 6 7
VMware, Inc.
57
Figure 3-5. Overview of Virtual Machine Creation for DVD Store 2 Database
Prepare Database
DS2DB1
DS2DB2
DS2DB3
...
58
VMware, Inc.
5 6
VMware, Inc.
59
Figure 3-6. Overview of Virtual Machine Creation for DVD Store 2 Web
...
60
VMware, Inc.
This chapter describes the configuration required for the client machines, one of which is needed for each tile in the VMmark Benchmark test. This includes the operating system, the client software for workload virtual machines, and, on the prime client system, the VMmark Harness that controls the workloads. The chapter consists of the following sections: Prepare the Client Machine on page 61. Install Microsoft Windows Server on the Client Systems on page 63. Configure Microsoft Windows on the Client Systems on page 66. Install and Configure the VMmark Harness on page 75. Install the General Software on page 69. Create Additional Client Systems on page 83. Install and Configure the Workload Client Software on page 84.
VMware, Inc.
61
To clone the mailserver template workload virtual machine: 1 Clone the mailserver0 template you created in Create and Configure the Mail Server Virtual Machines on page 105, naming the clone client-template. NOTE The client virtual machines must not be run on a host that is part of the cluster under test. The prime client must be a physical machine. 2 3 4 Change the virtual machine memory size to 4GB. Remove the second virtual disk (used in the mailserver for the database and backup drives). Skip ahead to Install a Java JRE on page 72 and follow the instructions from that point forward.
To create a client virtual machine from scratch, follow these steps: Using the New Virtual Machine wizard in the VMware vCenter Client (Inventory > File > New > Virtual Machine), configure a new virtual machine with the following settings: 1 2 3 4 5 When you are asked to Select the configuration for the virtual machine, select the Custom radio button, then click Next. When you are asked to Specify a Name and Location for this Virtual Machine, enter client-template, then click Next. When you are asked to Select a Datastore..., select your desired datastore, then click Next. When you are asked for a Virtual Machine Version, select Virtual Machine Version: 7, then click Next. When you are asked to Specify the guest operating system..., select the Microsoft Windows radio button and in the Version: window choose Microsoft Windows Server 2008, Enterprise Edition (64-bit) or Microsoft Windows Server 2003, Enterprise Edition (32-bit), as appropriate, then click Next. When you are asked to specify the Number of virtual processors, select 4, then click Next. When you are asked the Memory Configuration, select 4GB, then click Next. When you are asked to Create Network Connections, set the number of NICs to 1, choose the network to use, choose the Adapter type, make sure Connect at Power On is checked, then click Next. NOTE If you will be using the high-performance VMXNET3 adapter, choosing it at this point will save a few steps later. If you do so, however, you might not have network access from the virtual machine until you install VMware Tools, which includes the custom VMXNET3 driver. 9 10 11 When asked Which SCSI controller type would you like to use?, choose either the LSI Logic Parallel or LSI Logic SAS, then click Next. When asked to Select the type of disk to use, select Create a new virtual disk, then click Next. When asked to Specify the virtual disk size and provisioning policy, enter 32GB, leave the Disk Provisioning options unchecked, select a location (either Store with the virtual machine or Specify a datastore:), then click Next. In the Advanced Options window, leave the options unchanged: Virtual Device Node: SCSI (0:0) Mode: Independent: leave unselected Then click Next. 13 At the Ready to Complete window, click Finish to create the virtual machine.
6 7 8
12
Once the virtual machine is ready, proceed to install Microsoft Windows Server, as described in Install Microsoft Windows Server on the Client Systems on page 63.
62
VMware, Inc.
VMware, Inc.
63
8 9
Still under the Console tab in the vCenter Client, click within the center of the console window (you may see no change, or your cursor may disappear). Restart the virtual machine by pressing <Ctrl><Alt><Insert> (this gets passed to the virtual machine as <Ctrl><Alt><Delete>, and causes it to reboot). The virtual machine will boot from the ISO image. NOTE If you have problems getting the system to boot from the ISO image, you can press <Esc> as the virtual machine is booting. This brings up a boot menu, from which you can select CD-ROM Drive.
10 11 12 13
Follow the Microsoft Windows installation prompts until the installation is complete. When the installation is complete and the system reboots, provide a new Administrator password, then follow the subsequent Windows prompts, accepting the defaults. After the Windows Desktop appears, an Initial Configuration Tasks wizard will come up. Make any configuration changes required, then click Close. Adjust the screen resolution if desired (Start Menu > Control Panel > Personalization > Display Settings).
For VMware ESXi: 1 2 Power-on the virtual machine. From a web browser on the vCenter Server system, navigate to http://packages.vmware.com/tools/esx, select the ESX version and host operating system you're running, and download its .iso file, saving it to a file system accessible from the system running the VMware vCenter Client. Click the Connect/disconnect the CD/DVD... button in the menu bar (it looks like a CD with a wrench in front of it), select CD/DVD Drive 1, then select Connect to ISO image... (either on local disk, or on a datastore). Browse to the VMware Tools .iso file you just downloaded, select it, and click Open. When a Welcome to the installation wizard for VMware Tools window appears, this time inside the virtual machine console (it may take a few minutes), click Next.
4 5
64
VMware, Inc.
6 7 8 9
When the Setup Type window appears, choose Typical, and click Next. When the Ready to Install the Program window appears, click Install. When the Installation Wizard Completed window appears, click Finish. At the VMware Tools window, click Yes to allow the system to be restarted.
Turn off automatic updates by following these steps: 1 2 3 4 Open the Control Panel (Start Menu > Settings > Control Panel). At the Control Panel, double-click Automatic Updates. At the Automatic Updates window, make sure the radio button for Turn off Automatic Updates is selected, then click OK. Close the Control Panel.
For Windows Server 2008: Install all available windows updates, both high-priority and optional, but dont turn on automatic updating, by following these steps: 1 2 3 4 5 6 7 Run Windows Update (Start Menu > All Programs > Windows Update). In the Windows Update window, click Change Settings. Under Important Updates select Never check for updates (not recommended), then click OK. Click the Check for updates button. Install any new Windows Update software, then install all available updates. When the updates are complete, restart the system by clicking Restart now. After the system restarts, check again for updates. If there are more available, install them, restart the system, and repeat until no more updates appear.
VMware, Inc.
65
For Windows Server 2008: 1 2 3 4 5 6 7 8 9 Open the Start menu and select Server Manager. In the left pane of the Server Manager window, click Roles. In the right pane of the Server Manager window, click Add Roles. At the Before You Begin window, click Next. At the Select Server Roles window, add a checkmark next to Web Server (IIS). When the Add features required for Web Server (IIS)? window appears, click the Add Required Features button. Back at the Select Server Roles window, click Next. At the Web Server (IIS) window, click Next. At the Select Role Services window add checkmarks to the following role services: Basic Authentication Windows Authentication Digest Authentication Dynamic Content Compression IIS 6 Metabase Compatibility IIS 6 Management Console Still in the Select Role Services window, click Next. At the Confirm Installation Selections window, click Install. At the Installation Results window, wait for the installation to complete, then click Close. Close the Server Manager window.
VMware, Inc.
10 11 12 13
66
3 4 5 6
Save the boot.ini file (File > Save) and close Notepad. Click OK to close the Startup and Recovery window. Click OK to close the System Properties utility. Reboot the client system.
Install vSphere PowerCLI 1 2 Download the latest version of VMware vSphere PowerCLI from: http://www.vmware.com/support/developer/PowerCLI/ Install the package on the client system. a b Accept all defaults, including VIX installation. After vSphere PowerCLI finishes installing, wait for the VIX installation to finish before continuing.
VMware, Inc.
67
Install vSphere PowerCLI 1 2 Download the latest version of VMware vSphere PowerCLI from: http://www.vmware.com/support/developer/PowerCLI/ Install the package on the client system. a b Accept all defaults, including VIX installation. After vSphere PowerCLI finishes installing, wait for the VIX installation to finish before continuing.
68
VMware, Inc.
Configure the Windows Server 2008 Firewall to Allow STAFProc.exe to Pass Through
Windows Server 2008 includes a firewall. Follow these steps to configure the Windows firewall to allow STAF to pass through: 1 2 3 4 5 6 7 8 Open the Start menu then select Control Panel. In the Control Panel window, double-click Windows Firewall. In the Windows Firewall window, click Allow a program through Windows Firewall. In the Windows Firewall Settings window click the Add Program... button. In the Add a Program window, click Browse. In the Browse window, navigate to C:\staf\bin\STAFProc.exe, then click the Open button. Back at the Add a Program window, click OK. Back at the Windows Firewall window click OK.
Open the Start menu, and choose Control Panel > Scheduled Tasks > Add Scheduled Task. When the Scheduled Task Wizard appears, click Next.
69
Scroll to Start STAF 3.4.4, select it, and click Next. (The exact entry will vary depending on which version of STAF you have installed. You might have to browse to C:\STAF\startSTAFProc.bat.) Select the When my computer starts radio button, and click Next. NOTE For the prime client, select the When I log on radio button instead of the When my computer starts radio button.
5 6 7 8 9 10 11
Enter (or confirm) the Administrator user name, enter password, and click Next. Remove <computername> if it appears as a prefix. Check the Open Advanced properties for this task when I click Finish box. Click Finish. When the Start STAF properties window opens, select the Settings tab. If the box labeled Stop the task if it runs for [72] hours is checked, uncheck it. Click to OK to close the properties window. Restart windows.
For Windows Server 2008: 1 2 3 4 5 6 Open the Start menu then select Control Panel. In the Control Panel window, double-click Administrative Tools. In the Administrative Tools window, double-click Task Scheduler. In the Task Scheduler window, in the right-most pane (Actions), click Create Basic Task. In the Create Basic Task Wizard window, in the Name: filed, enter STAF, then click Next. In the Task Trigger window, select When the computer starts, then click Next. NOTE For the prime client, select the When I log on radio button instead of the When the computer starts radio button. 7 8 9 10 11 12 13 14 15 16 17 18 In the Action window, select Start a program, then click Next. In the Start a Program window, click Browse, go to C:\STAF\, select the startSTAFProc Windows Batch File (not the startSTAFProc Icon), then click Open. Back at the Start a Program window, click Next. At the Summary window, add a check mark next to Open the Properties dialog for this task when I click Finish, then click Finish. At the STAF Properties (Local Computer) window, under the General tab, select the Run whether user is logged on or not radio button. Click the Change User or Group... button. At the Select User or Group window, enter the Administrator username and click OK. Back at the STAF Properties (Local Computer) window, select the Settings tab and remove the check mark next to Stop the task if it runs longer than:, then click OK. At the Task Scheduler window, enter the administrator password, then click OK. Close the Task Scheduler window. Close the Administrative Tools window. Restart windows.
70
VMware, Inc.
VMware, Inc.
71
72
VMware, Inc.
Run the Cygwin setup utility, setup.exe, that you saved to the Desktop earlier. At the Cygwin Net Release Setup Program window, click Next. At the Choose A Download Source window, select Install from Local Directory and click Next. Select the directory where you made the Cygwin install files available (probably a local directory if you are still on client 0 or a shared network directory if you are on another client), leave the All Users radio button selected, and click Next. Accept the defaults until the Select Packages window appears. At the top of the list, next to the word All, click once on the word Default. The status of all the packages will change from Default to Install. Click Next. If you see a Resolving Dependencies window, accept the additional packages required and click Next. At the Create Icons window, click Finish.
7 8 9 10 11
Follow these steps to configure the Cygwin environment: 1 2 3 4 5 Open a Cygwin shell (Start Menu > All Programs > Cygwin > Cygwin Bash Shell). Run the following command: cygserver-config When asked Do you want to install cygserver as a service?, answer yes and press <Enter>. The script will install the service, then display Basic Cygserver configuration finished. Have fun!. Close the Cygwin shell. Set the CYGWIN=server and Path environment variables as follows:
VMware, Inc.
73
For Windows Server 2003: a b c d e f g h Open the System Properties window (Start Menu > Control Panel > System). In the System window, select the Advanced tab. Click the Environment Variables button. Below the System variables window, click New. In the Variable name field enter CYGWIN, in the Variable value field enter server, then click OK. In the System variables window, select the Path variable, then click Edit. At the end of the Variable value, append: ;C:\cygwin\bin Click OK three times to exit.
For Windows Server 2008: a b c d e f g h i 6 7 Open the Start menu then select Control Panel. In the Control Panel window, double-click System. In the System window, click Advanced system settings. Click the Environment Variables button. Below the System variables window, click New. In the Variable name field enter CYGWIN, in the Variable value field enter server, then click OK. In the System variables window, select the Path variable, then click Edit. At the end of the Variable value, append: ;C:\cygwin\bin Click OK three times to exit.
Reboot the client system. To verify that Cygwin started automatically, open a Windows command prompt and type: net start If Cygwin is running you will see CYGWIN cygserver within the alphabetical output of this command.
74
VMware, Inc.
VMware, Inc.
75
# Number of Tiles to Run TILES=1 # ------------------------------------------------------------------# Infrastructure Configuration Settings # ------------------------------------------------------------------VCServerHOSTNAME="vcserver1" VCServerUSER="Administrator" VCServerPASSWORD="" VCServerCLUSTER="cluster0" Deploy/Templates="StandbyTemplate1" Deploy/OScustomizations="StandbyCust StandbyCust2" Deploy/DeployLUNs="CX3-80-Lun24 CX3-80-Lun23" Deploy/DeployVMs="DeployVM1 DeployVM2" # - Optional Settings - defaults shown # - Warning : changing values may make resulting runs non-compliant # Deploy/DELAYTIME="170" # Deploy/UpgradeTools="1" # Deploy/BurstQueueSize="auto" # Deploy/DeployDelayBetween="300" # # # # # # - Optional Settings - defaults shown - Warning : changing values may make resulting runs non-compliant Vmotion/Workloads="OlioDB" Vmotion/VMotionDelayBetween="180" Vmotion/BurstQueueSize="auto" Vmotion/DELAYTIME="150"
SVmotion/TargetLUNs="CX3-80-Lun21 CX3-80-Lun21" # - Optional Settings - defaults shown # - Warning : changing values may make resulting runs non-compliant # SVmotion/Workloads="Standby" # SVmotion/SleepBetween="300" # SVmotion/BurstQueueSize="auto" # SVmotion/DELAYTIME="160" # - Note : Vmotion and SVmotion infrastructure operations can not operate on the same workload(s) # - at the same time. # ------------------------------------------------------------------# Workload Configuration Settings # ------------------------------------------------------------------MailServer/MailPassword="" MailServer/MailDomains="maildomain0 maildomain1" MailServer/MailQualifier="eng.vmware.com" # - Note : MailQualifier must be 3 parts : For example "eng.vmware.com" # # - Optional Settings - defaults shown # - Warning : changing values may make resulting runs non-compliant # MailServer/SKIPRESTORE="0" # MailServer/DELAYTIME="12"
# # # # # # # # # # # # #
- Optional Settings - defaults shown - Warning : changing values may make resulting runs non-compliant OlioWeb/SKIPRESTORE="0" OlioWeb/DELAYTIME="5" OlioWeb/RAMPUP="300" OlioWeb/RAMPDOWN="300" OlioWeb/SCALE="400" OlioWeb/FINALIZE="10" OlioWeb/OLIORAIN="1" OlioWeb/FinalizeGlassFish="0" OlioDB/SKIPRESTORE="0" OlioDB/SCALE="400"
76
VMware, Inc.
# # # # # # # # # # # # # # #
- Warning : changing values may make resulting runs non-compliant DS2WebA/SKIPRESTORE="0" DS2WebA/DELAYTIME="8" DS2WebB/SKIPRESTORE="0" DS2WebB/DELAYTIME="10" DS2WebB/IterationTimeSlice="240" DS2WebB/DelayTimeSlice="60" DS2WebC/SKIPRESTORE="0" DS2WebC/DELAYTIME="15" DS2WebC/IterationTimeSlice="180" DS2WebC/DelayTimeSlice="120" DS2DB/SKIPRESTORE="0"
# - Optional Settings - defaults shown # - Warning : changing values may make resulting runs non-compliant # Standby/DELAYTIME="2" # ------------------------------------------------------------------# Testbed and Environment Configuration Settings # ------------------------------------------------------------------# Set up the list of client systems - must have # at least as many clients as tiles. CLIENTS="client0 client1" # Workload specific list of Server VM Hostnames MailServer/SERVERS="Mailserver0 Mailserver1" Standby/SERVERS="Standby0 Standby1" OlioWeb/SERVERS="OlioWeb0 OlioWeb1" OlioDB/SERVERS="OlioDB0 OlioDB1" DS2WebA/SERVERS="DS2WebA0 DS2WebA1" DS2WebB/SERVERS="DS2WebB0 DS2WebB1" DS2WebC/SERVERS="DS2WebC0 DS2WebC1" DS2DB/SERVERS="DS2DB0 DS2DB1" # - Note: For best results follow the above naming convention # # # # # # # # # # # Reporter Settings REPORTER=0 REPORTERDIR="/cygdrive/c/vmmark2/tools/" ScriptName="vSphere-get-config.sh" Error handling This will determine how the harness deals with errors during the phases before running. By setting ERRORIMMEDIATE to 1, the harness will exit upon finding the first error (as opposed to continuing through all the remaining work for that phase). ERRORIMMEDIATE=0
################################################################ # Standard Defaults # # All parameters below this line have the standard default # values listed. Normally these values do not require # changing. For the path values, we recommend that you # configure the testbed using the standard path names as # this helps facilitate debugging. There are several numeric # values that have occasionally been shown to be useful for # benchmarkers, but care should be taken when modifying these # values. Uncommenting these parameters will be denoted as # "Overriding Required Default". Changing key parameters # such as RUNTIME will cause the test run to be non-compliant. # ################################################################ # Set the RUNTIME for the test. The Default
VMware, Inc.
77
# for a Fully Compliant test is 10800 secs # (3 hours). Changing this value can make # your test non-compliant ###RUNTIME=10800 # TILEDELAY=seconds # # Delays the start of the tile N by TILEDELAY * N (secs) and also # increments the runtime of the workloads by TILEDELAY * (#TILES - N - 1) # to compensate for the delay. No delay if set to 0. ###TILEDELAY=60 # FLAG to control display/logging of Info/Debug messages # when debugSTAXUtilLogAndMsg is called # if == 0: No messages are displayed/logged # if != 0: Messages are displayed and logged ###DEBUGFLAG=0 # This is a list of the workloads to be invoked # this is to allow a nonstandard list of workloads # to be run with this harness as long as the template # workload functions are in the vmmark/xml directory. # For a fully compliant test all 6 workloads must be # used (default) ###WORKLOADLIST="Standby MailServer OlioWeb OlioDB DS2WebA DS2WebB DS2WebC DS2DB" # This is a list of the infrastructure operations to be invoked # this is to allow a nonstandard list of infrastructure operations # to be run with this harness as long as the template # workload functions are in the vmmark/xml directory. # For a fully compliant test all 3 infrastructure operations must be # used (default) ###INFRASTRUCTURELIST="Deploy Vmotion SVmotion" # Flag to disable the Cluster VM Mapping routines ###DoClusterMapping=1 #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # Note: Please observe the special formatting used with # some of the non-numeric character strings in various # parameter settings. Quotes, double backslashes, %u, # and use of path names of the form "C:\Progra~1\... # are required where used in the sample VMMARK2.CONFIG # files to avoid character striping by the shells or # to avoid the use of path names with spaces which are # not supported in this file. #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # This directory is the location of the # Harness code ###IMPORTDIR=c:\vmmark2\xml # This is the location of any config files # referenced by the harness code. ###CONFIGDIR=c:\vmmark2 # This is a tmp directory for scratch files # the harness creates ###TMPDIR=c:\vmmark2\tmp # # # # # # # # This is the path on the VMmark clients that contains the individual workload directories. The directory on each client must be numbered by that client's tile number (i.e., vclient0, vclient1, etc.). The VMmark Harness software automatically replaces "%u" in the path below with the appropriate tile number. Note: The extra backslash is to escape the backslash-v that was being treated as a control char when passed
78
VMware, Inc.
# to windows batch files. ###CLIENTROOTDIR=C:\\vclient%u # Parallelize Workload Setup # # Set to 0 to disable ###PARALLELSETUP=1 # FLAG to control cleaning up results files after they've been # copied into the vmmark/results/Results_<datestamp> directory # if set to 0, Cleanup of files will be skipped. ###CLEANUPFLAG=1 # # Post Process Results # Disabled by default except for full runs where: # RUNTIME=10800 and WORKLOADS="<list of all 6>" # Note: %u will be #Tiles in run # The output is sent to: vmmark/results/Results_<timestamp>/Score_#_tile.out # The working directory is vmmark/results/Results_<timestamp> # To post process partial runs, set flag to 1 and modify the post processing # command as needed. # ###POSTPROCESSFLAG=0 ###POSTPROCESSCMD="C:\\cygwin\\bin\\perl -f C:\\vmmark2\\tilescore.pl -t %u" #02112011
VMware, Inc.
79
In the parameters folder, add the registry entries listed in Table 4-2: a b a b c d e f Create the new entry (Edit Menu > New > DWORD Value). Type the name of the new entry (from Table 4-2). Right-click the new entry. Select Modify. Select the Decimal radio button. Enter the new data (from Table 4-2). Click OK. Repeat for each new entry.
Name MaxFreeTWTcbs MaxUserPort TcpTimedWaitDelay TcpWindowSize Type DWORD Value (REG_DWORD) DWORD Value (REG_DWORD) DWORD Value (REG_DWORD) DWORD Value (REG_DWORD) Data 100000 65534 60 65535
Navigate to the following registry folder: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\windows\CurrentVersion\Internet Settings Add the registry entry listed in Table 4-3: a b a b c d Create the new entry (Edit Menu > New > DWORD Value). Type the name of the new entry (from Table 4-3). Right-click the new entry. Select Modify. Select the Decimal radio button. Enter the new data (from Table 4-3).
80
VMware, Inc.
e
Action Modify
Click OK.
Name ProxySettingsPerUser Type DWORD Value (REG_DWORD) Data 0
VMware, Inc.
81
For Windows Server 2008: 1 Obtain access to the 64-bit Exchange Server 2007 installation file you used for the Exchange installation in the mailserver workload virtual machine (Install Microsoft Exchange Server 2007 on page 121). NOTE If you download this file from scratch, you must make sure to use the same service pack version (if any) for the Exchange Management Tools in the clients and for the Exchange mail server in the workload virtual machines. If you used Exchange Server 2007 Service Pack 2 in the mail server workload virtual machines, you would download the 64-bit version (E2K7SP2EN64.exe) from: http://www.microsoft.com/downloads/details.aspx?FamilyID=4c4bd2a3-5e50-42b0-8bbb-2cc9afe3216a 2 Save the Exchange Server 2007 install file to your client system for use in Install Exchange Server 2007 Tools on page 86.
Download LoadGen as follows: 1 Download the LoadGen tool (version 08.02.0045 or later) from: 32-bit version:
http://www.microsoft.com/downloads/details.aspx?FamilyId=DDEC1642-F6E3-4D66-A82F-8D3062C6FA98
64-bit version
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=0fdb6f14-1e42-4165-bb17-96c83916c3ec
Save the LoadGen install file to your client system for use in Install and Configure LoadGen on the Client on page 87.
3 4 5 6 7 8
82
VMware, Inc.
VMware, Inc.
83
For Windows Server 2008 1 2 3 4 5 On the client system, open the Start menu, then select Control Panel > Network and Sharing Center. In the Network and Sharing Center window, under Network, find the Local Area Connection entry and click View Status. In the Local Area Connection Status window, click the Properties button. Select Internet Protocol Version 4 (TCP/IPv4), then click the Properties button. In the Internet Protocol Version 4 (TCP/IPv4) Properties window, click the Advanced button.
84
VMware, Inc.
6 7 8 9 10 11
In the Advanced TCP/IP Settings window, select the DNS tab. Below DNS server addresses, in order of use:, click Add. Enter the IP address of this tiles mail server, then click Add. Select the newly-added IP address and use the arrows at the right to move it to the top of the list. Click OK twice, then click Close twice. Close the Network and Sharing Center window.
6 7 8 9 10
For Windows Server 2008 1 2 3 4 5 6 7 On the client system, open the Start menu, and select Control Panel. In the Control Panel double-click System. Select the Advanced System Settings. Select the Computer Name tab. Click the Change button. Under Member of select the Domain radio button. Enter the fully-qualified domain name that you used when you created the mail server domain. This should be in the format maildomainN.your.company.com, where N is the tile number that this virtual machine will be part of, and your.company.com is your companys domain name. Click OK. Enter a user name and password (the domain controllers administrator account and password will work).
8 9
VMware, Inc.
85
10 11
Click OK. When the window appears welcoming you to the new domain, click Restart Computer.
8 9
For Windows Server 2008: 1 2 3 4 5 6 7 Log in as the domain administrator. Run the Exchange Server 2007 install file you obtained in Obtain Exchange Server 2007 and LoadGen on page 81 (i.e., E2K7SP2EN64.exe if youre using Service Pack 2). At the Extraction Complete message, click OK. Double-click to file setup.com. Choose Install Microsoft Exchange Server 2007 SP2. (Other Service packs will be slightly different, but choose the relevant install option.) Accept the defaults until you get to the Installation Type menu, where you should choose Custom Exchange Server Installation, then click Next. At the Server Role Selection window, place a checkmark in the box next to Management Tools and click Next. If you see a warning about Host (A) record, you can safely ignore it. At the Readiness Checks window, after the checks are completed, click Install. Check for updates via Microsoft update.
8 9
86
VMware, Inc.
Edit the LoadGen Initialization Template 1 2 Use Notepad to open the file vclientN/mailserver/vmmark2initializationtemplate.xml from the VMmark 2.1 kit. Find the ClientAccessServers block, which will look like this: <ClientAccessServers> <string>mailserverN.maildomainN.YOUR_3_PART_DOMAIN_NAME</string> </ClientAccessServers> Within the ClientAccessServers block, replace the Ns in mailserverN and maildomainN with the tile number youre configuring, replace YOUR_3_PART_DOMAIN_NAME with your fully-qualified domain name, e.g. your.company.com, which must contain three parts. (Note that in the VMMARK2.CONFIG file this three-part domain name is referred to as the MailQualifier.) The following line appears in two different places in the XML file:
<LdapBaseDn>OU=Contacts,OU=LoadGen Objects,DC=maildomainN,DC=YOUR_DOMAIN_NAME_PART_1,DC=YOUR_DOMAIN_NAME_PART_2,D C=YOUR_DOMAIN_NAME_PART_3</LdapBaseDn>
In both locations, replace the N in maildomainN with the tile number youre configuring, replace YOUR_DOMAIN_NAME_PART_1, YOUR_DOMAIN_NAME_PART_2, and YOUR_DOMAIN_NAME_PART_3 to match your domain name. For example, if your fully qualified domain name is your.company.com, enter: DC=your,DC=company,DC=com 5 Find the section that begins with the TargetForest line, which will look like this: <TargetForest>maildomainN</TargetForest> <DirectoryUsername>YOUR_MAILSERVER_ADMINISTRATOR_USERNAME<DirectoryUsername> <DirectoryPassword>YOUR_MAILSERVER_ADMINISTRATOR_PASSWORD</DirectoryPassword> <DirectoryDomain>maildomainN</DirectoryDomain> <MasterPassword>YOUR_MAILSERVER_MASTER_PASSWORD</MasterPassword> <MasterDomain>maildomainN</MasterDomain> Replace the N in <TargetForest>maildomainN</TargetForest> with the tile number youre configuring. Insert your mailserver administrator username in place of YOUR_MAILSERVER_ADMINISTRATOR_USERNAME. Insert your mailserver password in place of YOUR_MAILSERVER_ADMINISTRATOR_PASSWORD. Replace the N in <DirectoryDomain>maildomainN</DirectoryDomain> with the tile number youre configuring. Insert your mailserver password in place of YOUR_MAILSERVER_MASTER_PASSWORD. (This will be the same as the YOUR_MAILSERVER_ADMINISTRATOR_PASSWORD from Step 8.) Replace the N in <MasterDomain>maildomainN</MasterDomain> with the tile number youre configuring. Save and close the vmmark2initializationtemplate.xml file.
6 7 8 9 10 11 12
VMware, Inc.
87
Configure LoadGen 1 2 3 4 5 6 7 8 9 10 Start LoadGen (Start Menu > All Programs > Microsoft Exchange > Exchange Load Generator). Click Start a new test. Select Use the following saved configuration file: and browse to C:\vclient0\mailserver\vmmark2initializationtemplate.xml. Click Continue. Click Continue with recipient management. On the User Settings page, leave Mailbox Database set to 0, under the vmmark subheading, set lpriv1 to 500 and lpriv2 to 500, then click Continue. On Advanced recipient settings page, click Continue and wait for recipient creation to complete. On the Specify test user groups page, click Continue. On the Remote configurations page, click Continue. On the Configuration Summary page, click Start the initialization phase (recommended before running the test) and wait for mailbox initialization to complete.
After a message appears saying that the Exchange service was stopped successfully, defragment the Exchange database: a b Open a command prompt window (Start > Command Prompt). Enter the following commands: eseutil /d e:\vmmark\lpriv1.edb eseutil /d e:\vmmark\lpriv2.edb Close the command prompt window.
c 4
Copy the database files from E:\vmmark to F:\ (that is, from the vmmark directory of E: to the root directory of F:) as follows: a b c d e Open the database drive (Start Menu > Computer, then double-click on the Database drive (this should be drive E:\). Double click on the vmmark directory. Select all files in the vmmark directory (<Ctrl>-A), and copy them to the clipboard (<Ctrl>-C). Open the backup drive (Start Menu > Computer, then double-click on the Backup drive (this should be drive F:\). Paste the files from the clipboard to the backup drive (<Ctrl>-V).
88
VMware, Inc.
f 5
After the files are copied, restart Exchange Services: a b c d e Open the Start menu then select Control Panel. In the Control Panel window, double-click Administrative Tools. In the Administrative Tools window, double-click Services. In the Services window, scroll to Microsoft Exchange Information Store. Right-click Microsoft Exchange Information Store and select Start. (This operation may take a few minutes.)
VMware, Inc.
89
90
VMware, Inc.
This chapter describes the process of running the VMmark benchmark. It consists of the following sections: Tile Placement on page 91 Running the VMmark Harness on page 91 Running Multiple-Tile Benchmarks on page 93 VMmark Results Files on page 94 Creating and Submitting a VMmark Full Disclosure Report on page 95 Running VMmark without STAXMonitor on page 98
Tile Placement
For a compliant run, each tile's workload virtual machines should be placed on a single host, rotating through the hosts in the cluster in a round-robin fashion until all tiles are placed. For example in a three-tile, two-host configuration, all of tile 0's and tile 2's workload virtual machines would be on host 0 and all of tile 1's workload virtual machines would be on host 1. If the naming conventions specified in this guide are followed, the VMmark harness will automatically use vMotion to move the workload virtual machines to the correct host at the beginning of every run. If non-standard names are used, the VMmark harness will attempt to place those workload virtual machines it recognizes and will leave the remaining workload virtual machines on their original hosts.
VMware, Inc.
91
5 6
In the Filename box, enter: C:\VMmark2\xml\vmmark2_main.xml Under Job Options, in the Job Name box, enter an optional suffix to be appended to the name of the results directory. For example, if you enter 30-minutes-3-tile, the results file will be located in a directory called: C:\vmmark\results\Results_<timestamp>_30-minutes-3-tile Click the Function tab. Select the default radio button. Under Arguments, click the Clear button. In the Arguments box enter: { 'CONFIGFILE' : r'C:\vmmark2\VMMARK2.CONFIG' } Click the Submit New Job button.
7 8 9 10 11
The STAX Job Monitor window opens and STAX starts the VMmark Harness. The current status of the running workloads is shown in this window. NOTE After the above information has been entered, you can use the Resubmit Previous Job button. The names entered are remembered across restarts of the Monitor. STAX will locate the latest VMMARK2.CONFIG file and the XML Harness code each time.
92
VMware, Inc.
VMware, Inc.
93
94
VMware, Inc.
Configure the Prime Client to Log Into Virtualization Hosts Without a Password
In order for the VMmark harness to automatically run the reporting script you must generate SSH keys on the prime client and on each virtualization host. This task typically needs to be performed only once. NOTE For a sample script to configure this automatically in ESX (but not ESXi), visit the Documents tab in the VMmark section of the VMware Communities at: http://communities.vmware.com/community/vmtn/general/performance/vmmark To do this manually in VMware ESX (as opposed to ESXi, which is documented in the next section): 1 2 3 Log into the VMware ESX server console. Open the SSH configuration file for editing: vi /etc/ssh/sshd_config Search for PermitRootLogin under the Authentication section. Change PermitRootLogin from no to yes. The resultant section will look like this: # Authentication: #LoginGraceTime 120 PermitRootLogin yes #StrictModes yes Save the /etc/ssh/sshd_config file. Restart SSH services: /etc/init.d/sshd restart If the ~/root/.ssh directory exists, skip to step 7. Otherwise run the following command: mkdir ~/root/.ssh If ~/root/.ssh/id_rsa.pub exists, skip to step a. Otherwise run the following command: ssh-keygen -t rsa (accept the default file name and leave the passphrase empty). If not already done, generate SSH keys on the prime client as follows: a On the prime client, open a Cygwin window. If /home/Administrator/.ssh exists, skip to step b. Otherwise run the following command: mkdir /home/Administrator/.ssh If ~/root/.ssh/id_rsa.pub exists, skip to step 9. Otherwise run the following command: ssh-keygen -t rsa (accept the default file name and leave the passphrase empty).
4 5 6 7
Copy the contents of the /home/Administrator/.ssh/id_rsa.pub file on the prime client to the ~/root/.ssh/authorized_keys file on the virtualization host.
VMware, Inc.
95
To do this manually in VMware ESXi: Run the VMmark2-CreateSSH.sh script by following these steps: 1 2 3 4 Enable ESXi remote tech support mode. Instruction to do this can be found in VMware Knowledge Base article #1017910 (http://kb.vmware.com/kb/1017910). Copy the VMmark2-CreateSSH.sh script from C:\VMmark2\tools to the /root directory of the ESXi system. Using an SSH client, access the ESXi command line. From the ESXi command line, make the script executable then run it: chmod +x VMmark2-CreateSSH.sh sh ./VMmark2-CreateSSH.sh Follow the scripts instructions for enabling passwordless SSH to the ESXi system. If not already done, generate SSH keys on the prime client as follows: a On the prime client, open a Cygwin window. If /home/Administrator/.ssh exists, skip to step b. Otherwise run the following command: mkdir /home/Administrator/.ssh If ~/root/.ssh/id_rsa.pub exists, skip to step 7. Otherwise run the following command: ssh-keygen -t rsa (accept the default file name and leave the passphrase empty).
5 6
7 8
Copy the contents of the /home/Administrator/.ssh/id_rsa.pub file on the prime client to the ~/root/.ssh/authorized_keys file on the virtualization host. Repeat for each ESXi host in the cluster.
The harness automatically gathers information about the workload virtual machines and the ESX virtualization host and places that information in the results directory.
2 3
96
VMware, Inc.
2 3
VMware, Inc.
97
Run the script from the prime client. The script starts the first test, waits for it to complete, then starts the next test. The command window where this is invoked should display text similar to the following as each test completes:
Response -------Job ID: 15 Result: None Response -------Job ID: 16 Result: None
In this example, the results of the tests will be in the last two results/Result_<datestamp> directories on the prime client, and the STAX_Job_<ID>*.log files will match the Job ID list. The Result: None line is the expected output in this case, indicating that STAF successfully ran the command.
For more information on running STAF/STAX from the command line, refer to their user's guides available through http://staf.sourceforge.net/.
98
VMware, Inc.
This appendix describes the steps to create the virtual machines that are used as the workloads for the VMmark Benchmark testing and install the Microsoft Windows or Linux operating systems on those virtual machines. To create the eight workload virtual machines 1 2 3 4 5 Configure the underlying virtual machines (customized for the workload for which the virtual machine will be used). Install the Microsoft Windows or Linux operating system in the virtual machine (partitioning the virtual disk appropriately for the workload for which the virtual machine will be used). Install any customized drivers recommended by the hypervisor vendor for use in virtual machines running the specific operating systems required for VMmark (for example, the VMware Tools package). Install and configure the STAF package in the virtual machine. Configure the guest operating system.
These steps are described in more detail in the following sections, first for the virtual machine running Microsoft Windows Server 2003, then for the virtual machine running Microsoft Windows Server 2008, and lastly for the six virtual machines running Linux. NOTE Many of the steps required to configure the Linux workload virtual machines can be avoided by downloading pre-built Linux virtual machines from VMware, as described in: Create the Olio Database Virtual Machines on page 53, Create the Olio Web Virtual Machines on page 55, Create the DVD Store 2 Database Virtual Machines on page 57, and Create the DVD Store 2 Web Virtual Machines on page 59.
VMware, Inc.
99
6 7 8
12
Once the virtual machine is ready, proceed to install Microsoft Windows Server, as described in Install Microsoft Windows Server 2003 Enterprise Edition on page 101.
100
VMware, Inc.
7 8 9
VMware, Inc.
101
15 16
When the installation is complete, the system reboots. After the reboot, log in as Administrator. If Windows Setup asks for an additional disc you can supply it as follows: a b c d Click the Virtual CDROM(ide0:0) button in the menu bar and select the option that begins with the word Disconnect. Again click the Virtual CDROM(ide0:0) button in the menu bar, this time selecting Connect to ISO image... Browse to the ISO image of the second CD, select it, and click Open. Back within the virtual machine, in the Windows Setup window, click OK and follow the prompts.
For VMware ESXi: 1 2 Power-on the virtual machine. From a web browser on the vCenter Server system, navigate to http://packages.vmware.com/tools/esx, select the ESX version and host operating system you're running, and download its .iso file, saving it to a file system accessible from the system running the VMware vCenter Client. Click the Connect/disconnect the CD/DVD... button in the menu bar (it looks like a CD with a wrench in front of it), select CD/DVD Drive 1, then select Connect to ISO image... (either on local disk, or on a datastore). Browse to the VMware Tools .iso file you just downloaded, select it, and click Open. When a Welcome to the installation wizard for VMware Tools window appears, this time inside the virtual machine console (it may take a few minutes), click Next. When the Setup Type window appears, choose Typical, and click Next. When the Ready to Install the Program window appears, click Install. When the Installation Wizard Completed window appears, click Finish. At the VMware Tools window, click Yes to allow the system to be restarted.
4 5 6 7 8 9
102
VMware, Inc.
Follow these steps to enable time synchronization in VMware Tools 1 2 3 4 Right-click the blue VMware icon in the system tray on the task bar and choose Open VMware Tools. Select the Options tab. Check the box next to Time synchronization between the virtual machine and the host operating system. Click OK to close the dialog box.
Turn off automatic updates by following these steps: 1 2 3 4 Open the Control Panel (Start Menu > Settings > Control Panel). At the Control Panel, double-click Automatic Updates. At the Automatic Updates window, make sure the radio button for Turn off Automatic Updates is selected, then click OK. Close the Control Panel.
VMware, Inc.
103
(replacing 192.168.7.1 with the clients IP address, and client0 with the clients name). NOTE This is not necessary if, in the STAF.cfg file, an IP address range was used instead of a specific machine name.
104
VMware, Inc.
12
VMware, Inc.
105
106
VMware, Inc.
For VMware ESXi: 1 2 Power-on the virtual machine. From a web browser on the vCenter Server system, navigate to http://packages.vmware.com/tools/esx, select the ESX version and host operating system you're running, and download its .iso file, saving it to a file system accessible from the system running the VMware vCenter Client. Click the Connect/disconnect the CD/DVD... button in the menu bar (it looks like a CD with a wrench in front of it), select CD/DVD Drive 1, then select Connect to ISO image... (either on local disk, or on a datastore). Browse to the VMware Tools .iso file you just downloaded, select it, and click Open. When a Welcome to the installation wizard for VMware Tools window appears, this time inside the virtual machine console (it may take a few minutes), click Next. When the Setup Type window appears, choose Typical, and click Next. When the Ready to Install the Program window appears, click Install. When the Installation Wizard Completed window appears, click Finish. At the VMware Tools window, click Yes to allow the system to be restarted.
4 5 6 7 8 9
Follow these steps to enable time synchronization in VMware Tools 1 2 3 4 After the system has restarted, right-click the blue VMware icon in the system tray on the task bar and choose Open VMware Tools. Select the Options tab. Check the box next to Time synchronization between the virtual machine and the host operating system. Click OK to close the dialog box.
VMware, Inc.
107
108
VMware, Inc.
7 8 9 10 11 12
At the Welcome to the New Simple Volume Wizard window, click Next. At the Specify Volume Size window, enter a size of 32768MB, then click Next. At the Assign Drive Letter or Path window, assign drive letter E:, then click Next. At the Format Partition window, set the File system to NTFS, leave the Allocation unit size at Default, and set the Volume label to Database, then click Next. At the Completing the New Simple Volume Wizard window, click Finish. A new window will pop up behind the Server Manager window, saying You need to format the disk.... Switch to this window and click Cancel (the disk should already have been formatted as part of the previous step).
VMware, Inc.
109
Configure the Windows Server 2008 Firewall to Allow STAFProc.exe to Pass Through
Windows Server 2008 includes a firewall. Follow these steps to configure the Windows firewall to allow STAF to pass through: 1 2 3 4 5 6 7 8 Open the Start menu then select Control Panel. In the Control Panel window, double-click Windows Firewall. In the Windows Firewall window, click Allow a program through Windows Firewall. In the Windows Firewall Settings window click the Add Program... button. In the Add a Program window, click Browse. In the Browse window, navigate to C:\staf\bin\STAFProc.exe, then click the Open button. Back at the Add a Program window, click OK. Back at the Windows Firewall window click OK.
(replacing 192.168.7.1 with the clients IP address, and client0 with the clients name). NOTE This is not necessary if, in the STAF.cfg file, an IP address range was used instead of a specific machine name.
110
VMware, Inc.
3 4 5 6 7 8
In the right pane of the Server Manager window, click Add Features. In the Select one or more features... window, add a checkmark next to Windows PowerShell, then click Next. In the Confirmation window, click Install. After the installation is complete, the Results window appears. Click Close. Dismiss the Windows automatic updating is not enabled... warning. Close the Server Manager window.
10 11 12 13
VMware, Inc.
111
13
112
VMware, Inc.
15 16
If you receive a warning Creation of the virtual machine (VM) does not include automatic installation of the guest operating system... click OK. At this point, unless you will be configuring a virtual machine from scratch, you should return to the instructions in Chapter 3, Preparing the Infrastructure for VMmark 2.1 Benchmark Tests..
7 8 9
VMware, Inc.
113
17
At the Software Selection and System Tasks screen, make the following changes: Deselect Novell AppArmor Deselect all items under Graphical Environment Deselect all items under Primary Function then click OK. Back at the Installation Settings screen, click Install. At the Confirm Installation screen, click Install. The operating system will install and the system will reboot. At the Password screen, set the root password to vmmark, confirm the password, then select Next (use <Alt><n>). At the Password is too simple screen, select Yes (use <Alt><y>). At the Password is all lower case screen, select Yes (use <Alt><y>). At the Hostname and Domain Name screen, replace the default hostname with SLES11-template, replace the default domain name with the appropriate one for your site (i.e., your.company.com), deselect Change Hostname via DHCP (use <Tab> <Space>), select Write Hostname to /etc/hosts (use <Tab> <Space>), and select Next (use <Alt><n>). At the Network Configuration screen, select Change (use <Alt><c>) and select General Network Settings. At the Network Setup Method screen, unselect Enable IPv6 (use <Tab> <Tab> <Space>), accept the reboot is needed warning, then select OK (use <Alt><o>). Back at the Network Configuration screen, select Change (use <Alt><c>) and select Firewall. At the Firewall Configuration: Start Up screen, select Disable Firewall Automatic Starting (use <Tab> <Tab> <Space>), then select OK (use <Alt><o>).
18 19 20 21 22 23
24 25 26 27
28 Back at the Network Configuration screen, select Next (use <Alt><n>). 29 30 31 32 33 34 35 36 At the Test Internet Connection screen, choose not to test (use <Tab> <Tab> <Space>), then select Next (use <Alt><n>). At the CA Management screen, select Next (use <Alt><n>). At the User Authentication Method screen, leave the defaults, then select Next (use <Alt><n>). At the New Local User screen, leave the fields empty, then select Next (use <Alt><n>). At the Empty User Login screen, leave the fields empty, then select Yes (use <Enter>). At the Release Notes screen, select Next (use <Alt><n>). At the Hardware Configuration screen, select Next (use <Alt><n>). At the Installation Completed screen, select Finish (use <Alt><f>). If a No Running Network warning appears, select Continue.
114
VMware, Inc.
For vSphere 4.0: mount /dev/cdrom /media cd /media rpm -ihv VMwareTools* ./vmware-config-tools.pl For vSphere 4.1: mount /dev/cdrom /media mkdir ~/vmware_tools cd ~/vmware_tools tar zxvf VMwareTools* cd vmware-tools-distrib ./vmware-install.pl 4 Accept the default answers to the questions. If errors are reported, refer to VMware product documentation for troubleshooting. NOTE The screen might flicker as the video driver is updated. 5 6 7 When the install is complete, reboot the system: shutdown -r now After the system boots, log in as root. Set a static IP address. NOTE If desired, you can leave it as DHCP until after the virtual machine is cloned. 8 Verify that the VMware Tools package is fully installed by selecting the Summary tab for the virtual machine with which you are working and looking for the OK after VMware Tools: in the General box.
Enable Time Synchronization in VMware Tools NOTE Methods of enabling time synchronization other than the one detailed below might not work. 1 2 3 Within the vSphere Client Inventory pane, right-click on the virtual machine and select Edit Settings. In the Virtual Machine Properties window, under the Options tab, select VMware Tools. In the right pane, under Advanced, add a check mark next to Synchronize guest time with host, then click OK.
(the exact filename might vary, depending on the STAF release and bit version).
VMware, Inc.
115
Execute the following command: tar xvzf STAF341-linux-amd64.tar.gz (again, the exact filename might vary, depending on the STAF release and bit version). Change to the newly-created staf directory. Execute the STAFInst script: ./STAFInst Press <ENTER> repeatedly to read the license, then press <ENTER> to accept it.
5 6 7
116
VMware, Inc.
(replacing 192.168.7.1 with the clients IP address, and client0 with the clients name). NOTE This is not necessary if, in the STAF.cfg file, an IP address range was used instead of a specific machine name.
VMware, Inc.
117
118
VMware, Inc.
This appendix describes the steps needed to install applications in the six workload virtual machines that make up each tile. You should have created the six virtual machines, installed the operating systems, and performed the other customizations described in Appendix A, Creating the Workload Virtual Machines, on page 99. In addition to the instructions included in this document, you should also refer to the Readme.txt file included in the VMmark kit.
VMware, Inc.
119
Start the Active Directory Installation Wizard by opening a Command Prompt window (Start > Command Prompt) and typing: dcpromo At the Active Directory Domain Services Installation Wizard click Next. At the Operating System Compatibility window click Next. At the Choose a Deployment Configuration window, select Create a new domain in a new forest, then click Next. At the Name the Forest Root Domain window, enter the DNS name for the new domain, then click Next. This should be the fully-qualified domain name in the format maildomainN.your.company.com, where N is the tile number that this virtual machine will be part of, and your.company.com is your companys domain name. This domain name must be in three parts (i.e., your.company.com). At the Set Forest Functional Level, select Windows Server 2003, then click Next. Dismiss the warning regarding domain controllers that are running Windows Server 2003 or later. At the Set Domain Functional Level, select Windows Server 2003, then click Next. Dismiss the warning regarding domain controllers that are running Windows Server 2003 or later. At the Additional Domain Controller Options window, leave the checkmark next to DNS server, then click Next. If you get a warning window beginning A delegation for this DNS server cannot be created..., click Yes. At the Location for Database, Log Files, and SYSVOL window, leave all folders in their default locations and click Next. At the Directory Services Restore Mode Administrator Password window, enter and confirm a password of your choice, then click Next. At the Summary window, click Next. When the system reports Active Directory Domain Services is now installed on this computer..., click Finish, then click Restart Now.
3 4 5 6
7 8 9 10 11 12 13 14 15 16
120
VMware, Inc.
In the left pane of the Exchange Management Console, click the plus sign next to Server Configuration and select Mailbox. In the right pane, click on New Storage Group. In the Storage group name: field, enter vmmark, in the Log files path field, enter E:\vmmark, and in the System files path, enter E:\vmmark, then click New. At the Completion window, click Finish. In the lower portion of the middle pane, right click on vmmark and select Properties. In the vmmark Properties window, check the box next to Enable circular logging, then click Apply. In the vmmark Properties window, click OK. In the lower portion of the middle pane, right click on vmmark and select New Mailbox Database. In the Mailbox database name: field, enter lpriv1, then click New. After creating the mailbox database, right click the database, select Properties > Customize.... In the top left of the spreadsheet double-click on the box with a dotted border. This will deselect all the cells (indicated by the cells turning white). At the Completion window, click Finish.
121
13 14 15 16 17 18 19
In the lower portion of the middle pane, right click on vmmark and select New Mailbox Database. In the Mailbox database name: field, enter lpriv2, then click New. At the Completion window, click Finish. After creating the mailbox database, right click the database, select Properties > Customize.... In the top left of the spreadsheet double-click on the box with a dotted border. This will deselect all the cells (indicated by the cells turning white). Close the Exchange Management Console. Disable indexing on the Exchange databases: a b Open the Exchange Management shell (Start > All Programs > Microsoft Exchange Server 2007 > Exchange Management Shell). Enter the following commands: Set-MailboxDatabase lpriv1 -IndexEnabled $false Set-MailboxDatabase lpriv2 -IndexEnabled $false Close the Exchange Management shell.
122
VMware, Inc.
4 5
Change it to: <add key="DatabaseMaxCacheSize" value="536870912" /> Save and close the file.
VMware, Inc.
123
124
VMware, Inc.
VMware, Inc.
125
10
Back at the Virtual Machine Properties window, click OK to close the window.
Back at the command prompt, format the disk: mkfs -t ext3 /dev/sdb1 Create the /var/lib/mysql directory: mkdir /var/lib/mysql Mount the disk: mount /dev/sdb1 /var/lib/mysql Open the file /etc/fstab for editing and add the following line: /dev/sdb1 /var/lib/mysql ext3 defaults 1 2
Install MySQL
1 2 3 4 5 6 7 8 9 Connect the SLES 11 installation disk to the virtual machine. At the command prompt, type: yast Using the cursor keys, select Software in the left pane, move to the right pane, select Software Management, then press <Enter>. In the Search Phrase box, type mysql, then press <Enter>. Scroll down to mysql and select it for installation by pressing <Space>. Accept the package list by pressing <Alt><a>. Press <Enter> to accept the Automatic Changes. Press <Alt><q> to quit yast. Start MySQL: /etc/init.d/mysql start
126
VMware, Inc.
10
17 Start Tomcat: /etc/init.d/tomcat6 start 18 19 Configure Tomcat to start automatically on future reboots: chkconfig tomcat6 on Make sure the directory /usr/java/latest exists. If it doesnt, create a directory and a symlink: mkdir -p /usr/java ln -s /usr/lib64/jvm/jre /usr/java/latest
Copy Files
1 2 Copy the file my.cnf from the VMmark kit vserver/oliodb directory to /etc. Copy the file geocoder.war from the VMmark kit /vserver/oliodb directory to /usr/share/tomcat6/webapps/.
VMware, Inc.
127
3 4 5 6
128
VMware, Inc.
VMware, Inc.
129
Back at the command prompt, format the disk: mkfs -t ext2 /dev/sdb1 Create the /OlioFileStore directory: mkdir /OlioFileStore Mount the disk: mount /dev/sdb1 /OlioFileStore Open the file /etc/fstab for editing and add the following line: /dev/sdb1 /OlioFileStore ext2 noatime 1 2
Tune TCP/IP
1 2 Open the file /etc/sysconfig/sysctl for editing and change IP_TCP_SYNCOOKIES to no: IP_TCP_SYNCOOKIES="no" Save and close the file.
130
VMware, Inc.
Install Memcached
1 Connect the SLES 11 SDK disk 1 to the virtual machine. NOTE This is not the installation disk, but a separate SDK disk. It can be downloaded from Novell at http://www.novell.com/developer/sle_sdk.html (this requires a Novell account and, due to its size, might take a long time to download). 2 3 4 5 6 7 8 9 10 11 12 13 14 15 At the command prompt, type: yast Using the cursor keys, select Software in the left pane, move to the right pane, select Software Repositories, then press <Enter>. At the Configured Software Repositories screen select Add (<Alt><a>). At the Media Type screen select DVD (<Alt><d>), then Next (<Alt><x>). At the Insert the add-on product DVD pop-up select Continue (<Alt><o>). At the License Agreement screen select Yes, I Agree to the License Agreement (<Alt><y>), then Next (<Alt><n>). Back at the Configured Software Repositories screen select OK (<Alt><o>). Back at the YaST2 Control Center, using the cursor keys, select Software in the left pane, move to the right pane, select Software Management, then press <Enter>. In the Search Phrase box, type memcached, then press <Enter>. Scroll down to memcached and select it for installation by pressing <Space>. Accept the package list by pressing <Alt><a>. Press <Enter> to accept the Automatic Changes. Press <Alt><q> to quit yast. Configure memcached to start automatically on future reboots: chkconfig memcached on NOTE After running this command, you might observe a number of insserv errors. These can be safely ignored.
VMware, Inc.
131
Change to the /opt directory. cd /opt Unpack the tar file with the following command: tar zxvf /root/springsource-tc-server-standard-2.0.4.RELEASE.tar.gz (replacing the above filename with the one you just downloaded). Change to the following directory. cd /opt/springsource-tc-server-standard Execute the following: /opt/springsource-tc-server-standard/tcruntime-instance.sh -s olio-web Copy the webapp.war file from the VMmark kit:
cp vserver/olioweb/tc-server/webapp.war /opt/springsource-tc-server-standard/olio-web/webapps/
4 5 6
Uncompress the zip file: cd /tmp unzip spring-framework-3.0.5.RELEASE.zip (replacing the above filename with the one you just downloaded). Copy the files as follows (replacing the version numbers in the filenames below with the actual version you just downloaded):
cp /tmp/org.springframework.instrument-3.0.5.RELEASE.jar /opt/springsourcetc-server-standard/olio-web/lib/ cp /tmp/org.springframework.instrument.tomcat-3.0.5.RELEASE.jar /opt/springsourcetc-server-standard/olio-web/lib/
Install EclipseLink
1 Download the EclipseLink installer .zip file: a b 2 Go to: http://www.eclipse.org/eclipselink/downloads/previous_releases.php Select the latest EclipseLink 2.0.x (either Downloads or Patch Set Downloads) and download the Installer zip file, saving it to /tmp.
Uncompress the zip file. cd /tmp unzip eclipselink-2.0.2.v20100323-r6872.zip (replacing the above filename with the one you just downloaded).
132
VMware, Inc.
Copy the files as follows (replacing the version numbers in the filenames below with the actual version you just downloaded):
cp /tmp/eclipselink/jlib/eclipselink.jar /opt/springsource-tc-server-standard/olio-web/lib/ cp /tmp/eclipselink/jlib/jpa/eclipselink-jpa-modelgen_2.0.2.v20100323-r6872.jar /opt/springsource-tc-server-standard/olio-web/lib/ cp /tmp/eclipselink/jlib/jpa/javax.persistence_2.0.0.v201002051058.jar /opt/springsource-tc-server-standard/olio-web/lib/
Uncompress the zip file. cd /tmp unzip mysql-connector-java-5.0.8.zip (replacing the above filename with the one you just downloaded). Copy the files as follows (replacing the version numbers in the filename below with the actual version you just downloaded):
cp /tmp/mysql-connector-java-5.0.8/mysql-connector-java-5.0.8-bin.jar /opt/springsource-tc-server-standard/olio-web/lib/
Install JSTL
1 Download the following files, saving them to /tmp: http://download.java.net/maven/glassfish/javax/servlet/jsp/jstl/jstl-api/1.2/jstl-api-1.2.jar http://download.java.net/maven/glassfish/org/glassfish/web/jstl-impl/1.2/jstl-impl-1.2.jar Copy the files as follows (replacing the version numbers in the filename below with the actual version you just downloaded):
cp /tmp/jstl-api-1.2.jar /opt/springsource-tc-server-standard/olio-web/lib/ cp /tmp/jstl-impl-1.2.jar /opt/springsource-tc-server-standard/olio-web/lib/
Configure tc Server
1 Edit the context.xml file: With an editor of your choice, copy the contents of the file: vserver/olioweb/tc-server/add_to_context.xml to: /opt/springsource-tc-server-standard/olio-web/conf/context.xml 2 Edit the server.xml file: a With an editor of your choice, copy the contents of the file: vserver/olioweb/tc-server/add_to_server.xml to: /opt/springsource-tc-server-standard/olio-web/conf/server.xml Still in the server.xml file: Change tomcatThreadPool to maxThreads="600" Set maxKeepAliveRequests="-1"
VMware, Inc.
133
Edit the setenv.sh file: a b With an editor of your choice, open the file: /opt/springsource-tc-server-standard/olio-web/bin/setenv.sh Set the following:
GENERAL_JVM_OPTS="-Xms2g -Xmx2g -Xss192k -server -XX:+UseParallelGC" APPLICATION_OPTS="-Dwebapp.image.directory=/OlioFileStore/ -DmemcachedInstances=localhost:11211 -DcacheFactoryClass=org.apache.olio.webapp.cache.MemCachedFactory -DgeocoderURL=http://olio-db:8080//geocoder/geocode" JAVA_HOME=/usr/java/latest JRE_HOME=/usr/java/latest
Edit the boot.rc.template file: a b With an editor of your choice, open the file: /opt/springsource-tc-server-standard/boot.rc.template Set the following: TOMCAT_USER=root TC_SERVER_HOME="/opt/springsource-tc-server-standard" INSTANCE_NAME=olio-web JAVA_HOME=/usr/java/latest
Run the following commands: cp /opt/springsource-tc-server-standard/boot.rc.template /etc/init.d/tcserver chmod +x /etc/init.d/tcserver chkconfig tcserver on NOTE After running these commands, you might observe a number of insserv errors. These can be safely ignored.
134
VMware, Inc.
VMware, Inc.
135
Install the Software for the DVD Store 2 Database Virtual Machines
The following sections describe configuring the DVD Store 2 database system and installing software for the workload.
136
VMware, Inc.
e f 2 3 4 5
When asked the First cylinder and the Last cylinder, leave them at their defaults (to use the entire disk) by pressing <Enter> after each question. When again asked Command (m for help):, enter: w
Back at the command prompt, format the 35GB disk: mkfs -t ext3 /dev/sdb1 Create the /var/lib/mysql directory: mkdir /var/lib/mysql Mount the 35GB disk: mount /dev/sdb1 /var/lib/mysql Open the file /etc/fstab for editing and add the following line: /dev/sdb1 /var/lib/mysql ext3 defaults 1 2
Back at the command prompt, format the 20GB disk: mkfs -t ext3 /dev/sdc1 Mount the 20GB disk: mount /dev/sdc1 /mnt (There is no need to add this disk to the fstab file because we will use it only once. If you reboot before completing the DVD Store 2 database preparation, though, you will need to again mount the drive manually.)
Install MySQL
1 2 3 4 5 6 7 8
VMware, Inc.
Connect the SLES 11 installation disk to the virtual machine. At the command prompt, type: yast Using the cursor keys, select Software in the left pane, move to the right pane, select Software Management, then press <Enter>. In the Search Phrase box, type mysql, then press <Enter>. Scroll down to mysql and select it for installation by pressing <Space>. Accept the package list by pressing <Alt><a>. Press <Enter> to accept the Automatic Changes. Press <Alt><q> to quit yast.
137
9 10 11
Start MySQL: /etc/init.d/mysql start Configure MySQL to start automatically on future reboots: chkconfig --level 3 mysql on Create the web user on mysql by running the following commands: mysql create user 'web'@'localhost' IDENTIFIED BY 'web'; grant all privileges on *.* to 'web'@'localhost' with grant option; grant all privileges on *.* to 'web'@'%' with grant option; set password for 'web'@'%' = password('web'); quit
8 9
138
VMware, Inc.
VMware, Inc.
139
Install the Software for the DVD Store 2 Web Virtual Machines
The following sections describe installing software for DVD Store 2 web systems.
140
VMware, Inc.
7 8 9 10 11 12 13
Press <Enter> to accept the Automatic Changes. Press <Enter> again to return to the main yast screen. In the Search Phrase box, type php5-mysql, then press <Enter>. Scroll down to php5-mysql and select it for installation by pressing <Space>. Accept the package list by pressing <Alt><a>. Press <Enter> to accept the Automatic Changes. Press <Alt><q> to quit yast.
VMware, Inc.
141
142
VMware, Inc.
This appendix provides information about optional configurations for many of the programs and utilities used to perform the VMmark benchmarking tests. It consists of the following section: Running a Subset of the Workloads (a Partial Tile) on page 143. Optional Windows System Settings on page 144
VMware, Inc.
143
NOTE In the case of a Windows domain controller, this is under Control Panel > Administrative Tools > Domain Security Policy. 2 3 4 5 6 In the left pane of the Local Security Settings window (or the Default Domain Security Settings window), click the plus sign next to Local Policies, then click Security Options. Within the right pane, scroll to Interactive logon: Do not require CTRL + ALT + DEL, double click it (there may be a somewhat long delay), and in the window that appears select the Enabled radio button. Click OK to close the Interactive logon: Do not require CTRL + ALT + DEL window. Close the Local Security Settings window (again, there may be a somewhat long delay). For these changes to take effect, log out of Windows, then log back in again.
144
VMware, Inc.
3 4
Uncheck the On resume, password protect box. Click OK to close the Display Properties window.
For Windows Server 2008: 1 2 3 4 5 6 From the Start menu, select Control Panel. In the Control Panel, double-click Personalization. In the Personalization window click Screen Saver. In the Screen Saver Settings window, make sure the box next to On resume, display logon screen does not contain a checkmark (or set Screen saver to None). Click OK to close the Screen Saver Settings window. Close the Personalization window.
For Windows Server 2008: 1 2 3 4 5 Open the Start menu and select Server Manager. In the right pane of the Server Manager window, under Security Information, click Configure IE ESC. In the Internet Explorer Enhanced Security Configuration window, select the Off radio buttons for both Administrators and Users, then click OK. Close the Server Manager window. If desired, open Internet Explorer and change the home page.
VMware, Inc.
145
2 3 4 5 6
146
VMware, Inc.
4 5 6 7 8 9 10
VMware, Inc.
147
148
VMware, Inc.
Troubleshooting
Workload Troubleshooting
This section contains guidance for troubleshooting problems with specific workloads.
Mailserver Troubleshooting
This section contains guidance for troubleshooting mailserver operations.
For example, you will see this error message if you installed the SP2 version of the Exchange Management Tools on the client, but you installed Exchange SP1 on the server. Also see Install Exchange Server 2007 Tools on page 86 and Install Microsoft Windows Server 2008 Enterprise Edition on page 106.
To get around this issue, disable all network interface cards and retry the installation.
VMware, Inc.
149
Compare the drive letters and partition names to Table D-1. Table D-1. Mail Server Virtual Machine Disk Partitions
Function Partition size Partition name Partition letter Partition 1 32,768MB OS-and-Apps C: Partition 2 32,768MB Database E: Partition 3 8,192MB Backup F:
If the drive letters dont match the ones listed in Table D-1, correct them as follows: a If one of the disk partitions is using drive letter D:, change it to Z: (as a temporary designation): Right-click on the partition and choose Change Drive Letter and Paths, click the Change button, choose Z from the drop-down menu, then click OK, and Yes. If the CD-ROM is using any drive letter other than D:, change it to D: Right-click on the CD-ROM and choose Change Drive Letter and Paths, click the Change button, choose D from the drop-down menu, then click OK, and Yes. Change the Database and/or Backup drive letters to match Table D-1: Right-click on the partition and choose Change Drive Letter and Paths, click the Change button, choose the appropriate letter from the drop-down menu, then click OK, and Yes.
Optionally, rename the E: and F: drives to correspond with the names in Table D-1: a b c a Right-click on the E: partition and choose Properties. Under the General tab, in the top window, type the partition name from Table D-1. Click OK. Repeat for the F: partition.
To correct this, turn off automatic proxy settings detection in Windows, as follows: 1 2 3 4 Open the Start menu then select Control Panel. In the Control Panel window, double-click Internet Options. In the Internet Properties window, under the Connections tab, click the LAN settings button. Make sure the box next to Automatically detect settings does not contain a checkmark.
150
VMware, Inc.
Appendix D Troubleshooting
Repeat the nslookup command. If it now returns the IP address of the domain server, try running LoadGen again. You are experiencing DNS problems. Make sure the client's preferred DNS server is the IP address of the mail server for that tile. The Active Directory service is not running. Make sure that the Active Directory service is running on the mailserver (restart the service if it isnt running).
VMware, Inc.
151
152
VMware, Inc.
Appendix D Troubleshooting
To fix this, merge the ProxySettingsPerUser.reg file into your client systems registry, as described in Automatically Apply the Registry Settings on page 79 (or follow the directions in Manually Apply the Registry Settings on page 80) then change the clients proxy settings, as described in Configure Windows to Not Use a Proxy Server on page 82.
VMware, Inc.
153
Miscellaneous Troubleshooting
This section includes guidance for troubleshooting miscellaneous issues.
For Windows Server 2008 1 2 Open the Start menu and select Server Manager. In the left pane of the Server Manager window, expand Diagnostics by clicking the + next to the word, then expand Event Viewer by clicking the + next to the words, then expand Application and Services Logs by clicking the + next to the words. Still in the left pane of the Server Manager window, right-click on Windows PowerShell and choose Properties. In the Log Properties - Windows PowerShell window, make sure the Overwrite events as needed (oldest events first) radio button is selected, then click OK. Back in the left pane of the Server Manager window, look for a PowerShell entry (just PowerShell, not Windows PowerShell). If you see such an entry, repeat step 3 and step 4, this time for PowerShell. Close the Server Manager window.
3 4 5 6
Appendix D Troubleshooting
VMware, Inc.
155
156
VMware, Inc.
Appendix D Troubleshooting
Networking Issues
This section addresses network issues sometimes encountered while running VMmark.
VMware, Inc.
157
158
VMware, Inc.
Appendix D Troubleshooting
To run just the one workload test between client2 and the Olio workload you can do the following: 1 2 Save your current VMMARK2.CONFIG file. Edit the VMMARK2.CONFIG file, changing the following settings to the values shown:
TILES=1 CLIENTS="client2" OlioWeb/SERVERS="OlioWeb2" OlioDB/SERVERS="OlioDB2" RUNTIME=900 DEBUGFLAG=1 WORKLOADLIST="OlioWeb OlioDB" INFRASTRUCTURELIST=""
3 4
Log on to client2 and copy the C:\vclient2 directory to C:\vclient0. Start the test from your prime client.
The harness will run a one-tile test of just the Olio workload using the client and workload virtual machine that seemed to be causing the problem. OlioWeb and OlioDB comprise the Olio workload, so both need to run to test the failing OlioWeb. In the Results_<datestamp> directory you'll find the files from just that one workload along with the STAX_Job_User.log that contains the same output as was shown in the lower portion of the STAX Monitor window. You can also run a similar test with a functional client and virtual machine workload pair, allowing a side by side comparison of the STAX_Job_User logs. If you suspect the problem may be with the client, you can substitute one of the known good clients for any workload except mailserver (because mailserver is dependent on the domain relationship). In the example above you could use client0, client1, client3, or client4 (just make sure the client you use has a C:\vclient0 directory). If you still don't see how to fix the problem, narrowing the test down to the simplest case where the failure occurs can help expedite the debugging process when reporting the problem to VMware.
VMware, Inc.
159
The scripts default behavior is to display a summary of its findings to the screen. With the -v option, the script saves more detailed findings to a set of output files. These output files by default are saved to vmmarkconfig-results in the current directory (or /root/vmmarkconfig-results if the current directory is not writable). The location of these output files can also be specified with the -s option.
160
VMware, Inc.
Appendix D Troubleshooting
The scripts default behavior is to display a summary of its findings to the screen. With the -v option, the script saves more detailed findings to a set of output files. These output files by default are saved to vmmarkconfig-results in the current directory (or /root/vmmarkconfig-results if the current directory is not writable). The location of these output files can also be specified with the -s option.
VMware, Inc.
161
2 3 4 5 6 7
162
VMware, Inc.
Appendix D Troubleshooting
Before you submit results, we recommend that you unpack the .tgz file and run the VMmark2ConfigChecker script to review your ESX testbed configurations for potential issues. For further information, see Running the VMmark2ConfigChecker Script on page 160.
VMware, Inc.
163
164
VMware, Inc.