Linux Application Virtualization with UDS Enterprise 2.2.1
Total Page:16
File Type:pdf, Size:1020Kb
Linux application virtualization with UDS Enterprise Versión 2.2.1 Rev. 1 February 26th, 2019 Linux application virtualization with UDS Enterprise www.udsenterprise.com Introduction ................................................................................................................... 2 Necessary elements ..................................................................................................... 3 1. Virtualization platform ......................................................................................... 3 2. Image of Linux OS ............................................................................................. 3 3. X2Go protocol .................................................................................................... 3 4. UDS Actor .......................................................................................................... 4 5. Miscellaneous .................................................................................................... 4 Configuring the Linux template and the connection client ............................................. 5 Linux OS ................................................................................................................... 5 X2Go Protocol - Server ............................................................................................. 7 UDS Actor for Linux ................................................................................................... 8 X2Go Protocol – Connection client .......................................................................... 13 Service publication ...................................................................................................... 19 Accessing Linux application services .......................................................................... 33 About VirtualCable ...................................................................................................... 35 36 Page 1 of 35 Linux application virtualization with UDS Enterprise www.udsenterprise.com Introduction The VDI and vApp UDS Enterprise connection broker allows the deployment and administration of virtualized Linux application sessions through the X2Go connection protocol. These applications may be assigned to user groups. The access to the sessions of virtual applications Linux can be realized through clients of connection with Windows OS and Linux. The users will execute the applications in independent Linux virtual machines autogenerated by UDS Enterprise, based on a template machine (where the applications must be installed). If the same user accesses several applications, all those applications will be executed in the same virtual desktop, thus achieving an important optimization of resources. For the correct operation and integration of UDS Enterprise with X2Go it is necessary to perform a series of tasks that are detailed in this document. 36 Page 2 of 35 Linux application virtualization with UDS Enterprise www.udsenterprise.com Necessary elements To make the configuration of the different elements that will make up the base machine (template) to be used with UDS Enterprise to serve virtual applications, we will need: 1. Virtualization platform It is necessary to have a virtualization platform that integrates with UDS Enterprise so that the connection broker can deploy self-generated virtual machines. These virtual machines will be the ones that will execute the applications for the different users. The virtualization platforms supported by UDS Enterprise to be able to deploy Linux applications are: Citrix XenSenver / XCP-ng, Microsoft Azure, Microsoft Hyper-V, oVirt/RHEV, VMware vSphere, VMware vCloud, Nodeweaver, OpenNebula, OpenStack, etc… The virtual platform must have sufficient resources (vCPU, vRAM and disk) to be able to run the Linux virtual desktops that will provide the virtual applications. 2. Image of Linux OS This MV will be the one that UDS will use as a base machine (template) to deploy virtual desktops in which users will run their virtual applications. It is recommended to use an Ubuntu distribution as a template. In this example, we will use a minimal image of Ubuntu 16.04, available from the official Ubuntu repository: https://help.ubuntu.com/community/Installation/MinimalCD 3. X2Go protocol The connection protocol that will allow us access to Linux applications will be X2Go. The UDS Enterprise team have created a script that automates and simplify the entire X2Go installation process. This script (we have generated one for the server part, which we installed in the server template, and another for the client part of Linux equipment, which is installed in the connection client) can be downloaded from this repository: http://images.udsenterprise.com/files/X2GO/ 36 Page 3 of 35 Linux application virtualization with UDS Enterprise www.udsenterprise.com 4. UDS Actor We will need to have the latest stable version of the UDS Actor to handle the reconfiguration of all Linux virtual desktops automatically generated by the UDS Server. To download the UDS Actor we will need to validate in the UDS login windows with a user with administrator permissions. We will display the user´s menu and access downloads. In this window we will download the Actor for Linux machines and specifically for distributions based on Debian (.deb). 5. Miscellaneous We need to have Internet access in the template machine in order to install both the Ubuntu OS and the X2Go connection protocol. It is also necessary to have a DHCP server in the network where the virtual desktops are generated. 36 Page 4 of 35 Linux application virtualization with UDS Enterprise www.udsenterprise.com Configuring the Linux template and the connection client The following is a list of all the necessary tasks to be performed both on the Linux base machine (template) and on the connection client (the computer that will access Linux virtual applications). Linux OS We will start creating the VM that we will use as the base machine (template). Once downloaded the minimal image of Ubuntu 16.04 from the official repository indicated in the previous section, we proceed to perform its installation: The installation will be done with the default values and indicating some resources (disk, vRAM and vCPUs) according to the requirements of the applications that will be installed on the machine. When we get to the part of the installation wizard where it asks us to select the programs to install, we will mark “Xubuntu desktop”. This option will install and configure the XFCE desktop environment on our Ubuntu machine. 36 Page 5 of 35 Linux application virtualization with UDS Enterprise www.udsenterprise.com In the case of the rest of the indicated data, we can leave the ones that come by default. Once the installation in complete, we can access our operating system Ubuntu 16.04 + XCFE (Xubuntu 16.04). Once the installation of the OS is finished, it is important to install the virtual machine drivers corresponding to the virtualization platform. In this example we will install the “open tools”, because it will run on VMware vSphere virtual platform. sudo apt-get install open-vm-tools 36 Page 6 of 35 Linux application virtualization with UDS Enterprise www.udsenterprise.com It is also recommended to disable automatic updates and, if you need to update the OS, perform it manually. X2Go Protocol - Server Before proceeding with the installation of X2Go, we will need to update our repositories: sudo apt-get update Once updated, we will proceed to the installation of X2Go (Server part) through the script provided by VirtualCable (it is necessary to execute the script with a graphical environment session running). We copy the script to our Xubuntu template: wget http://images.udsenterprise.com/files/X2GO/X2GO-server.sh 36 Page 7 of 35 Linux application virtualization with UDS Enterprise www.udsenterprise.com We locate where we have downloaded the file. We execute the file: sudo sh /home/uds/X2GO-server.sh When we have all the components installed, we can proceed with the installation of X2Go on our connection client. UDS Actor for Linux We download the UDS Actor for distributions based on Debian. 36 Page 8 of 35 Linux application virtualization with UDS Enterprise www.udsenterprise.com When downloading from the browser, we select it to be installed. The first window asks us for the address of the UDS Enterprise Server. In the next window it will ask us for information about the UDS Enterprise platform. After finishing the installation and configuration of the UDS Actor, we verified that the connection between the template and the UDS Server is working correctly. In the event that the following blank data appears: 36 Page 9 of 35 Linux application virtualization with UDS Enterprise www.udsenterprise.com Enter the UDS Server IP address: In the next field we will indicate the UDS Master Key. In order to find the value of this field, we will have to login to the UDS portal with a user with administrator permissions. In the side menu we enter in the tools section. 36 Page 10 of 35 Linux application virtualization with UDS Enterprise www.udsenterprise.com We access the configuration submenu: We enter the security tab: 36 Page 11 of 35 Linux application virtualization with UDS Enterprise www.udsenterprise.com The value that we have to enter is the one indicated in the Master Key field: Once you have entered all the data, click on “Test Parameters” to verify that the data is correct: In case we need to modify some parameter, we can do it from this