Showing posts with label Windows Server 2008 R2. Show all posts
Showing posts with label Windows Server 2008 R2. Show all posts

Thursday, 28 April 2011

XenApp 6 and Service Pack 1 for Windows Server 2008 R2

No-one who has had a production XenApp 6 system since mid-last year would claim they have had no issues, but with all the latest hotfixes from MS and Citrix we do seem to be getting closer to stability, and a big part of this is Service Pack 1 for Windows Server 2008 R2. 

This is something of a relief after I tried using the beta of SP1 last year – that broke XenApp altogether!

Citrix have said that they support the use of XenApp 6 with 2008 R2 SP1, and I can confirm that I have SP1 servers in production already and they are working perfectly – well, at least no worse than the non SP1 servers!

Citrix do have a page of known issues with SP1, though they appear to be fixed if you have installed the first XenApp 6 hotfix

Known issues: http://support.citrix.com/article/CTX126711

Hotfix: http://support.citrix.com/article/CTX125388

Apart from any general improvements and security fixes Microsoft have made, there are several which appear to be included in SP1 and are especially useful for XenApp 6 servers:

  • KB975777 (delays shutting down systems)
  • KB979530 (connections denied during heavy logon and logoff conditions)
  • KB980663 (stop error during heavy logon and logoff conditions)
  • KB2265716 (server stops randomly if heavily using group policy and SCOM)
  • KB2383928 (remote sessions to not completely exit)

I would still install this post-SP1 patch by the way:

  • KB2465772 (causes XenApp to stop randomly with lots of 7011 errors about services being unresponsive – a very long standing problem for us)

Personally by the way, I would probably rebuild servers with SP1 installed from the start, rather than add SP1 onto a server which has been in use for a long time.  But then XenApp servers like being rebuilt now and then.

As a note, when I installed Service Pack 1 on a server which was already operational and had the EdgeSight Agent running, I then got an EdgeSight Operational Alert:

Error:  An unrecoverable, fatal database error has occurred.  Shutting down the Citrix System Monitoring Agent.

Nice.  EdgeSight carried on working afterwards though.

Friday, 17 September 2010

Hosting the Internet Explorer 9 Beta in XenApp 6

image Installing beta software on your XenApp farm might sound like a bad idea – because it probably is actually.  Still, if you have a server that you can use to host test applications for a while before being wiped it could be a good way of satisfying the curiosity of some users without them trying to install it on their main desktops.

This took a lot more messing about than I was expecting, I thought it might be worth sharing this in case anyone else is trying the same thing.  I’d be very interested in how other people felt IE9 Beta worked on XenApp as well.

Pre-requisites and the Beta Service Pack

To install IE9 on your XenApp 6 2008 R2 server, first you need the pre-requisites:

The pre-reqs for IE9 Beta are generally on this page: http://support.microsoft.com/kb/2399238

You should just need the one in near the end of the list for Windows Server 2008 R2.  Personally I could not get the IE9 beta to recognise that it was installed though and had to go even further into Beta territory by installing the Windows Server 2008 R2 Service Pack 1 beta!

Download from this site: http://technet.microsoft.com/en-gb/evalcenter/ff183870.aspx (click the second green Get Started Now button…)

After a reboot I had an upgraded Windows 2008 R1 SP1 beta server!  I’m really not going to put this into live service without a rebuild…

image

You are now ready to install the IE9 pre-req update.  Go to this site: http://support.microsoft.com/kb/2399238

and click the link “download the x64 SP1 beta package now”

image

Install and reboot.

image

Installing IE9 Beta

You should then be able to download the IE9 beta – get the x64 version from here:

http://windows.microsoft.com/en-GB/internet-explorer/download/ie-9/worldwide

Scroll to the bottom of the screen to the server section and download the version for Windows Server 2008 R2 64-bit

image

And run the executable!  Follow the installation through, with the above updates it should succeed.  Reboot at the end of the install.

image

image 

image

Publishing IE9 Beta to the farm

After a reboot I did indeed have IE9 installed locally…

image

Finally, I published an IE9 as a Hosted Application on my XenApp 6 farm (launching from "C:\Program Files (x86)\Internet Explorer\iexplore.exe").  I put a start page on the end of the address as well to give the users something nice to look at.

image

Fixing the server!

Sadly, when I came to test the application as a Citrix app I found it would not work.  I tried publishing both IE9 x86 and x64 and even tried Notepad with the same impact – when it connected my server would drop all its external connections and become unmanageable until rebooted.  Also, Windows was worryingly claiming that Remote Desktop Services was unlicensed.  I assume this is all because SP1 is not ready for launch yet. I went into Control Panel and into Programs and Features and Installed Updates then removed the beta Service Pack then rebooted again!

image 

I then removed the update KB2259539 that I installed earlier and installed the one for 2008 R2 without the beta service pack and rebooted.  Again.

And it works!  I have IE9 published on the Citrix farm, from a server which I still wouldn’t trust with anything else but that is more stable than when it had SP1 beta (which is NOT ready for a XenApp Server trial!). 

A quick test revealed that HDX MediaStream for Flash still works in the IE9 beta, which is a bonus.  Seems very fast and stable.  And a bit like Chrome…

Tuesday, 27 July 2010

Disabling IE ESC – Internet Explorer Enhanced Security Configuration on Windows Server 2008 R2 for XenApp 6

IEESC (IE Enhanced Security Mode) is a very good feature on most servers – you shouldn’t be doing much web surfing from your server’s desktop anyway and this helps protect you from malware, which is the last thing you want on a Windows Server system.

Of course if Microsoft had any guts IE would be disabled by default, but I digress.

On a Citrix server of course IEESC is a pain in the neck since general web surfing is exactly what you want to do.  There are manual ways (below), but you don’t want to do this on every server, so Microsoft provided a way on Windows 2003 Server to set it via group policy.  There does not appear to be an equivalent on Server 2008 and R2 but oddly the 2003 way still works! 

Turning off IE ESC via Group Policy for Windows Server 2008 R2 (and R1 and 2003)

  • First, download the Windows Server 2003 Resource Kit Tools (yes, I know you are not using Server 2003 anymore…) from here:
    http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en
  • Install them somewhere temporary, go to that folder and find the file “inetesc.adm”.
  • Load the GPMC (Group Policy Management Console) on a Windows Server 2008 R2 server.
  • Expand your Forest, your domain and find the OU your XenApp servers are within.
  • Edit or create a group policy that will apply Computer settings to that OU and its contents.
  • Expand Computer Configuration and Policies and right click on Administrative Templates

image

  • Click Add/Remove Templates
  • Click Add and find your inetesc.adm template.  Import it.
  • Expand Computer Configuration, Policies, Administrative Templates, Classic Administrative Templates, Windows Components, Internet Explorer, Enhanced Security Configuration.

image 

  • Set the two policies to be disabled.  When you reboot your servers in that OU (any servers of course, not just XenApp ones…) will have Internet Explorer fully enabled.

Just in case you just want to do this once, here’s how to do it on each individual server…

 

Turning off IE ESC Manually

On Windows 2003 Server it was easy – just open up Add/Remove Programs and remove the component from the server – IE becomes fully opened up.

image 

 

Windows Server 2008 and 2008 R2 had a nice easy way to do this as well.  Just load up Server Manager (you know, that annoying screen that pops up every time you log in… okay, its in Administrative Tools if you have never used a computer before).  About a third down, see the Configure IE ESC link. 

image

Click it and you should see this box – by default a XenApp 6 server will have IE ESC turned off the users (cleverly) but on for administrators (annoyingly, especially if you are an administrator and you actually use Citrix).  Configure as you see fit – personally its Off for both for me on all Citrix servers.

image

Monday, 25 January 2010

XenServer \ Windows Server 2008 R2 installation hangs on “Starting Windows”

image

I have noticed some issues with installing 2008 R2 Server on a virtual (which for our XenApp for R2 tech preview farm is a common task!) – it seems to sometimes hang on “Starting Windows”, with the CPUs running at a steady 50%, even if I have already build R2 VMs on the same server that day.

After a quick trawl through the forums this seems to happen in VirtualBox and XenServer and some people fixed it by changing the memory settings.  I did give it 2000mb, which is a bit weird, so I adjusted the other VMs on the server to free up some RAM and upped it to a more normal 2048mb.  Booted again and bam, works first time.  You know its good because the very un-server animation of the Windows logo appears above Starting Windows and then its all go.

image

I tried some different configurations – 2000, 2001 and 1024mb do not work, 1536, 2047 and 2048 DO work.  Every time.  I give up trying to find a pattern at this point. 

Basically if you get this issue with 2008 R2 on a Virtual, pick a number (any number) and change the RAM to it.  It might work.