LVDA2203 CLI EasyInstall CentOS7.9

Redhat和CentOS的安装和设置方式完全一样,因为Redhat yum源不好设置,在测试的过程中都是以CentOS来代替。以下安装是以LVDA 2203LTSR + CentOS 7.9版本演示安装过程,在安装的过程中保证VM是可以连接公网的,因为需要下载依赖包。

1.离线安装.Net Core Runtime

LVDA2203需要的是.Net Core Runtime 6.x版本:https://dotnet.microsoft.com/download/dotnet/6.0

创建/opt/dotnet目录,并解压到其中

sudo mkdir /opt/dotnet
sudo tar -C /opt/dotnet/ -xvf dotnet-runtime-6.0.5-linux-x64.tar.gz

2.安装VDA包

sudo yum localinstall -y XenDesktopVDA-22.03.0.18-1.el7_x.x86_64.rpm

3.运行ctxinstall.sh脚本

[root@qccentos ~]# sudo /opt/Citrix/VDA/sbin/ctxinstall.sh
ctxinstall.sh sets up Linux VDA running environment, which includes the automatic installation of
the necessary packages and changes to the configuration files.
[Warning]The current shell will be hung for a while to install packages. You can monitor
the execution status using command 'tail -f /var/log/ctxinstall.log' in another shell.

****System check starts now.
Step 1: The platform is 64-bit Linux [Pass].
Step 2: The Linux operating system is CentOS and the version is 7.7[Pass].
Step 3: The number of available repositories is 3 [Pass].
Step 4: Desktop environment check [Pass].
Step 5: Environment variables check [Pass].
****System check has completed successfully.

****Package installation starts now.
Step 1: Install common packages.
(1/16) Installing package postgresql-server.
(2/16) Installing package postgresql-jdbc.
(3/16) Installing package redhat-lsb-core.
(4/16) Installing package foomatic.
(5/16) Installing package nautilus.
(6/16) Installing package nautilus-open-terminal.
(7/16) Installing package totem-nautilus.
(8/16) Installing package authconfig-gtk.
(9/16) Installing package pulseaudio.
(10/16) Installing package pulseaudio-module-x11.
(11/16) Installing package pulseaudio-gdm-hooks.
(12/16) Installing package pulseaudio-module-bluetooth.
(13/16) Installing package alsa-plugins-pulseaudio.
(14/16) Installing package pciutils.
(15/16) Installing package openssh.
(16/16) Installing package openssh-clients.
Step 2: Install the special packages for this version.
(1/3) Installing package chrony.
(2/3) Installing package firewalld.
(3/3) Installing package foomatic-filters.
Step 3: Update packages.
(1/1) Updating package java-1.8.0-openjdk.
Step 4: Initialize database.
Step 5: Set JAVA_HOME variable.
Step 6: Start PostgreSQL database.
****Package installation has completed.
****System configuration starts now.
Step 1: Get user input.
//是否要配置DNS服务器:根据自己的真实情况填写,如果这台VDA是通过DHCP获得的IP地址和DNS,那么这里可以不填;否则需要添加DNS用于解析AD和DDC的FQDN。
Do you need to configure DNS? y|n [n] y
Input IP address of DNS server:10.110.184.20
Do you need to configure more DNS servers? y|n [n]
DNS Server: 10.110.184.20
Is the input correct? y|n [y]

//VDA的hostname是否需要修改:根据实际情况选择
Change the host name of current Linux VDA(qccentos)? y|n [n]

//设置NTP时间同步服务器
Input IP address of NTP server: 10.110.184.20

//Domain name:以我的lab域名qicai.lab为例,这里要填写大写的QICAI。严谨的做法是在DDC上运行cmd,输入'set'命令列出域相关的值,这里填的是USERDOMAIN的Value
Input Domain name: QICAI

//以我的lab域名qicai.lab为例,这里要填写大写的QICAI.LAB。严谨的做法是在DDC上运行cmd,输入'set'命令列出域相关的值,这里填的是USERDNSDOMAIN的Value
Input realm of domain controller:  QICAI.LAB
Input FQDN of domain controller: ad.qicia.lab

//加域方式:Linux加入Windows域要借助第三方加域方法,常用的是Winbind
Please select which Active Directory integration method to use:
1: Winbind
2: SSSD
3: Centrify
4: Pbis
Select either of the above options (1-4)[1]

//指定把VDA加入到域中的用户账户,这个账户要有加域的权限
Input Domain User: administrator

Here are your inputs:
Linux VDA Host Name:  qccentos
NTP Server: 10.110.184.20
Domain : QICAI
Realm : QICAI.LAB
FQDN of domain controller: ad.qicai.lab
AD integration method: winbind
Domain user: administrator
Are all inputs correct? y|n [y]

The following parameters are used by ctxsetup.sh.

//donet runtime安装路径:填写步骤1中的路径/opt/dotnet
Checking CTX_XDL_DOTNET_RUNTIME_PATH... Value not set.
Dotnet Core runtime environment is needed to run Linux VDA.
Please specify Dotnet Core binary path here. If not specified, Linux VDA will use /usr/bin as default.
DotNet Core Runtime Path: /opt/dotnet

Checking CTX_XDL_SUPPORT_DDC_AS_CNAME... Value not set.
The Virtual Delivery Agent supports specifying a Delivery Controller name using a DNS CNAME record.
Do you want to enable support for DNS CNAME records? (y/n) [n]:

//Delivery Controller地址: 这里要把所有的DDC FQDN都填上,否则会发生点击桌面图标时VDA从注册变成未注册状态问题,多个DDC中间以空格隔开
Checking CTX_XDL_DDC_LIST... Value not set.
The Virtual Delivery Agent requires a space-separated list of Delivery Controller Fully Qualified Domain Names
(FQDNs) to use for registering with a Delivery Controller. Please provide the FQDN of at least one Delivery
Controller: ddc01.qicai.lab ddc02.qicia.lab

Checking CTX_XDL_VDA_PORT... Value not set.
The Virtual Delivery Agent by default communicates with Delivery Controllers using TCP/IP port 80.
Please provide the TCP/IP port the Virtual Delivery Agent service (ctxvda) should use to communicate with a
Delivery Controller [80]:

Checking CTX_XDL_REGISTER_SERVICE... Value not set.
The Linux VDA services support starting during boot.
Do you want to register these services to start on boot? (y/n) [y]:

Checking CTX_XDL_ADD_FIREWALL_RULES... Value not set.
The Linux VDA services require incoming network connections to be allowed through
the system firewall. Do you want to automatically open the required ports (by default ports 80, 1494, 2598, 8008 and 6001~6099) in the
system firewall for the Linux VDA? (y/n) [y]:

//是否开启3D pro,如果选择了3D Pro模式,则只能发布单会话VDI
Checking CTX_XDL_HDX_3D_PRO... Value not set.
Linux VDA supports HDX 3D Pro, a set of graphics acceleration technologies designed to optimize the
virtualization of rich graphics applications. HDX 3D Pro requires a compatible NVIDIA Grid graphics card to be
installed. If HDX 3D Pro is selected the Virtual Delivery Agent will be configured for VDI desktops (single-session)
mode. Do you want to enable HDX 3D Pro? (y/n) [n]:

//是否开启VDI 模式(单会话): VDI模式即单会话模式,类似Windows 10桌面;如果不开启VDI模式,则为多会话模式,类似Windows server 2016共享桌面。在安装Ubuntu OS镜像时,无论是安装的Ubuntu Server还是Desktop,最终用户的使用方式跟是否开启VDI模式有关。
Checking CTX_XDL_VDI_MODE... Value not set.
Linux VDA supports delivery of hosted shared desktops (multi-session) or VDI desktops (single-session).
Do you want to enable VDI desktops (single session) mode? (y/n) [n]: y

Checking CTX_XDL_SITE_NAME... Value not set.
The Virtual Delivery Agent discovers LDAP servers using DNS, querying for LDAP service records. To limit the DNS
search results to a local site, a DNS site name may be specified.
If required, please specify a local DNS site name. [<none>]:

Checking CTX_XDL_LDAP_LIST... Value not set.
The Virtual Delivery Agent by default queries DNS to discover LDAP servers, however if DNS is unable to provide
LDAP service records, you may provide a space-separated list of LDAP Fully Qualified Domain Names (FQDNs) with
LDAP port (e.g. ad1.mycompany.com:389).
If required, please provide the FQDN:port of at least one LDAP server. [<none>]:

Checking CTX_XDL_SEARCH_BASE... Value not set.
The Virtual Delivery Agent by default queries LDAP using a search base set to the root of the Active Directory
Domain (e.g. DC=mycompany,DC=com), however to improve search performance, a search base may be specified
(e.g. OU=VDI,DC=mycompany,DC=com).
If required, please provide an LDAP search base. [<none>]:

Checking CTX_XDL_FAS_LIST... Value not set.
The Federated Authentication Service (FAS) servers are configured through AD Group Policy. But because
the Linux VDA does not support AD Group Policy, you can provide a semicolon-separated list of FAS servers instead.
Caution 1: The sequence must be the same as configured in AD Group Policy.
Caution 2: If any server address is removed, you must fill its blank with the '<none>' string and keep the
index of server addresses without any changes.
If required, please specify the list of FAS servers (e.g., fasserver.company.com). [<none>]:

Checking CTX_XDL_START_SERVICE... Value not set.
The Linux VDA services may be started after configuration is complete.
Do you want to start these services once configuration is complete? (y/n) [y]:


Here are your inputs:
.NET Core Runtime Path: /opt/dotnet
Enable DNS CNAME records: n
The FQDN of Delivery Controller: ddc01.qicia.lab ddc02.qicai.lab
The TCP/IP port that ctxvda service uses to communicate with Delivery Controller: 80
Register Linux VDA services to start on boot: y
Automatically open the required firewall ports (ports 80 and 1494 by default): y
Enable HDX 3D Pro: n
Enable VDA desktops (single session) mode: y
Specify a local DNS site name: <none>
The FQDN:port of LDAP server.: <none>
Provide an LDAP search base: <none>
List of FAS servers: <none>
Start Linux VDA services once configuration is complete: y
Are all inputs correct? y|n [y]

Step 2: Configure host name.
Step 3: Configure NTP.
Step 4: Configure AD integration.
(1/5) Installing package samba-winbind.
(2/5) Installing package samba-winbind-clients.
(3/5) Installing package krb5-workstation.
(4/5) Installing package authconfig.
(5/5) Installing package oddjob-mkhomedir.

//输入加域用户密码进行加域操作
Step 5: Join domain.
Enter administrator's password:
Using short domain name -- QICAI
Joined 'QCCENTOS' to dns domain 'qicai.lab'
Joined domain successfully.
****System configuration has completed.

****System verification starts now.
Step 1: verify the domain membership.
qccentos has joined the domain successfully.
Step 2: verify the statuses of essential processes.
Checking the status of process messagebus
Process messagebus is running.
Checking the status of process oddjobd
Process oddjobd is running.
Step 3: call /opt/Citrix/VDA/sbin/ctxsetup.sh to do further configurion.

Welcome to the Citrix Linux VDA setup script. This script will guide you through the
configuration of the Linux VDA system services. You can re-run this script at
any time to reconfigure the system.

Gathering information...

Checking CTX_XDL_DOTNET_RUNTIME_PATH... CTX_XDL_DOTNET_RUNTIME_PATH = '/opt/dotnet'

Checking CTX_XDL_SUPPORT_DDC_AS_CNAME... CTX_XDL_SUPPORT_DDC_AS_CNAME = 'n'

Checking CTX_XDL_DDC_LIST... CTX_XDL_DDC_LIST = 'ddc01.qicai.lab ddc02.qicai.lab'

Checking CTX_XDL_VDA_PORT... CTX_XDL_VDA_PORT = '80'

Checking CTX_XDL_REGISTER_SERVICE... CTX_XDL_REGISTER_SERVICE = 'y'

Checking CTX_XDL_ADD_FIREWALL_RULES... CTX_XDL_ADD_FIREWALL_RULES = 'y'

Checking CTX_XDL_AD_INTEGRATION... CTX_XDL_AD_INTEGRATION = '1'

Checking CTX_XDL_HDX_3D_PRO... CTX_XDL_HDX_3D_PRO = 'n'

Checking CTX_XDL_VDI_MODE... CTX_XDL_VDI_MODE = 'y'

Checking CTX_XDL_SITE_NAME... CTX_XDL_SITE_NAME = '<none>'

Checking CTX_XDL_LDAP_LIST... CTX_XDL_LDAP_LIST = '<none>'

Checking CTX_XDL_SEARCH_BASE... CTX_XDL_SEARCH_BASE = '<none>'

Checking CTX_XDL_FAS_LIST... CTX_XDL_FAS_LIST = '<none>'

Checking CTX_XDL_START_SERVICE... CTX_XDL_START_SERVICE = 'y'

Configuring Citrix Linux VDA ...

Configuration complete.
Step 4: verify the statuses of Linux VDA processes.
Checking the status of process ctxhdx
Process ctxhdx is running.
Checking the status of process ctxvda
Process ctxvda is running.

****System verification has completed.
To complete the installation, you still need to take the following actions:
1. Configure 'Machine Catalogs' and 'Delivery Groups' in Citrix Studio for this server.
2. Reboot the server.

ctxinstall.sh has executed successfully.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注