How to install and remove Kaspersky Security for Virtualization 5.x Light Agent on virtual machines
Installation and removal in the assisted mode (Light Agent for Windows)
Installation
Before installing Kaspersky Security for Virtualization 5.x Light Agent:
- Make sure the VM operating system meets the system requirements for Kaspersky Security for Virtualization 5.x Light Agent.
- Remove other Kaspersky Lab products or incompatible anti-virus software from other vendors from the virtual machine.
To install Kaspersky Security for Virtualization 5.x Light Agent using the installation wizard:
- Run the self-extracting Agent_5.X.Х.Х_sfx_en.exe, where 5.X.Х.Х stands for the build number.
- Run the setup.exe file on the virtual machine and follow the steps of the installation wizard.
Removal
You can remove Kaspersky Security for Virtualization 5.x Light Agent through the Control Panel.
Installation and removal from the command line (Light Agent for Windows)
Installation
To run the installation wizard of Kaspersky Security for Virtualization 5.x Light Agent in the silent mode from the command line, enter one of the commands:
setup.exe /s /pEulaAndPrivacyPolicy=1 /pALLOWREBOOT=1|0
msiexec /i <name of the installation package in MSI format> EULAANDPRIVACYPOLICY=1 ALLOWREBOOT=1|0 /qn
- EULAANDPRIVACYPOLICY=1 means that you accept the End User License Agreement. You must accept the terms of the End User License Agreement to install the application.
- ALLOWREBOOT=1|0 allows or denies the automatic reboot of the VM after the installation (for example, if incompatible software was detected or removed during the installation). The command can only be executed in the silent mode (with the key /qn). If the parameter value ALLOWREBOOT is not specified in the command, it means by default that you do not allow the virtual machine to reboot after installation of the application.
To protect some of the Kaspersky Security for Virtualization 5.x Light Agent components with a password, enter one of the following commands:
setup.exe /pKLLOGIN=<user name> /pKLPASSWD=***** /pKLPASSWDAREA=<password scope>
msiexec /i <installation package name in the MSI format> KLLOGIN=<user name> KLPASSWD=***** KLPASSWDAREA=<password scope>
Instead of <password scope>, you can specify the following values for the parameter KLPASSWDAREA, separated by a ";":
- SET — Set a password to modify the application settings.
- EXIT — Set a password to exit the application.
- DISPROTECT — Set a password to disable protection components and stop scan tasks.
- DISPOLICY — Set a password to disable the Kaspersky Security Center policy.
- UNINST — Set a password to uninstall the application from the virtual machine.
- DISCTRL — Set a password to disable control components (Application Startup Control, Application Privilege Control, Vulnerability Monitor, Device Control, Web Control).
- REPORTS — Set a password to read reports and access the backup storage.
- ENPROTECT — Set a password to enable protection components.
- ENCTRL — Set a password to enable control components.
During the installation of Kaspersky Security for Virtualization 5.x Light Agent in the silent mode, the following files are supported:
- setup.ini, which contains general settings for installation of the application.
- The install.cfg. configuration file.
The files must be located in the folder with the installation package for Kaspersky Security for Virtualization 5.x Light Agent.
Removal
To remove Kaspersky Security for Virtualization 5.x Light Agent in the assisted mode from the command line, enter one of the commands:
setup.exe /x
msiexec.exe /x {43814F96-4A99-4BE3-AADC-1FD2E8C12C29}
To remove Kaspersky Security for Virtualization 5.x Light Agent in the silent mode (without the installation wizard), enter one of the commands:
setup.exe /s /x
msiexec.exe /x {43814F96-4A99-4BE3-AADC-1FD2E8C12C29} /qn
Installation from the command line (Light Agent for Linux)
Light Agent for Linux is installed from the command line using the installation script lightagent-5.х.х-х-bundle.sh, where 5.х.х-х is the application version number. The installation script lightagent-5.х.х-х-bundle.sh includes Light Agent for Linux and the supported version of Network Agent.
Check that the virtual machine meets all the system requirements. All the required packages should be installed.
To install Light Agent and Network Agent in silent mode:
- Download the installation package for the latest application version from the downloads page.
- Move the installation package to the virtual machine running Linux. For example, to the /tmp/ folder.
- Create a configuration file for the initial application setup.
ACCEPT_EULA_AND_PRIVACYPOLICY=yes
CONNECTOR_LOCALE=en
DEFAULT_KERNEL_SOURCES=yes
KLNAGENT_SERVER=192.168.1.16
KLNAGENT_PORT=14000
KLNAGENT_SSLPORT=13000
KLNAGENT_USESSL=1
KLNAGENT_GW_MODE=0
Where:
- ACCEPT_EULA_AND_PRIVACYPOLICY — acceptance of the End User License Agreement and Privacy Policy. Possible values: yes, no.
- CONNECTOR_LOCALE — the Light Agent for Linux language. Possible values: ru, en, fr, de, and others.
- DEFAULT_KERNEL_SOURCES — use the path to operating system kernel source codes detected by the application in the default directory. Possible values: yes, no.
- KLNAGENT_SERVER — the IPv4 address or full domain name (FQDN) of the computer with Kaspersky Security Center Administration Server installed.
- KLNAGENT_PORT — the port number for connecting Network Agent to the Administration Server. By default the Kaspersky Security Center Administration Server uses port 14000.
- KLNAGENT_SSLPORT — the port number for connecting Network Agent to the Administration Server using an SSL certificate. By default the Administration Server uses port 13000.
- KLNAGENT_USESSL — use an SSL connection to connect to the Administration Server. Possible values: 1 (use an SSL connection) or 0 (don’t use an SSL connection).
- KLNAGENT_GW_MODE — connect to the Administration Server using a connection gateway. Possible values: 1 or 0.
Parameters should be entered in the format <parameter name>=<value>. Spaces between a parameter and its value are not processed.
- Run the installation script.
# sh lightagent-5.0.X-Х-bundle.sh --auto-install=<path to configuration file>
Where:
<path to configuration file> — the full path to the initial setup configuration file. The installation script will use the parameters specified in this file.
Example:
# sh lightagent-5.0.52-11480-bundle.sh --auto-install=/tmp/script
Light Agent and Network Agent will start to install in silent mode. The script will configure the Administration Server connection settings.
To check that Network Agent is connected to the Administration Server:
/opt/kaspersky/nagent64/bin/klnagchk
Installation and removal through Kaspersky Security Center
Installation
You can install Kaspersky Security for Virtualization 5.x Light Agent through Kaspersky Security Center using the remote installation task.
When creating the installation package, select the self-extracting Agent_5.X.Х.Х_sfx_<language identifier>.exe archive or the ksvla.kud file.
Removal
To remove Kaspersky Security for Virtualization 5.x Light Agent from virtual machines through Kaspersky Security Center, use the remote installation task.
Installation through group policies (Light Agent for Windows)
To install Kaspersky Security for Virtualization 5.x Light Agent through the Group Policy Management Console:
- Install the following on virtual machines where Light Agent is going to be installed:
- Visual C++ Redistributable for Visual Studio 2015 for 32-bit operating systems, if a 32-bit operating system is installed on the virtual machines.
- Visual C++ Redistributable for Visual Studio 2015 for 32-bit operating systems and Visual C++ Redistributable for Visual Studio 2015 for 64-bit operating systems, if a 64-bit operating system is installed on the virtual machines.
- Create a shared network folder on the computer on which the domain controller is installed.
- Move the following files into the folder:
- The Kaspersky Security for Virtualization 5.x Light Agent installation package in the MSI format.
- The setup.ini file with the EULAANDPRIVACYPOLICY parameter set to 1.
- On the Start screen, click Administrative Tools → Group Policy Management Console.
- In the Group Policy Management Console menu, find the Group Policy Object you want to edit. Right-click it and select Edit.
- Create a new installation package in the editor.
- In the console tree, select Group Policy Object → Computer Configuration → Policies → Application Configuration → Software Installation.
- In the context menu of the Software Installation node, select New → Package.
- Specify the path to the Kaspersky Security for Virtualization 5.x Light Agent installation package in the MSI format.
- In the Deploy application box, select Destination.
- Click OK.
The group policy will be applied to each virtual machine at next startup.