Category Archives: Computer

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.

Citrix XenApp failed to connect to Data Store

Today i have this problems on one of the Citrix XenApp servers, that the service IMA won’t connect to the Data store.

It failed with this events:

1. Citrix XenApp failed to connect to the Data Store. ODBC error while connecting to the database: S1000 -> [Microsoft][ODBC Microsoft Access Driver] Cannot open database ‘(unknown)’.  It may not be a database that your application recognizes, or the file may be corrupt.

2. Failed to load plugin C:\Program Files (x86)\Citrix\System32\Citrix\IMA\SubSystems\ImaPsSs.dll with error IMA_RESULT_FAILURE

3. Failed to load plugin C:\Program Files (x86)\Citrix\System32\Citrix\IMA\SubSystems\ImaRuntimeSS.dll with error IMA_RESULT_FAILURE

4. Failed to load initial plugins with error IMA_RESULT_FAILURE

5. The Citrix Independent Management Architecture service terminated with service-specific error 2147483649 (0×80000001).

 

But all my others servers in the farm was working just fine, so it must be a locally problems.
The Local Host Cache database, is used to allow a Citrix server in the Citrix Farm to pursue working if the server loses acces to date store temporay. The Local Host Cache database, is an Microsoft Access database, named lmalhc.mdb, and it store ind the Independent Mangement Architecture folder, located: <ProgramFiles>\Citrix\Independent Management Architecture\

 

So the solution to this problems must be to recreate the LHC database, this can be done with this command

dsmaint recreatelhc

But first check that

The datastore is available and function okay, and that the Citrix IMA Service is down :).

The command performs these actions:

Rename the existing Local Host Cache database, create a new one, and the setting PSRequired in registry to 1. Under HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\IMA\Runtime\

Setting thise key to, force the server to connect to the data store, so that the Local Host Cache database, can be recreated.

Search exchange message tracking log for a particular subject

If you want to search Exchange log for a particular subject, or just a bite of it, you can search witch this commands.

This will also export it to a nice CSV files.

Get-MessageTrackingLog -resultsize unlimited | Where-object {$_.MessageSubject -like "*Kenneth Dalbjerg"} | select-object timestamp,Sender,@{l="Recipients";e={$_.Recipients -join " "}},messageSubject | export-csv c:\KennethDalbjerg.csv

Install Dell OpenManage on ESXi 5.1 host

If you have follow my guide to install the Dell Openmanage on a ESXi 4.1 host, and try the same thing on a ESXi 5.1 you will get a warning from the host saying:
This operation is NOT supported on 5.1.0 platform.

You need to install it directly on the ESXi host in 5.1 version.
So you just need to upload the Dell OM-SrvAdmin-Dell-Web-7.2.0-6945.VIB-ESX51i.zip file to the host, i will do this with WinSCP, i will put in the /tmp directory.

Then SSH to the host and run this commands:

esxcli software vib install –d /tmp/OM-SrvAdmin-Dell-Web-7.2.0-6945.VIB-ESX51i.zip

Output:

~ # esxcli software vib install -d /tmp/OM-SrvAdmin-Dell-Web-7.2.0-6945.VIB-ESX51i.zip
Installation Result
   Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
   Reboot Required: true
   VIBs Installed: Dell_bootbank_OpenManage_7.2-0000
   VIBs Removed:
   VIBs Skipped:

After you have install the VIB packages successfully, the ESXi 5.1 host needs to be restarted. When the host is ready again, you should be able to see that UserVars.CIMvmw_OpenManageProviderEnabled is set to 1. In this location

Select the host and go to the Configuration tab. Click on Advanced Settings and find the UserVars.CIMvmw_OpenManageProviderEnabled, and check that this is set to 1. In ESXi 4.1, this is UserVars.CIMoemProviderEnabled

Xenserver – Problems with the master of the pool, down – dead or corrupt

If you have problems, that you master is dead or have som troubles, and you need to selected a new master, you can do this with this commands:

xe pool-emergency-transition-to-master

Then on the others slave you can run this commands:

xe pool-emergency-reset-master master-address=NewMasterAddress

And then when the master is running again run this command on the old master

xe pool-emergency-reset-master master-address=NewMasterAddress

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

 

XenCenter – Failed to import

I have a problem with my Xencenter failed to import a OVF VM.
In XenCenter console, it just says: Failed to import.

If i look in the log files is was saying: (In XenCenter Console, push tab Help, and then clock on “View application log files. And then open op XenCenter.log):

System.Exception: Failed to import. —> System.IO.InvalidDataException: Failed to add resource Hard Disk Image. —> System.Exception: Failed to import. —> System.Exception: Failed to import virtual disk file. —> System.Xml.XmlException: Root element is missing.

Error on a Danish windows

System.Exception: Failed to import. —> System.IO.InvalidDataException: Failed to add resource Hard Disk Image. —> System.Exception: Failed to import. —> System.Exception: Failed to import virtual disk file. —> System.Xml.XmlException: Rod element mangler.

To fix this problem I did:
In XenCenter, select View -> Hidden Objects
This will show you hidden objects, such as Transfer objects.
Found the failed imported machine, right click on it and delete it.
Now you should found a XenServer Tranfer VM X.X.X-X, right click on it and delete it.

Now connect to the console on the XenServer host: (Master of the pool if you have such one)
And type this commands:

cd /opt/xensource/packages/files/transfer-vm
./install-transfer-vm.sh