For this tutorial, we will install Windows 7 x64 in a virtual machine running on a XenServer server.
If you need help with XenServer, refer to our tutorial : Citrix XenServer - Installation, configuration, updates and use
Once you've installed Windows and XenServer Tools (drivers of the virtual machine), continue the tutorial without installing any additional programs.
As indicated in the official Citrix documentation, it's recommended to enable WinRM to allow Citrix Director to retrieve data that it needs (such as profiles, VDA HDX data, ...).
For this, you must run the command "winrm quickconfig" as administrator.
The problem is that this command doesn't work correctly when Windows 7 UAC is enabled.
To avoid this problem, we will use the "runas" Windows command.
Source : microsoft.com (answer of : David Shen).
Note : The administrator account must be enabled and be protected by a password in order to use the "runas" command.
To activate the account local administrator of the virtual machine, go to the start menu -> Right click on "Computer" -> Manage -> Local Users and Groups -> Users.
Double click on Administrator and uncheck the "Account is disabled" box.
Then, right click on "Administrator" and click "Set Password".
Ignore the warning and click "Continue".
Specify a strong password to avoid that the user finds it.
Then, open a command prompt (not need to run it as administrator) and type this command :
runas /user:Administrator "winrm.cmd quickconfig"
This command will prompt you for the password of the "Administrator" account.
If the password is correct, a second window will open. Answer "y" to 2 questions.
WinRM is enabled on the virtual machine.
To improve data transfers over the network, it's recommended to disable the "TaskOffload" option.
For that, go to the registry key "HKLM\System\CurrentControlSet\Services\TCPIP\Parameters".
In this key, add a key "32-bit DWORD" key :
- Name : DisableTaskOffload
- Value : 1
Official documentation : Using Registry Values to Enable and Disable Task Offloading
In this tutorial, we will use a write cache on client side and a personal vDisk.
By default :
- The personal vDisk will always have the "P" letter.
- The virtual disk to be used as write cache will have the first free letter on the OS installed in the virtual machine.
In our case, there is only one partition (+ a hidden partition, because we have Windows 7 installed with the WinRE partition with a size of 100 MB). So, the write cache will have the letter "D".
Note : Changes made in section 3.1 of this tutorial will redirect the logs on this virtual disk.
Before starting, you need to change the CD drive letter, to allow Windows to automatically assign the letter D to the "write cache" disc.
For that, go to the Start Menu -> Right click on "Computer" -> Manage -> Disk Management.
Then, right-click on the CD-ROM drive and click "Change Drive Letter ...".
Choose another letter. For example : Z.
Now, the CD-ROM drive has the "Z" letter.
Finally, link the virtual machine to your domain and then turn it off.
Once turned off, go to the "Storage" tab and click "Add" to add 2 virtual hard disks.
- These 2 discs will not be formatted or used, but allow Windows to know there will be 2 extra hard drives (those that PVS will map automatically for client virtual machines).
- These two discs must be different sizes. Otherwise, problems may occur (eg : The system "pagefile.sys" file (Windows virtual memory) can be placed on personal vDisk instead of the "write cache" virtual disk drive).
- The Personal vDisk size must be greater than the "write cache" disk size to avoid the problem mentioned above.
Create a "Write Cache" drive.
In our case, this will be a virtual disk with a 10 GB size.
Then, do the same for personal vDisk.
As you can see, the virtual machine has 3 virtual hard disks :
Start the virtual machine and return to the start menu -> Right click on "Computer" -> Manage -> Disk Management.
After a few seconds, a "Initialize Disk" window will appear. Click "OK" and close the "Computer Management" window.
Now, Windows knows that the machine has three hard disks.
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2021 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.