Setting Up for Linux Desktops
Table Of Contents
- Setting Up Horizon 7 for Linux Desktops
- Contents
- Setting Up Horizon 7 for Linux Desktops
- Features and System Requirements
- Preparing a Linux Virtual Machine for Desktop Deployment
- Setting Up Active Directory Integration for Linux Desktops
- Setting Up Graphics for Linux Desktops
- Installing Horizon Agent
- Configuration Options for Linux Desktops
- Create and Manage Linux Desktop Pools
- Bulk Deployment of Horizon 7 for Manual Desktop Pools
- Overview of Bulk Deployment of Linux Desktops
- Overview of Bulk Upgrade of Linux Desktops
- Create a Virtual Machine Template for Cloning Linux Desktop Machines
- Input File for the Sample PowerCLI Scripts to Deploy Linux Desktops
- Sample Script to Clone Linux Virtual Machines
- Sample Script to Join Cloned Virtual Machines to AD Domain
- Sample Script to Join Cloned Virtual Machines to AD Domain Using SSH
- Sample Script to Upload Configuration Files to Linux Virtual Machines
- Sample Script to Upload Configuration Files to Linux Virtual Machines Using SSH
- Sample Script to Upgrade Horizon Agent on Linux Desktop Machines
- Sample Script to Upgrade Horizon Agent on Linux Virtual Machines Using SSH
- Sample Script to Perform Operations on Linux Virtual Machines
- Troubleshooting Linux Desktops
- Collect Diagnostic Information for Horizon 7 for Linux Machine
- Troubleshooting Copy and Paste between Remote Desktop and Client Host
- Configuring the Linux Firewall to Allow Incoming TCP Connections
- View Agent Fails to Disconnect on an iPad Pro Horizon Client
- SLES 12 SP1 Desktop does not Auto Refresh after Drag and Drop
- SSO Fails to Connect to a PowerOff Agent
- Unreachable VM After Creating a Manual Desktop Pool for Linux
- Index
2 Right-click the VMware Tools installer le, VMwareTools.x.x.x-xxxx.tar.gz, click Extract to, and select
the desktop for your Linux distribution.
The vmware-tools-distrib folder is extracted to the desktop.
3 On the VM, log in as root and open a terminal window.
4 Uncompress the VMware Tools tar installer le.
For example:
tar zxpf /mnt/cdrom/VMwareTools-x.x.x-yyyy.tar.gz
5 Run the installer and congure VMware Tools.
The command might vary slightly in dierent Linux distributions. For example:
cd vmware-tools-distrib
sudo ./vmware-install.pl -d
Usually, the vmware-config-tools.pl conguration le runs after the installer le nishes running.
6 Map the Linux machine's host name to 127.0.0.1 in the /etc/hosts le.
For RHEL, CentOS, SLES, and SLED, you must manually map the host name to 127.0.0.1 because it is
not automatically mapped. For Ubuntu, this step is not necessary because the mapping is there by
default. This step is also not necessary when you bulk deploy desktops because the cloning process
adds this mapping.
N If you change the Linux machine's host name after installing Horizon Agent, you must map the
new host name to 127.0.0.1 in the /etc/hosts le. Otherwise, the old host name will continue to be used.
7 For RHEL 7 and CentOS 7, verify that virbr0 is disabled.
virsh net-destroy default
virsh net-undefine default
service libvirtd restart
8 Ensure that the View Connection Server instances in the pod can be resolved through DNS.
9 Congure the Linux machine so that the default runlevel is 5.
The runlevel must be 5 for the Linux desktop to work.
10 On an Ubuntu machine that was congured to authenticate with an OpenLDAP server, set the fully
qualied domain name on the machine.
This step ensures that the information can be displayed correctly in the User eld on the Sessions page
in View Administrator. Edit the /etc/hosts le as follows:
a # nano /etc/hosts
b Add the fully qualied domain name. For example: 127.0.0.1 hostname.domainname hostname.
c Exit and save the le.
11 For SUSE, disable Change Hostname via DHCP. Set the hostname or domain name.
a In Yast, click Network .
b Click the Hostname/DNS tab.
c Deselect Change Hostname via DHCP.
d Enter the hostname and the domain name.
e Click OK.
Chapter 2 Preparing a Linux Virtual Machine for Desktop Deployment
VMware, Inc. 21










