VMware Horizon – Linux Agent

Prepare a VM for Installation

Before the Horizon Agent for Linux can be installed a few VM settings need to be configured.

Run the following commands to remove the virtual bridge network adapter

sudo yum install libvirt-client
sudo virsh net-destroy default
sudo virsh net-undefine default
sudo service libvirtd restart

Edit the /etc/hosts file to include the FQDN and shortname of the VM in the line: hostname.domainname hostname

Edit the /etc/nsswitch.conf file. Update the hosts section to match the following:

hosts: cache db files dns

Run the following command to ensure that the Linux VM boots to run-level 5 (a GUI)

systemctl set-default graphical.target


Run the following command to backup the xorg.conf file

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup

Run the following command to install the Horizon Agent

sudo tar -xvf VMware-horizonagent-linux-x86_64-7.11.0-15238356.tar.gz
cd VMware-horizonagent-linux-x86_64-7.11.0-15238356/
sudo ./install_viewagent.sh -b <FQDN or IP of Connection Broker> -d <Domain> -u <Horizon Username>
sudo reboot


Note: The uninstallation process will delete /etc/X11/xorg.conf. If needed, make a backup of this file using the command below:

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
sudo sh /usr/lib/vmware/viewagent/bin/uninstall_viewagent.sh
sudo rm -rf /etc/vmware/viewagent-config.txt /etc/vmware/viewagent-custom.conf
sudo reboot