{"id":3150,"date":"2011-10-20T17:27:25","date_gmt":"2011-10-20T15:27:25","guid":{"rendered":"https:\/\/ingmarverheij.com\/2011\/10\/please-wait-for-the-local-session-manager\/"},"modified":"2011-10-21T08:30:46","modified_gmt":"2011-10-21T06:30:46","slug":"please-wait-for-the-local-session-manager","status":"publish","type":"post","link":"https:\/\/ingmarverheij.com\/en\/please-wait-for-the-local-session-manager\/","title":{"rendered":"Please wait for the Local Session Manager"},"content":{"rendered":"<p>Author : <a href=\"https:\/\/ingmarverheij.com\/en\/\">Ingmar Verheij<\/a><\/p>\n<p>I\u2019ve built a lab to run some tests on Citrix XenApp. Since this is a lab environment I do not have enough resources to create dedicated machines for each role. Therefore I found it justified to create a virtualized domain controller (dc001.domain.local) with multiple roles and multi-homed (Boooohhh, I know). The machine is not only a domain controller but also has the DNS and DHCP role. <\/p>\n<p>The following network interfaces are present on dc001.domain.local:<\/p>\n<ul>\n<li>Local Area Connection 1 : 192.168.1.1\/24 <\/li>\n<li>Local Area Connection 2:&#160; 192.168.2.1\/24 <\/li>\n<\/ul>\n<p>The Citrix XenApp server is a dedicated physical machine with a single network interface:<\/p>\n<ul>\n<li>Local Area Connection 1 : 192.168.1.2\/24 <\/li>\n<\/ul>\n<p>After creating a published desktop I\u2019ve tried to connect from a machine in the 192.168.1.0\/24 subnet. The session keeps waiting with the message \u2018Please wait for the Local Session Manager\u2019.<\/p>\n<p><!--more--><\/p>\n<p align=\"center\"><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/10\/Please-wait-for-the-local-Session-Manager.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Please wait for the local Session Manager\" border=\"0\" alt=\"Please wait for the local Session Manager\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/10\/Please-wait-for-the-local-Session-Manager_thumb.png\" width=\"254\" height=\"184\" \/><\/a><em>Since I am the local session manager around here, this annoyed me.<\/em><\/p>\n<p>I took me a while to find the problem. I\u2019ve installed all <a href=\"https:\/\/support.citrix.com\/article\/CTX129229\">recommended Citrix and Microsoft hotfixes<\/a> but that did not solve the problem. Eventually <a href=\"https:\/\/technet.microsoft.com\/nl-nl\/sysinternals\/bb896645\">Process Monitor<\/a> (SysInternals) send me in the right direction.<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/10\/Process-Monitor.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Process Monitor\" border=\"0\" alt=\"Process Monitor\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/10\/Process-Monitor_thumb.png\" width=\"254\" height=\"156\" \/><\/a><\/p>\n<p>The LogonUI kept on (re)connecting to the domain controller while the status message remain the same.<\/p>\n<p>A quick peek with ping (did I mention <a href=\"https:\/\/ingmarverheij.com\/en\/2011\/10\/determine-wan-latency-for-remoting-protocol\/\">I Love Ping<\/a>?) showed the problem. The domain controller resolved to the wrong IP address and could therefore not be reached (the XenApp server is in the 192.168.1.0\/24 subnet) <\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/10\/image.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Ping\" border=\"0\" alt=\"Ping\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/10\/image_thumb.png\" width=\"254\" height=\"130\" \/><\/a><\/p>\n<p>The problem is caused by the multi-homed domain controller (which is a bad-practice btw). Since all network interfaces by default gets registered on the DNS server, there is a chance the IP address resolved is on a different subnet.<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/10\/Register-this-connections-addresses-in-DNS.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: right; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Register this connections addresses in DNS\" border=\"0\" alt=\"Register this connections addresses in DNS\" align=\"right\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/10\/Register-this-connections-addresses-in-DNS_thumb.png\" width=\"154\" height=\"182\" \/><\/a>The solution to the problem is (as always) fairly easy. Either don\u2019t use a multi-homed domain controller, since this is a bad practice, or prevent the network interface to register on the DNS server. <\/p>\n<p>This can be achieved by disabling the checkbox \u2018Register this connection\u2019s addresses in DNS\u2019 on the Advanced TCP\/IP Settings of the network interface.<\/p>\n<p>If the checkbox is enabled after you disable it, hotfix <a href=\"https:\/\/support.microsoft.com\/kb\/2554859\">KB2554859<\/a> is required.<\/p>\n<p>OR, you can issue the netsh command with the parameter <a href=\"https:\/\/support.microsoft.com\/kb\/975808\">skipassource=true<\/a> as <a href=\"https:\/\/www.remkoweijnen.nl\/blog\/2011\/10\/18\/prevent-additional-ip-addresses-from-being-registered-in-dns\/\">Remko Weijnen<\/a> recently blogged.<\/p>\n<p>If you do not have access to the domain controller, or unable to appy hotfixes, or you want to do it in a completely different way\u2026 You can also add the domain controller to the hosts file which can be found in the location %windir%\\system32\\drivers\\etc\\hosts<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/10\/hosts-file.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"hosts file\" border=\"0\" alt=\"hosts file\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/10\/hosts-file_thumb.png\" width=\"254\" height=\"140\" \/><\/a><\/p>\n<p>To check if the changes have worked you can issue the ping command again to verify if the name resolution of the domain controller works.<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/10\/Ping-dc001.domain.local-after.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"Ping dc001.domain.local - after\" border=\"0\" alt=\"Ping dc001.domain.local - after\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/10\/Ping-dc001.domain.local-after_thumb.png\" width=\"254\" height=\"130\" \/><\/a><\/p>\n<p>If you now make a connection to the Citrix XenApp server, the connection will successfully be made (or at least it did on my lab).<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/10\/Logon-screen.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px auto; padding-left: 0px; padding-right: 0px; display: block; float: none; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"Logon screen\" border=\"0\" alt=\"Logon screen\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2011\/10\/Logon-screen_thumb.png\" width=\"500\" height=\"464\" \/><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Author : Ingmar Verheij I\u2019ve built a lab to run some tests on Citrix XenApp. Since this is a lab environment I do not have enough resources to create dedicated machines for each role. Therefore I found it justified to create a virtualized domain controller (dc001.domain.local) with multiple roles and multi-homed (Boooohhh, I know). The [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[305],"tags":[667,387,41],"class_list":["post-3150","post","type-post","status-publish","format-standard","hentry","category-xenapp-presentation-server","tag-citrix","tag-dns","tag-xenapp"],"_links":{"self":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/3150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/comments?post=3150"}],"version-history":[{"count":1,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/3150\/revisions"}],"predecessor-version":[{"id":3151,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/3150\/revisions\/3151"}],"wp:attachment":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/media?parent=3150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/categories?post=3150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/tags?post=3150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}