Provisioning Services 6 Black Screen Issue

Citrix Provisioning Services 6 has an issue with target devices getting a black screen or the target devices stop responding on reboot.  This issue is caused by a DHCP lease issue with Provisioning Services 6.  See Citrix Knowledge Center article CTX132133 – PVS 6.0 Targets Might Boot to a Black Screen and Stop Responding for more info.  So what happens if your Target Devices are having the issue and you are not able to use them anymore?  In this article I am going to go over how to fix your Provisioning Services image.

With some help of the Citrix Support Forums post – Streamed Desktops Black Screen after Booting, I was able to fix the issue in the lab and in a customers environment.  So far I have tested and confirmed three fixes for the black screen issue.  The fourth fix I have not fully tested yet but should work.  Before doing black screen fix #1 or #2, make sure to change your DHCP scope for your target devices to unlimited as stated in the Citrix Knowledge Center article above or the issue will happen again.

Black Screen Fix #1 – Mount the vDisk on a Provisioning Server in your environment and clear the DHCP info from the registry.  Before doing the following procedure make sure to make a backup copy of you vDisk(s).  Follow the instructions with screenshots below for this.

1.  Right click on your vDisk and select Mount vDisk.  The icon next to the vDisk should change to show that it is now mounted to the Provisioning Server.  In Windows Explorer the vDisk will mount using the next available drive letter.

PVS 6 Black Screen - 01PVS 6 Black Screen - 02

2.  Open the Registry Editor and load the system registry hive from E:\Windows\System32\Config\System.  In this example the vDisk mounted with E as the drive letter.

PVS 6 Black Screen - 04PVS 6 Black Screen - 05

3.  Clear the data for DhcpDomain and DchpNameServer in CurrentControlSet001\services\Tcpip\parameters in loaded registry hive.

PVS 6 Black Screen - 06

4.  Check each registry key and clear the data for DhcpDefaultGateway, DhcpDomain, DhcpIPAddress, DhcpNameServer, DhcpServer, DhcpSubnetMask, and DhcpSubnetMaskOpt under CurrentControlSet001\services\Tcpip\Interfaces.  Repeat for each key under the Interfaces key.

PVS 6 Black Screen - 07

5.  Repeat steps 3 and 4 for the CurrentControlSet002\services\Tcpip\parameters registry hive.

6.  Unload the registry hive loaded in step 2 and close the Registry Editor.

PVS 6 Black Screen - 08

7.  Right click on your vDisk and select Unmount vDisk.  The icon next to the vDisk should disappear to show that it is now unmounted from the Provisioning Server.  In Windows Explorer the vDisk should no longer appear.  In this example drive letter E should no longer appear.

PVS 6 Black Screen - 09PVS 6 Black Screen - 10

8.  Boot the image to make sure it boots without the issue.  Repeat the process for each vDisk image having the issue.  Remember to make a backup copy of your vDisk images beforehand.

Black Screen Fix #2 – Change the Provisioning Services Target Devices to another vlan in your environment.  Using this fix may require some network changes along with changes to your firewall and Access Gateway configuration for remote users.

Black Screen Fix #3 – Leave the Provisioning Services Target Device software at the 5.6.x version.  While upgrading Provisioning Services from 5.6.1 to 6 in a customers environment, I did not see this issue when the Provisioning Servers were upgraded to 6 and the target devices were left on 5.6.1 for several weeks.  In this environment the DHCP lease was set to 1 day.  The issue did not start appearing until the images Target Device software were upgraded to 6.0.

Black Screen Fix #4 – Use direct VHD boot to boot the vDisk image and revert the Provisioning Services Target Device software to a 5.6.x version using Hyper-V or XenServer direct VHD boot.  This fix is still being tested but should fix the issue.  You could also stay with the 6.0 target device software and combine fix #1 (without mounting the vDisk image on a Provisioning Server) and #4 to fix your vDisk images.

After performing any of the fixes above, your Provisioning Services Target Devices should now boot without having the black screen issue.  Hopefully Citrix has a Provisioning Services 6 Target Device fix soon so target devices no longer require an unlimited DHCP lease.  I also hope this issue is only affecting your XenDesktop vDisk images and not your XenApp vDisk images since your XenApp target devices should have a DHCP reservation. Nyah-Nyah

If you have found this article interesting or if you have any other insights, please feel free to leave comments on this article.

About these ads

Jarian Gibson is a consultant that specializes in Citrix and Microsoft technologies. Credentials include being certified as a Citrix Certified Administrator, Citrix Certified Advanced Administrator, Citrix Certified Enterprise Engineer, Citrix Certified Integration Architect, Citrix Certified Instructor, Citrix Certified Sales Professional, Microsoft Certified Technical Specialist, Microsoft Certified IT Professional (Server Administrator, Enterprise Administrator, and Virtualization Administrator) and VMware Certified Professional. Memberships include being a nominated and selected member of the Citrix Partner Technical Expert Council. With over 10 years of experience in the IT field, Jarian has worked for companies such as Securities America Financial Corporation and MTM Technologies. He is currently based in the Kansas City area working for Choice Solutions as a Citrix Practice Manager/Principal Consultant.

Tagged with: , , ,
Posted in Provisioning Services
13 comments on “Provisioning Services 6 Black Screen Issue
  1. Christian Walthall says:

    Hello,

    I tried Fix#1 and it seemed to work. Do you know if this is permanent fix? I originally followed the CTX article and gave teh masterimage a DHCP reservation before locking the image in to standard mode and whiel it worked for a little while it had the problem again. Probably due to the lease time of our DHCP scope. I jsut wanted to see if by clearing out those registry keys if that should fix it permanently.

  2. King says:

    Hello,

    Fix #1 worked just for my vms, am still having the black screen for physical machines. Can you say why and what to do?

  3. Uday Raval says:

    Fix #1 seems to work like a charm, except that I have to apply these changes again to the vDisk if I’ve brought up the master using the vdisk in private mode and then change again to standard mode.

  4. King says:

    Name: Michael
    Email: m.dawkins@cimoney.com.ky
    Website:
    Message: Hi Jarian, Desperately in need of your help. Am using provisioning server 6.0. My golden image is on vcenter 5.0. I coppied my golden image to my provisioning server and am able to boot from the vdisk fine. Here is my problem. I have 10 physical machine, diffrent model. They all boot from the vdisk showing windows 7 logo but will not boot to the desktop. Kindly help Michael
    Subject: VDisk

  5. Kevin Stanfield says:

    Needed a new boot disk…..http://support.citrix.com/article/CTX131993

  6. Tom says:

    Nice article! Worked for me a lot of times, specially Fix1! Well done!

  7. SLAM says:

    Despite the above fixes, I still have the issue with the black screen. I’m using PVS 6.1 (patch 16) under VMware vSphere 5.1 (vmxnet3). Any ideas?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Tech Bake-Off - Cooking Through the Vendor FUD

Community Driven Citrix Support

Follow

Get every new post delivered to your Inbox.

Join 1,134 other followers

%d bloggers like this: