LVDA2203 CLIEasyInstall Ubuntu1804

以下安装是以LVDA 2203LTSR + Ubuntu 1804版本演示安装过程,在安装的过程中因为需要下载依赖包,所以确保VM是可以连接公网的。

1.安装.Net Core Runtime

.Net Core Runtime 6.0下载地址:https://dotnet.microsoft.com/download/dotnet/6.0 选择最新的即可。示例:

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

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

2. 安装VDA

sudo dpkg -i xendesktopvda_19.12.3000.8-1.ubuntu16.04_amd64.deb
sudo apt-get install -f

3. 运行ctxinstall.sh脚本

sudo /opt/Citrix/VDA/sbin/ctxinstall.sh

示例:

root@qicail1804-01:/home/qicai/Desktop# /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 Ubuntu and the version is 18.04[Pass].
Step 3: The number of available repositories is 10 [Pass].
Step 4: Desktop environment check [Pass].
Step 5: Environment variables check [Pass].
****System check has completed successfully.

****Package installation starts now.
Step 1: Update packages.
Step 2: Install common packages.
(1/4) Installing package chrony.
(2/4) Installing package ntpdate.
(3/4) Installing package libsasl2-2.
(4/4) Installing package libgtk2.0-0.
****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.192.72
Do you need to configure more DNS servers? y|n [n]
DNS Server: 10.110.192.72
Is the input correct? y|n [y]

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

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

//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: qicai-ad.qicai.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:  qicail1804-01
NTP Server: 10.110.192.72
Domain : QICAI
Realm : QICAI.LAB
FQDN of domain controller: qicai-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_DESKTOP_ENVIRONMENT... Value not set.
The Virtual Delivery Agent needs to set a Desktop environment used in LVDA session.
gnome and mate can be set as default desktop in LVDA session on CentOS/RHEL/Ubuntu/Debian/SUSE/Amazon2 here.
If not specified, Linux VDA will use GNOME/KDE/Unity desktop as default:

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: qicai-ddc01.qicai.lab qicai-ddc02.qicai.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_TELEMETRY_SOCKET_PORT... Value not set.
By default, the Citrix Telemetry Service (ctxtelemetry) uses TCP/IP port 7503 on the VDA to listen for
Citrix Scout on the Delivery Controller. Provide the TCP/IP port that you want the Citrix Telemetry Service to
use to listen for Citrix Scout. [7503]:

Checking CTX_XDL_TELEMETRY_PORT... Value not set.
By default, the Citrix Telemetry Service (ctxtelemetry) uses TCP/IP port 7502 on the VDA to communicate with
Citrix Scout on the Delivery Controller. Provide the TCP/IP port that you want the Citrix Telemetry Service to
use to communicate with Citrix Scout. [7502]:

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
Desktop Environment: gnome
Enable DNS CNAME records: n
The FQDN of Delivery Controller: qicai-ddc01.qicai.lab qicai-ddc02.qicai.lab
The TCP/IP port that the ctxvda service uses to communicate with the Delivery Controller: 80
The TCP/IP port that the ctxtelemetry service uses to listen for Citrix Scout: 7503
The TCP/IP port that the ctxtelemetry service uses to communicate with Citrix Scout: 7502
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/8) Installing package winbind.
(2/8) Installing package samba.
(3/8) Installing package libnss-winbind.
(4/8) Installing package libpam-winbind.
(5/8) Installing package krb5-config.
(6/8) Installing package krb5-locales.
(7/8) Installing package krb5-user.
(8/8) Installing package oddjob-mkhomedir.
Step 5: Join domain.
Joining domain using command: net ads join QICAI.LAB  -U administrator

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

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

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_DESKTOP_ENVIRONMENT... CTX_XDL_DESKTOP_ENVIRONMENT = 'gnome'

Checking CTX_XDL_SUPPORT_DDC_AS_CNAME... CTX_XDL_SUPPORT_DDC_AS_CNAME = 'n'

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

Checking CTX_XDL_VDA_PORT... CTX_XDL_VDA_PORT = '80'

Checking CTX_XDL_TELEMETRY_SOCKET_PORT... CTX_XDL_TELEMETRY_SOCKET_PORT = '7503'

Checking CTX_XDL_TELEMETRY_PORT... CTX_XDL_TELEMETRY_PORT = '7502'

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.

发表回复

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