PowerShell: XenServer 6.0 CmdLet Poster

Fire up your large format printers!

The fine folks at X-Tech have put together an exhaustive (and large) poster showing all the existing and new cmdlets for managing XenServer through PowerShell.

An Example of the  XenServer cmdlet poster
An Example of the XenServer cmdlet poster

Get your copy here.



Article: CTX131172 – Hotfix ES540ServerWX64001 (Version – For Citrix EdgeSight 5.4 Server x64

CTX131172 – Hotfix ES540ServerWX64001 (Version – For Citrix EdgeSight 5.4 Server x64

Link to x86 version: CTX131171 – Hotfix ES540ServerWX86001 (Version – For Citrix EdgeSight 5.4 Server x86

Important Note(s)

Caution! This release may require you to edit the registry. Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.

Where to Find Documentation

This document describes the issue(s) resolved by this release and includes installation instructions. For additional product information, see Citrix eDocs, the Citrix Product Documentation Library.

New Fixes in This Release

  1. Uploading the payload results in the following error message due to the violation of primary key constraint:

    “Cannot insert duplicate key in object ‘dbo.ctrx_session_autoreconnect’.”

    [From ES540ServerWX64001][#238149]

  2. When Worker 101 (Performance Upload) and Worker 2 (Database Maintenance) run at the same time, an upload is attempted even though the database is not available. Although the status of Worker 101 is displayed as successful, this situation results in the following payload error:

    “Invalid payload, no ENV data found”

    [From ES540ServerWX64001][#242200]

  3. When exporting the Session Counts report to Microsoft Excel, the exported data displays “#Value!” in the peak columns.

    [From ES540ServerWX64001][#253058]

  4. If multiple users connect to different XenApp servers and are assigned the same session id by the terminal server, the payload from one XenApp Server can overwrite the principal id of the other XenApp Server, resulting in incorrect EdgeSight report data.

    [From ES540ServerWX64001][#253168]

  5. Users can run the “Assets for a Device” report against devices for which they do not have user permissions.

    [From ES540ServerWX64001][#256871]

  6. If the initial attempt to upgrade a server from EdgeSight Version 5.2 to Version 5.3 or later fails, an error might occur when making subsequent upgrade attempts. The following error message appears in the MSI log:

    “Error -2147217900: failed to execute SQL string, error detail: Ambiguous column name ‘appid’., SQL key: SchemaPost530”

    [From ES540ServerWX64001][#LA0402]

  7. Running any of the following reports on Version 5.4 of EdgeSight Web server (Version or earlier) in the EdgeSight database might generate errors messages:

    • Process Errors
    • Process Errors for a User Group
    • Process Faults
    • Process Faults for a User Group

    The following error messages are observed:

    • An error occurred during the client rendering
    • An error has occurred during the report processing (rsProcessingAborted)
    • Cannot read the next data row for the dataset edgesight (rserrorreadingnextdatarow)
    • Arithmetic over flow error converting expression to data type int

    This occurs when the ID generated by the alert table (alert ID) exceeds the maximum integer value (2147483648).

    [From ES540ServerWX64001][#LA0760]

Fixes from Replaced Hotfixes

No hotfixes were replaced by this release.

Installing This Release


  • This version is packaged as a .zip file containing the replacement EdgeSightServerx64.msi file and Setup.exe file. For more information about deploying msi files, see Microsoft article 884016 or visit the Microsoft Web site and search on keyword msiexec.
  • To install this version successfully, servers must not have registry modification restrictions in place.

To install this version:

  1. Copy the file to a shared folder on the network.
  2. Extract the compressed file and save the EdgeSightServerx64.msi file and Setup.exe file on the computer you want to update.
  3. Run the Setup.exe file.
  4. Restart the computer if prompted to do so.

If it does not exist already, this will add a new entry, Citrix EdgeSight Server, to the Add/Remove Programs list.

This document applies to:

  • EdgeSight for XenApp 5.4


XenServer: Creating an ISO Partition on DOM0


I recently updated my lab machine to XenServer 6.0 and I wanted to create a local ISO repository on the DOM0 partition. I have 3 physical drives, one 250GB drive that holds the host partition and its backup and two 500GB drives that host VM’s. I know that only 8GB on the 250 GB drive are used for the host and its backup, so I wanted to create the local ISO repository in the remaining space.

Stop! Linux Time

Connect to the CLI of your XenServer.

fdisk –l shows my current partition tables

[root@MARLINSPIKE ~]# fdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sda doesn't contain a valid partition table

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdc: 250.0 GB, 250059350016 bytes
256 heads, 63 sectors/track, 30282 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1       30283   244198583+  ee  EFI GPT

Dom0 contains 3 partitions. The first is where the XenServer host resides. The second is the host backup. The final partition is the rest of the unused space on the 250GB drive. In my file system, this is /dev/sdc3. The following commands will format and mount this space as an ISO partition.

[root@MARLINSPIKE ~]# mkfs.ext3 /dev/sdc3
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
29491200 inodes, 58952233 blocks
2947611 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
1800 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 32 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root@MARLINSPIKE]# mkdir /mnt/iso/
[root@MARLINSPIKE]# mount -t ext3 /dev/sdc3 /mnt/iso/
[root@MARLINSPIKE]# echo "/dev/sdc3 /mnt/iso ext3 defaults 1 1" >> /etc/fstab
[root@MARLINSPIKE]# xe-mount-iso-sr /mnt/iso -o bind

Now the new ISO partition shows up in my XenCenter console.



Citrix Forums: Thread: Dom0 Partitions

Citrix Forums: Thread: xe sr-create, local ISO SR on larger drive

How to add an additional local disk to your XenServer 5.5 host

XenServer create local ISO Repository (LVM)

How To Re-partition a Xen Virtual Machine Using GParted LiveCD

LinuxQuestions.org: Having problems mounting hd. (mount: you must specify the filesystem type)