Preparing the Tanium Client on a virtual desktop infrastructure (VDI) instance
For licensing and performance considerations that apply in VDI environments, see Assess the environment where you are deploying the Tanium Client.
Create a VDI golden image by preparing a reference endpoint:
- Prepare the Tanium Client based on the OS of the intended endpoints:
Note: It is not necessary to delete the ComputerID setting during this step, since the Client will reregister with the Tanium Server or Tanium Zone Server during the following additional steps. You delete this setting in a later step.
- Check the ComputerID, which should be a non-zero numeric value, to verify that the Client has registered with the Tanium Server or Tanium Zone Server. In the endpoint CLI, navigate to the Tanium Client installation directory, and run one of the following commands based on the OS:
-
Windows: TaniumClient config get ComputerID
-
Non-Windows: sudo ./TaniumClient config get ComputerID
-
- Review the action history in Tanium Console to make sure that the Client runs any scheduled actions that affect the Client Configuration. For more information, see Manage actions that are completed or in progress.
To run actions immediately instead of waiting for them to run according to a schedule, use one-time actions to deploy the associated packages to the endpoint that hosts the golden image. For more information, see Deploying actions and playbooks in Console and Interact.
- From each solution in Tanium Console, deploy any endpoint tools that are required by the Tanium solutions that you plan to use with VDI instances. The tool deployment method varies for each solution.
For example, if you are using Threat Response, create a profile that includes all components that you plan to use with VDI instances, and deploy that profile to the endpoint. The deployment includes any tools that the Threat Response profile requires, such as Tanium™ Index if you included an index configuration.
For more information about how to deploy tools for a solution, review the User Guide for that solution.
- Allow any processes that endpoint tools initiate to complete on the endpoint. To determine whether these processes have completed, ask a question from Tanium Console using a sensor that returns tool status for each solution or Client Extension.
For example, if you are using a Threat Response profile with an index configuration, ask the question: Get Client Extensions - Status from all machines with Computer Name contains <reference_computer_hostname>. In the results, for the domain threatresponse and the key initial_index_scan_complete, make sure that the value is
true.Note:If you are using Index tools with a solution (such as Threat Response, Reveal, Integrity Monitor, or Asset), the following considerations apply:
-
The default "distribute over time" value for the initial index scan is 24 hours, which means that the initial scan occurs at a random time within 24 hours after Index is deployed to the endpoint. Under typical circumstances, this delay helps to reduce resource use during initial deployment. To avoid the delay when creating an image, temporarily set the CX.index.FirstScanDistributeOverTimeMinutes setting to 0. In the endpoint CLI, navigate to the Tanium Client installation directory, and run one of the following commands based on the OS:
-
Windows: TaniumClient config set CX.index.FirstScanDistributeOverTimeMinutes 0
-
Non-Windows: sudo ./TaniumClient config set CX.index.FirstScanDistributeOverTimeMinutes 0
After the index scan has started but before saving the image, make sure to restore the original setting to reduce resource use when you create new endpoints from the image. Run one of the following commands based on the OS:
-
Windows: TaniumClient config set CX.index.FirstScanDistributeOverTimeMinutes 1440
-
Non-Windows: sudo ./TaniumClient config set CX.index.FirstScanDistributeOverTimeMinutes 1440
-
-
Even when you start the initial index scan immediately, it might take significantly longer to complete than other processes. Make sure that the initial index scan completes before continuing.
For more information about how to determine tool status for a solution, review the User Guide for that solution.
-
- Stop the Tanium Client service:
- Verify that the service has stopped and that it is configured to start automatically on the next reboot.
- To avoid unnecessary processing to resolve conflicts or duplicates when you later deploy the image, use the CLI to delete the Tanium Client ComputerID setting:
-
Windows: TaniumClient config remove ComputerID
-
Non-Windows: sudo ./TaniumClient config remove ComputerID
-
- Add or update the following settings through the CLI. These settings help to avoid the concentration of resource usage that otherwise might occur as a consequence of cloning and shared hardware. The CLI syntax depends on the endpoint OS:
-
Windows: TaniumClient config set <setting>
-
Non-Windows: sudo ./TaniumClient config set <setting>
Table 1. Best practice Client settings for VDI instances Client Setting
Default Value
Best Practice Value for VDI
Explanation
RandomSensorDelayInSeconds
0
5
By default, sensors run immediately. This setting delays the execution of any sensor by a random time up to 5 seconds, which reduces concurrent execution of sensors and packages.
Note: If poor performance occurs on VDI infrastructure, you can increase this value incrementally up to 20.MaxAgeMultiplier
1
2
Each sensor has a Max Sensor Age setting that determines how long the Client caches sensor results for subsequent questions that include the same sensor. This setting causes the Client to multiply the maximum age configured for each sensor by 2, which doubles the time results are cached for each sensor and reduces sensor executions.
MinDistributeOverTimeInSeconds
0
60
Each action has a Distribute Over setting that randomizes the distribution of that action over the specified time. By default, no minimum applies, and some actions might be configured for immediate distribution. This setting forces all actions to distribute over at least 1 minute.
SaveClientStateIntervalInSeconds
300
1800
By default, the Client state is written to disk every 5 minutes. This setting increases the time to 30 minutes to reduce disk writes.
Note: To minimize disk writes, leave LogVerbosityLevel and Logs.extensions.LogVerbosityLevel set to their default values of 1 and 11 respectively. Do not disable logging. -
- Shut down the reference machine or block network access to the Tanium Server so that the Tanium Client on the reference machine does not register with the Server, and then save the image.