LinuxAgent组件
Linux Agent
将 ubuntu 加入 AD 域,使用的是 realm,详见 sssd 部分的文章
安装 VHCI(不需要 USB 重定向可以跳过)
# vhci usb 内核驱动 https://udomain.dl.sourceforge.net/project/usb-vhci/linux%20kernel%20module/vhci-hcd-1.15.tar.gz
tar -zxvf vhci-hcd-1.15.tar.gz
tar -zxvf VMware-horizonagent-linux-x86_64-2103-8.2.0-17771892.tar.gz
cd vhci-hcd-1.15
#这里要用到patch指令。这里的完整路径是horzion安装包的完整路径下的。resources/vhci/patch/vhci.patch路径
#patch -p1 < /full/path/to/agent-path
# 例如 这里的horizon安装包路径为/home/apqa/VMware-horizonagent-linux-x86_64-2103-8.2.0-17771892,那么命令为
patch -p1 < /home/apqa/VMware-horizonagent-linux-x86_64-2103-8.2.0-17771892/resources/vhci/patch/vhci.patch
# 回到上级目录
cd ..
# 将提取的 VHCI 源文件复制到 /usr/src 目录
cp -r vhci-hcd-1.15 /usr/src/usb-vhci-hcd-1.15
# 将以下内容写入/usr/src/usb-vhci-hcd-1.15/dkms.conf
PACKAGE_NAME="usb-vhci-hcd"
PACKAGE_VERSION=1.15
MAKE_CMD_TMPL="make KVERSION=$kernelver"
CLEAN="$MAKE_CMD_TMPL clean"
BUILT_MODULE_NAME[0]="usb-vhci-iocifc"
DEST_MODULE_LOCATION[0]="/kernel/drivers/usb/host"
MAKE[0]="$MAKE_CMD_TMPL"
BUILT_MODULE_NAME[1]="usb-vhci-hcd"
DEST_MODULE_LOCATION[1]="/kernel/drivers/usb/host"
MAKE[1]="$MAKE_CMD_TMPL"
AUTOINSTALL="YES"
# 使用 dkms 安装驱动
dkms add usb-vhci-hcd/1.15
dkms build usb-vhci-hcd/1.15
dkms install usb-vhci-hcd/1.15
# 使用 dkms status 看一下状态
dkms status
# 复制驱动到内核文件夹,至于为什么要这么做,可以参考 https://blog.tianjinkun.com/post/66.html
cp /lib/modules/`uname -r`/updates/dkms/usb-vhci-hcd.ko /lib/modules/`uname -r`/kernel/drivers/usb/host/
cp /lib/modules/`uname -r`/updates/dkms/usb-vhci-iocifc.ko /lib/modules/`uname -r`/kernel/drivers/usb/host/
安装 Agent
apt install openssh-server tshark dkms open-vm-tools-desktop python python-dbus python-gobject make gcc linux-headers-`uname -r` libelf-dev lightdm realmd sssd sssd-tools libnss-sss libpam-sss adcli samba-common-bin oddjob oddjob-mkhomedir
cd VMware-horizonview-agent/
./install_viewagent.sh -U no -a yes
Optional parameters
--multiple-session Install or Upgrade Linux Agent to Multiple-Session Mode. Default is Singleton Mode.
-M yes|no Upgrade the Linux Agent to managed|un-managed agent. Default is yes.
-s Self signed cert subject DN. By default, installer will use Blast for CN.
-j JMS SSL keystore password. By default, installer will generate a random string.
-r yes|no <Do|Not restart system after installation automatically>. Default is no.
-m yes|no <Install|Bypass smartcard redirection support>. Default is no.
-F yes|no <Install|Bypass Client Drive Redirection support>. Default is yes.
-f yes|no <Install|Bypass FIPS mode>. Default is no.(Only support RedHat 7.x/8.x)
-a yes|no <Install|Bypass audioin support>. Default is no.
-U yes|no <Install|Bypass USB Redirection support>. Default is no.
-C yes|no <Install|Bypass Clipboard Redirection support>. Default is yes.
-S yes|no <Install|Bypass SingleSignOn support>. Default is yes.
-T yes|no <Install|Bypass TrueSSO support>. Default is no.
配置默认桌面
apt install -y samba krb5-config krb5-user winbind libpam-winbind libnss-winbind
vi /etc/vmware/viewagent-custom.conf
SSODesktopType=UseKdePlasma
限制桌面挂载 /etc/vmvare/config
中的 cdrserver.forceByAdmin=FALSE
参考文档
多用户会话
多用户会话,托管
Parameters | Description |
---|---|
-b | Hostname or IP address of the Horizon Connection Server. This parameter is only supported when you install Horizon Agent in unmanaged mode. |
-d | Domain name of the Horizon Connection Server administrator. This parameter is only supported when you install Horizon Agent in unmanaged mode. |
问题处理
修复:Broken GPO data received from AD
增加