1.安装XenTools或者VMWare tools
2.离线安装dotnet
下载地址: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
3.安装Linux VDA包
sudo yum ‒ y localinstall <PATH>/<Linux VDA RPM>
4.安装epel
安装epel是通过MCS发布RHEL/CentOS特有的步骤,因为ntfs-3g不在原有的yum源中,需要通过epel源来安装ntfs-3g, ntfs-3g的作用是挂载identity disk盘。
sudo rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
5.配置/etc/xdl/mcs/mcs.conf
#!/bin/bash ############################################################################### # # Citrix Virtual Apps & Desktops For Linux Script: Machine Creation Service # Copyright (c) Citrix Systems, Inc. All Rights Reserved. # # This is the configuration file for mcs scripts. #########################Template machine check################################ # If unspecified, the value is N by default, meaning that mcs configuration templates will overwrite configuration items # If you choose Y, MCS created VMs will use the existing configurations of the current VDA that must running correctly Use_Existing_Configurations_Of_Current_VDA= #########################DNS Configuration##################################### # Provide DNS information # You can provide 4 DNS servers at most. # Leave empty if you do not have 4 servers. You may also leave all of them empty # and configure dns manually. # Format: # dns1="xx.xx.xx.xx" # dns2="xx.xx.xx.xx" # dns3= # dns4= //设置DNS Server地址 dns1=10.110.10.1 dns2=10.110.10.2 dns3= dns4= #########################NTP Configuration##################################### # Provide NTP server information. # If not set here, the default value will be the address of domain controller. # Format: # NTP_SERVER="xx.xx.xx.xx" //设置时间同步服务器 NTP_SERVER=10.110.10.1 #########################WORKGROUP Configuration############################### # Provide Workgroup information. # Usually workgroup is the same with domain name and you do not need to configure it here. # If that is not the case, please config it according to the correct format: # WORKGROUP="workgroup_name" //Domain name:以我的lab域名qicai.lab为例,这里要填写大写的QICAI。严谨的做法是在DDC上运行cmd,输入'set'命令列出域相关的值,这里填的是USERDOMAIN的Value WORKGROUP=QICAI #########################Domain Join Configuration############################# # Provide Domain Join method. # Winbind: support RHEL6/CentOS6, RHEL7/CentOS7, SUSE12, Ubuntu1604 # SSSD: support RHEL6/CentOS6, RHEL7/CentOS7, Ubuntu1604 # AD_INTEGRATION="winbind" or AD_INTEGRATION="sssd" //加域方式 AD_INTEGRATION="winbind" #########################Linux VDA Configuration############################### # Provide Linux VDA configuration information. # Please refer to Linux VDA Documentation for these settings. //dotnet runtime 解压路径 DOTNET_RUNTIME_PATH=/opt/dotnet SUPPORT_DDC_AS_CNAME=N VDA_PORT=80 REGISTER_SERVICE=Y ADD_FIREWALL_RULES=Y HDX_3D_PRO=N //单会话还是多会话 VDI_MODE=Y SITE_NAME='<none>' LDAP_LIST= SEARCH_BASE='<none>' FAS_LIST= START_SERVICE=Y