Tag Archives: Xendesktop

Citrix XenDesktop – Desktop Popsup with connection and then closes

Today i have this problem, that my brand new setup of XenDesktop just start and showing connecting, but just after a few seconds just drop the connection, and the VDI is restarting.

So I push the connect buttom and when it shows connecting, i put the machine in maintaince mode, so it is not restarting automatic.

Then look at the Event Viewer, and it was showing this error:
Source: Citrix ICA Service
Event ID: 1260
Type: Warning
Description: ICA connection is cancelled because auto-logon is enforced and auto-logon failed.
For more information, see
http://support.citrix.com/proddocs/topic/online-plugin-121-windows/ica-sson-enable.html.

When look at the support.citrix.com page I got a 404 error page.

Search the Internet and found at that my user account dosent was permitted to logon locally, enable this though Group Policy
Group Policy here: Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Local Policies -> User Rights Assignment -> Allow log on locally

By default the following users and groups are granted to log on locally on windows 7:
Guest
Administrators
Users
Backup Operatiors

Web interface and the black drop down enable

In default the Bkack Drop Down is not enabled, in webinterface.

To enable it, do this:

  • On the Delivery Services server, navigate to: C:\inetpub\wwwroot\Citrix.
  • Open the folder that represents the desired Store (example: Store1).
  • With Notepad, open webinterface.conf.
  • Search for the showDesktopViewer attribute.
  • Change the attribute value from off to on.

Kill a stuck vm in shuting down mode or pending mode

There are 3 options to do this, witch way depend on the stuck mode, start with options 1 and work you way thougt it onto the vm is shutdown.

Options 1:

SSH to the Xenserver witch running the vm

Type these commands:

xe task-list

Found the task and the UUID for this task, and kill it

xe task-cancel force=true uuid=<UUID>

 Options 2:

SSH to the Xenserver witch running the vm

xe vm-list

Find the vm han get the UUID

list_domains | grep <UUID>

Get the number in front of the UUID

/opt/xensource/debug/destroy_domain -domid <DOMID>

Options 3:

SSH to the Xenserver witch running the vm

xe-toolstack-restart

 

Xendesktop 5 – Log off disconnected users after a certain time

Example: If you want to log off user after 120 minutes of disconnect time. You can set this up though Powershell

ASNP Citrix.*

set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakDisconnectTimeout 120
set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakExtendedDisconnectTimeout 120
set-BrokerDesktopGroup -name "Desktop Group Name" -PeakDisconnectTimeout 120
set-BrokerDesktopGroup -name "Desktop Group Name" -PeakExtendedDisconnectTimeout 120
set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakDisconnectTimeout 120

set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakExtendedDisconnectAction "shutdown"
set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakExtendedDisconnectAction "shutdown"
set-BrokerDesktopGroup -name "Desktop Group Name" -PeakDisconnectAction "shutdown"
set-BrokerDesktopGroup -name "Desktop Group Name" -PeakExtendedDisconnectAction "shutdown"
set-BrokerDesktopGroup -name "Desktop Group Name" -OffPeakDisconnectAction "shutdown"

 

Xendesktop 5 – Change logoff behavior

If you want to change a desktop group logoff behavior, this is done by PowerShell.

To turn off shutdown af use:

ASNP Citrix.*
Set-BrokerDesktopGroup -Name "Desktop Group Name" -ShutdownDesktopsAfterUse $FALSE

To turn on shutdown af use:

ASNP Citrix.*
Set-BrokerDesktopGroup -Name "Desktop Group Name" -ShutdownDesktopsAfterUse $TRUE

If you need to get a list of names of you Desktop Groups, you can run this:

ASNP Citrix.*
get-BrokerDesktopGroup | select Name

Citrix Xenconvert failed with Failed to discover 1 of 2 volumes on the destination disk! or Enable Automount on windows server Enterprise edition and run Disk Management once to take effect

Today i should convert a machine with XenConvert to XenServer, but it come with these errors:

Failed to discover 1 of 2 volumes on the destination disk!
Enable Automount on windows server Enterprise edition and run Disk Management once to take effect

What i did to fix it was:

First enable automount

C:\> DiskPart
DISKPART> automount enable
DISKPART> exit

If it still not working try this:

  1. Close XenConvert.
  2. Open a command window.
  3. Change to the XenConvert installation folder
  4. Mount the VHD:
    cvhdmount -p 1 <VHD file path>
  5. Open Windows Disk Management, then wait for the disk to appear online in Windows Disk Management, maybe you need to rescan
  6. Verify that the volumes are accessible
  7. Dismount the VHD
    cvhdmount -e 1
  8. Last thing to is editing XenConvert.ini file in c:\program files\citrix\xenconvert\xenconvert.ini
    And put this under [Parameters]
    VolumeDiscoveryTimeoutAsSeconds=120

Then try run XenConvert again.

Installation NOT successful for ‘USB’, error: 1603.

Error – CComponentManager::GetInstallStatus(400) – Installation NOT successful for ‘USB’, error: 1603.

The problem could be some stucked registry keys from a previous installation

Solution:
Start regedit

Delete this keys: (Maybe you need to take control of HKLM\SYSTEM\ControlSet001\Enum and HKLM\SYSTEM\ControlSet002\Enumto delete them.

HKLM\SYSTEM\ControlSet001\Enum\Root\LEGACY_CTXUSBM
HKLM\SYSTEM\ControlSet002\Enum\Root\LEGACY_CTXUSBM

 

Remember to restart you computer

Citrix Xendesktop optimize for Windows 7 – Optimization Guide

The link for downloading the PDF of the Citrix Xendesktop Guide, to optimize Windows 7 for using it with Xendesktop, can be found here: http://support.citrix.com/servlet/KbServlet/download/25161-102-648286/XD%20-%20Windows%207%20Optimization%20Guide.pdf

The services in danish name is:

English guide name Danish name
Background Intellingent Transfer Service BITS (Background Intellingent Transfer Service)
Desktop Windows Manager Session Manager Sessionshåndtering af Styring af skrivebordsvindue
Function Discovery Resource Publication Udgivelse af funktionsregistreringsressourcer
HomeGroup listener Lyttefunktion til hjemmegruppe
HomeGroup Provider Udbyder af hjemmegruppe
Indexing Service Indexing Service
Offine Files OfflineFiler
Security Center Sikkerhedscenter
SuperFetch Superfetch
System Restore System Gendannelse
Themes Temaer
Windows Defender Windows Defender
Windows Media Player Sharing Service Windows Media Player Network Sharing Service
Windows Search Windows Search

 

Xencenter / Xenserver This operation cannot be performed because the specified VDI could not be found on the storage substrate

Today i got this when i was trying to start a VDI on my Xenceter.

This operation cannot be performed because the specified VDI could not be found on the storage substrate

This was because of that i have a CDrom mounted on a CIFS shares that isn’t available anymore, after remove the ISO, the VDI start perfects again.

 

Failed to import the OVF Package. Xenserver / Xenconvert

I have a problem converting a VHD to a virtual machine to an Xenserver.
When lokking at the logs i got this: Failed to import the OVF Package.

It was because my Default Storage was fill.
When change the Default storage at my XenCenter it was working fine again.

First change the show to “Folder View”

Select Types.


Then select a storage ether under Remote Storage Repositories or Local Storage Repositories.
Right click on it and set it as default.