Solved

Cloning an existing Citrix virtual server

Posted on 2013-01-28
16
1,045 Views
Last Modified: 2013-02-12
Hello,
I am currently in the process of a Citrix XenApp 6.5 farm roll out. I have 2 servers built, and would like to build a total of 8. The 2nd server is just a basic application server (no WI or anything special) and I would like to clone it in VMware to avoid having to build it from scratch and install all those PITA applications. If I clone this server, what needs to be done as far as getting the farm to recognize it as a new citrix server with a different name? Would would be the steps? I am not a top level Citrix engineer, so if you could dumb it down a bit for me, that would help drastically :)

Much appreciated!
0
Comment
Question by:kjs00333
16 Comments
 
LVL 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
Comment Utility
0
 
LVL 25

Expert Comment

by:Tony1044
Comment Utility
This is the officially supported method:

http://support.citrix.com/proddocs/topic/xenapp65-install/ps-image-prep.html

I believe the tools referenced in the URL above may have changed / disappeared.

In actual fact, by the way, you were right to have a second server as you cannot (using Citrix's tools) clone the first server in the farm.
0
 
LVL 12

Expert Comment

by:Daniel Borger
Comment Utility
once you have te server how you want it use the Citrix Role configuration to generalize for PVS/cloning. this will do everything needed on the Citrix side.

Copy the VM
boot copied vm and run Sysprep
Start copied VM and rename.. once it's booted it will join the XenApp farm.

The important step to note is copying your master and running sysprep. IN 2008 you only get 3 syspreps unless you get fancy with the XML files. by copying the master you don't lose any of your 3 rearms.
0
 

Author Comment

by:kjs00333
Comment Utility
Ok, by following the guides listed, now it thinks my old server I cloned is now the new server name..even though both servers are there.

Example:
Original server: CTX004
Cloned to CTX005

After I cloned the VM, I booted into the newly cloned machine and ran the Citrix Xen App cloning tool. Afterwards I sysprepped the server and rebooted (did not use the generalize option, only OOBE. Generalize would constantly blue screen the server). I joined the server to the domain and the newly cloned server was now showing up in the farm in the server list.. perfect right?!  no.

Now I am unable to connect to my orginal server (CTX004), it just says that the xen app server is not accepting connections via PN agent. I can telnet over port 1494, the Citrix IMA service is running and able to RDP successfully into the server. When I publish the desktop to only go to the NEWLY cloned server (CTX005) it works..

so I'm convinced the newly cloned server name just took the place of the old and left the old server in the server listing visible from the app center.

In short.. CTX004 is now CTX005. Not a clone, just a rename and joined to farm but the old is stuck in there.
0
 

Author Comment

by:kjs00333
Comment Utility
I am also convinced of this because when I publish the application for CTX005 only, and then configure the ICA client for CTX004, it will still connect pointing me to CTX005. But when I publish the application for CTX004 only, it will not connect at all.

This is what leads me to believe the newly cloned server took the place of the old with just a different name.  
Is there a way to fix this?
0
 

Author Comment

by:kjs00333
Comment Utility
Ok update:  Over web interface, all servers are working properly. In the app center, it shows me connected to my newly cloned server and everything seems to be fine.  But why is it telling me my xen app servers is not accepting connections over the pn agent?  All 4 of them are not accepting connections now except my first server in the farm. Is there something within the PN Agent site that needs to be changed?
0
 
LVL 12

Expert Comment

by:Daniel Borger
Comment Utility
New servers added to worker group?
0
 

Author Comment

by:kjs00333
Comment Utility
I don't have any worker groups defined, but they are all in the same zone. All servers are working via WI, but not working over PN Agent.

Just as a test, im going to reboot my PN Agent site server and see if that may clear some things up.
0
NetScaler Deployment Guides and Resources

Citrix NetScaler is certified to support many of the most commonly deployed enterprise applications. Deployment guides provide in-depth recommendations on configuring NetScaler to meet specific application requirements.

 
LVL 12

Expert Comment

by:Daniel Borger
Comment Utility
You can also enable the citrix policy to trust XML service requests.
0
 

Author Comment

by:kjs00333
Comment Utility
The Citrix policy is defined that way. 1 of my servers works when connecting via PN Agent, but the other 3 don't.
0
 
LVL 12

Expert Comment

by:Daniel Borger
Comment Utility
Stop IMA service and recreate LHC?
0
 

Author Comment

by:kjs00333
Comment Utility
I am not familiar with that process. How do I go about that?
0
 
LVL 12

Expert Comment

by:Daniel Borger
Comment Utility
command line:

net stop imaservice
dsmaint recreatelhc
net start imaservice
0
 

Author Comment

by:kjs00333
Comment Utility
I think this problem more points to the PNAgent site in IIS as everything else seems to be working just fine via Web Interface. My XML port is configured now for 8080 and I also configured the custom ICA connection to use that port as well. Still saying Xen App server is not accepting connections when trying to connect via PNAgent.

Does this sound likely?

Screen shot attached of the Basic settings in IIS for the PNAgent site
PNAgentIIS.jpg
0
 

Author Comment

by:kjs00333
Comment Utility
Fixed. The issue was session reliability was enabled in the custom ica connection when using xenapp for hosted applications 11.  Any reason why I have to disable this on the custom connections when session reliability is enabled via policy?

When it's enabled, the PN Agent connection gets rejected immediately with "The Xen App server is not accepting connections". When I disable it, it goes through with no issues at all.

I would like session reliability to be enabled if possible.
0
 

Author Closing Comment

by:kjs00333
Comment Utility
Worked perfectly.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

After several days of searching and hunting for limited documentation, I wanted to share this guide to hopefully save someone the hassle of trying to figure this out on their own. I have tested this on Xendesktop 7.1 and PS 4.5 running simultaneous…
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now