6.1.1
Table Of Contents
- Setting Up Horizon 6 for Linux Desktops
- Contents
- Setting Up Horizon 6 for Linux Desktops
- Installing and Configuring Horizon 6 for Linux Desktops
- Configuring Linux Machines for vDGA
- Bulk Deployment of Horizon 6 for Linux Desktops
- Overview of Bulk Deployment 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 PowerCLI Script to Clone Linux Desktop Machines
- Sample PowerCLI Script to Install View Agent on Linux Desktops
- Sample PowerCLI Script to Uninstall View Agent on Linux Desktops
- Sample PowerCLI Script to Perform Operations on Linux Desktop Machines
- Administering Horizon 6 for Linux Desktops
- Uninstalling and Reinstalling Horizon 6 for Linux Machines
- Configure Lossless PNG Images on Linux Desktops
- Suppress the vSphere Console Display of a Linux Desktop
- Configure a Left-handed Mouse on Ubuntu Desktops
- How to Perform Power Operations on Linux Desktops from vSphere
- Gather Information About Horizon 6 for Linux Software
- Troubleshooting Horizon 6 for Linux
- Collect Diagnostic Information for a Horizon 6 for Linux Machine
- Troubleshooting View Agent Registration Failure for a Linux Machine
- Troubleshooting an Unreachable View Agent on a Linux Machine
- Troubleshooting View Agent on a Linux Machine That Is Not Responding
- Configuring the Linux Firewall to Allow Incoming TCP Connections
- Index
3 Power on the virtual machine and install the Linux distribution.
4 Create a user with root privileges, for example, ViewUser. This user is used to install and uninstall
View Agent only.
5 Edit /etc/sudoers and add the line ViewUser ALL=(ALL) NOPASSWD:ALL.
With this line in /etc/sudoers, no password is required to run sudo as ViewUser. When you run the
sample script to install View Agent that is provided in this chapter, you specify ViewUser as an input.
6 If the Linux distribution is RHEL, CentOS, or NeoKylin, edit /etc/sudoers and comment out the lines
Defaults requiretty and Defaults !visiblepw.
7 Install VMware Tools.
8 Install a supported version of JRE.
9 Shut down the virtual machine and create a snapshot.
Input File for the Sample PowerCLI Scripts to Deploy Linux Desktops
The sample PowerCLI scripts to deploy Linux desktops read one input file that contains information about
the desktop machines.
The input file is of type csv and contains the following information:
n
Desktop virtual machine name
n
Parent virtual machine name
n
Guest customization specification
n
Datastore where the cloned desktop machine resides
n
ESXi server that hosts the desktop machine
n
Parent virtual machine's snapshot that is used for cloning
n
Flag that indicates whether to delete the desktop virtual machine if it exists
The following example shows what the input file may contain.
VMName,Parentvm,CustomSpec,Datastore,Host,FromSnapshot,DeleteIfPresent
linux-001,Ubuntu1204x64,linuxagent,datastore1,10.117.44.172,snapshot1,TRUE
linux-002,Ubuntu1204x64,linuxagent,datastore1,10.117.44.172,snapshot1,TRUE
linux-003,Ubuntu1204x64,linuxagent,datastore1,10.117.44.172,snapshot1,TRUE
linux-004,Ubuntu1204x64,linuxagent,datastore1,10.117.44.172,snapshot1,TRUE
linux-005,Ubuntu1204x64,linuxagent,datastore1,10.117.44.172,snapshot1,TRUE
The sample scripts assume that the name of this input file is CloneVMs.csv and that the file is located in the
same folder as the scripts.
Sample PowerCLI Script to Clone Linux Desktop Machines
You can customize and use the following sample script to clone any number of virtual machines.
To copy and paste the script content without page breaks, use the HTML version of this topic, available
from the Horizon 6 documentation page at https://www.vmware.com/support/pubs/view_pubs.html.
Script Input
This script reads one input file, which is described in “Input File for the Sample PowerCLI Scripts to Deploy
Linux Desktops,” on page 25. This script also interactively asks for the following information:
n
IP address of the vCenter Server
Chapter 3 Bulk Deployment of Horizon 6 for Linux Desktops
VMware, Inc. 25