Sample code for XenServer