• No results found

CREATE MANAGED DESKTOPS DYNAMICALLY

PVC virtualizes servers at the operating system, or kernel layer, to create an isolated instance (container) of the operating system on the physical server. These instances (containers) can be dynamically created to allow availability of VDI desktop instances ready for users to connect to or scheduled / created on demand.

77

CREATE SAMPLE CONTAINER FOR DYNAMIC DESKTOP CREATION

The first step to allow dynamic desktop creation is to create a sample container as a template. This task is generally carried out from outside of the Propalms VDI product using the Parallels Management Tools.

Open Parallels Management Console.

Go to the Container Samples and right click to Create New Container Sample.

You can either select a Sample as a template to create a new one or create it manually. Select Set Container Sample Manually.

78 Enter the name of the Sample and the Description and click Next to continue.

Select OS Template and click Next.

Leave the Resources section as default settings for evaluation.

79 Add the DNS Server and Search domain if you want and click Next to continue.

Specify the network settings the way you want it to be configured and click Next to continue.

NB: the network configuration that is configured in the sample configuration is used during the Creation of Virtual Containers (VCs) on the parallels. So make sure the network configuration is done properly. If you do not have a DHCP server in your environmentyou will have to specify a range of unused IP Addresses which can be given on demand to new containers.

Accept the default settings on the following screens and click Finish.

CREATE DESKTOP AGENT AS APPLICATION TEMPLATE

Application templates are the easiest and most dynamic way to deliver applications to users.

Application templates are special application packages that can be delivered to users on Virtuozzo containers for application access. An Application template contains all necessary application files, exes, dlls including the registry entries, COM registrations, etc which the application needs to run.

80 The application template is then run under a virtual environment on the Virtuozzo container which makes the application feels that it is natively installed on the Virtuozzo container.

The VDI administrator needs to prepare templates for each application that needs to be published on Virtuozzo containers.

NB: It is not necessary to use only application templates for delivering applications to users. Applications can be natively installed inside a Virtuozzo container.

VDI Desktop Agent is a windows service which runs inside the virtual machine and performs the following functions:

 Prepares the VM for the Remote Desktop Connection.

 Sets the user name and password of the logging in user in the VM.  Tells the Broker which user is logged in.

 Idle time: the time for which the machine is idle.  Disconnects the RDP connection when the user logs out.  Shows the message sent from the administrator.

Application template has to be made for VDI Desktop Agent and added to the sample configuration. Copy VDIDesktopAgentSetup-2.1.exe to a folder on the Parallels Host.

On the Parallels Host Go to Start Menu -> All Programs -> Parallels -> Parallel Virtuozzo Containers and select Parallels Virtuozzo Template Creation Wizard.

Select Create a template on the basis of an installed application and click Next to continue.

Provide an IP address which is not assigned to any machine in the network and select the OS template and click Next to continue.

81 Here you have to select the Application Folder where the VDIDesktopAgentSetup-2.1.exe is placed and also the name of the Template.

NB: Make sure that the name of the agent that you enter is “VDIDesktopAgent” otherwise the Broker will not be able to recognize it.

It will now create a temporary container with the application installer available to be installed at the location copied in the previous steps.

Click Next to connect to the temporary container.

82 Important: You must minimize the RDP window and click Next before installing the agent.

When you see the following screen you can switch back to the RDP window and install the agent.

To install the VDI Desktop Agent:

Open a command prompt and navigate to the directory where the agent setup file exists.

Once you are in the same folder (from the command prompt) as the agent setup, run the following command: VDIDesktopAgentSetup-2.1.exe /S /BrokerHost="<ConnectionBrokerNameORIPAddress>"

This will install the agent on the desktop and set the environment for the VDI Connection Broker host. Once the install is complete switch back to the Template Creation Wizard and click Next.

83 Click Next to continue.

Specify the version of the application in the application version field and click Next.

84 Click Next to install the application on the Hardware Node.

A screen should appear informing you that the template has been successfully installed. Click Finish to exit the wizard.

ADDING VDI AGENT TEMPLATE TO SAMPLE CONTAINER

Open Parallels Management Console and select Templates section from the left hand side.

On the right side of the screen click on Application Templates tab. You should see the VDI Desktop Agent template listed.

85 Now this application template can be added to the sample container previously created so that any containers created from this sample container automatically have the VDI Desktop Agent installed.

Click on Container Samples in the Parallels Management Console and right click your sample container and choose properties. Select Templates from the properties window and check the box for VDI Desktop Agent.

CREATE DESKTOPS DYNAMICALLY FROM THE CONSOLE

Right Click on the Managed Desktop Pool and select Add Desktops. Select Create Managed Desktops Dynamically.

86 Enter a Task name and click Continue.

Specify the OS template and click Next.

Enter the number of Managed Desktops you want to create. Select the Sample Configuration to be used.

You can enable Load balancing where it would create equal number of Desktops on all the Hosts containing the specified OS template and the Sample Configuration.

87 Enter a Prefix and use the source value $VEID to name the virtual containers dynamically.

Enter a password for the Administrator account on each container.

Finally you can choose to create the Desktops now, on user logon or schedule them for a particluar time.

88 Once the task has completed the desktop should appear under the Managed Desktops page.

JOIN DESKTOPS TO DOMAIN

To allow domain users to log into the virtual Desktops, each desktop needs to be joined to the domain. You can console into each desktop using the VDI Management Console and login as the administrator account. Join the desktop to the domain and restart the desktop.

ASSIGN APPLICATIONS TO MANAGED DESKTOP POOL

Parallels application template feature enables the delivery of applications to virtual desktops when utilizing the Parallels Virtuozzo virtualization platform. For instructions on creating application templates refer to the section, Create desktop agent as application template earlier in this document.

89 On the left hand side you see all the Desktop Centers and the Virtualization Hosts in those Desktop Centers respectively. You can click on the Virtualization Hosts and see all the Application Templates on that Host on the right hand side top panel.

Select the application and click on the Add button to select that application. All the selected applications can be seen in the panel at bottom right side of the window.

NB: you can select the application from any of the Virtualization Hosts irrespective of whether that Desktop Pool is under of that Desktop Center or not.

You can also select the Apply Now option. If this option is checked all the applications selected will be installed in all the Desktops in that Desktop Pool right away. Otherwise, it’ll be installed later when the user logs on to the Desktop.

90

USING KVM AS A VIRTUALIZATION HOST

KVM support is pre-built into the Fedora Linux kernel for Fedora release 7 and later. As a result KVM support is already available in the standard kernel negating the need to install and boot from a special kernel.

The tools required to setup and maintain virtualized system are not, however, installed by default. To fully utilize the KVM support built into the kernel the following packages are required:

 qemu-kvm  virt-manager  virt-viewer  python-virtinst

Check to find out if these packages are already installed on your system by running the following commands:

rpm -q qemu-kvm virt-manager virt-viewer python-virtinst

If any of these packages are reported as not installed they may be installed using the yum package manager:

su -

yum install qemu-kvm virt-manager virt-viewer python-virtinst

The packages required to implement virtualization can change from one Fedora release to the next. To avoid the necessity to know the exact package names to install, the required packages can also be installed as a group as follows:

yum groupinstall 'Virtualization'

This command will install all the required packages.

For more information, please visit

http://www.techotopia.com/index.php/Installing_and_Configuring_Fedora_KVM_Virtualization#Preparing_Fedora _for_KVM_Virtualization

Related documents