Category Archives: Citrix

Xenserver – Moving VM “VDINAME” to “VDINAME” on “Storage” This operation cannot be performed because this VDI OpaqueRef:8d37bee1-f85b-fb22-e47e-1b8f48b68b84 is in use by some other operation – copy

I have this error:

Moving VM “VDINAME” to “VDINAME” on “Storage” This operation cannot be performed because this VDI OpaqueRef:8d37bee1-f85b-fb22-e47e-1b8f48b68b84 is in use by some other operation – copy

When i was try moving a VM from from storage to another on XenServer. It was just because there was a DVD ISO mounted on the VM, when i Eject that one, the move was just running fine.

 

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.

Allow Citrix Receiver to user nonsecurre http access instead of secure https access

To allow Citrix Receiver to used non secure http access, you need to first ofcouse install Citrix Receiver client.

  1. Then start Regedit:
    1. On 32 bit:
      1. Goto HKLM\SOFTWARE\Citrix\AuthManager
    2. On 64 bit:
      1. Goto HKLM\SOFTWARE\Wow6432Node\Citrix\AuthManager
  2. Under AuthManager create a new String Value (Reg_SZ) with name ConnectionSecurityMode and type Any under Data.

    1. On 32 bit:
      1. Goto HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\Dazzle
    2. On 64 bit:
      1. Goto HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Citrix\Dazzle
  1. Under Dazzle modify AllowAddStore to A

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

Stop error 0xc0000225 on P2V’d Windows 2008 R2

I have P2V a windows 2008 R2, from Xenserver to vmware.

But after the first good boot, it come with: Status: 0xc0000225, Info: The boot selection failed because a required device is inaccessible.

The machine will startup just fine one time, first i thougt it was the uninstall of XenServer tools?.
So i try to remove the Xenserver tools, before the P2V, but again i godt 0xC000225 error again.

I then google it, and found this post: http://web2.minasi.com/forum/topic.asp?TOPIC_ID=31980, and the fix was pretty simple:

  • Mount the Windows 2008 R2DVD in VMware and boot the virtual machine, with CDRom boot at the first boot device.
  • Hit any key to boot from the CDRrom.
  • At the first screen of the installation (Language Selection), you can hit Shift-F10 to get a command prompt.
  • Type Regedit at the command prompt.
  • Loaded hive HKEY_LOCAL_MACHINE (which mounts as a sub-hive)
    1. Highlight HKEY_LOCAL_MACHINE
    2. File > Load Hive
    3. Select < c: > \Windows\System32\config\system (name it something like “qwerty”)
  • Expand HKEY_LOCAL_MACHINE\qwerty\ControlSet001\Services\intelide
  • Change the data for value “Start” from “3” to “0”.
  • File > Unload Hive.
  • Exit regedit.
  • Reboot the VM.

 

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

 

Citrix Provisioning Server “An unexpected MAPI error occurred.” when you try to change an image mode

When you change the mode from private to standard, you may get this error: “An unexpected MAPI error occurred.”. If you click on “More details”, there stand: ”Failed to map vDisk, no Driver.”.

The solution to this problem could be, changing the the Microsoft Volume Licensing, from KMS to ether None og MAK. And then push the OK buttom. If its work you can just change the Microsoft Volume Licensing back to KMS.