{"id":55,"date":"2015-12-30T17:29:07","date_gmt":"2015-12-30T16:29:07","guid":{"rendered":"https:\/\/wp.tntnet.eu\/?p=55"},"modified":"2016-09-14T10:53:29","modified_gmt":"2016-09-14T08:53:29","slug":"cannot-contact-any-kdc-for-requested","status":"publish","type":"post","link":"https:\/\/wp.tntnet.eu\/?p=55","title":{"rendered":"Cannot contact any KDC for requested&#8230;"},"content":{"rendered":"<pre class=\"font-size-enable:false font-size:11 inline-margin:0 toolbar:2 striped:false marking:false ranges:false nums:false nums-toggle:false wrap-toggle:false lang:sh decode:true  \">kinit: Cannot contact any KDC for requested realm while getting initial credentials<\/pre>\n<p>If you get this error message while you try to change your Kerberos password and your running server system is virtualized, you may have an entropy shortage issue which will lead to a timeout.<br \/>\nLinux operating systems serve random numbers using special files, <a href=\"https:\/\/git.kernel.org\/cgit\/linux\/kernel\/git\/stable\/linux-stable.git\/tree\/drivers\/char\/random.c\" target=\"_blank\">\/dev\/random<\/a> and <a href=\"https:\/\/git.kernel.org\/cgit\/linux\/kernel\/git\/stable\/linux-stable.git\/tree\/drivers\/char\/random.c\" target=\"_blank\">\/dev\/urandom<\/a>. The pool of random bits of these files will exhaust very fast in virtualized systems without hardware entropy from keyboard, mouse or actuality hardware entropy generators.<br \/>\nOne possible solution is to install the <a href=\"http:\/\/www.issihosts.com\/haveged\/\" target=\"_blank\">haveged<\/a> entropy deamon. This daemon will provide you with unpredictable random numbers.<\/p>\n<p>For ubuntu or debian: use the following command to install the daemon.<\/p>\n<p><span class=\"lang:sh decode:true crayon-inline\">apt-get install haveged<\/span><\/p>\n<p>After the daemon is running you can issue the <em>kinit<\/em> command again. To get some more debug information write it to <em>stdout<\/em> with <em>KRB5_TRACE=\/dev\/stdout<\/em> in front of <em>kinit<\/em>.<\/p>\n<p><span class=\"lang:sh decode:true crayon-inline\">KRB5_TRACE=\/dev\/stdout kinit username <\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>kinit: Cannot contact any KDC for requested realm while getting initial credentials If you get this error message while you try to change your Kerberos password and your running server system is virtualized, you may have an entropy shortage issue which will lead to a timeout. Linux operating systems serve random numbers using special files, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,15,14],"tags":[26,6,18,17,25],"class_list":["post-55","post","type-post","status-publish","format-standard","hentry","category-kerberos","category-kvm","category-virtualization","tag-entropy","tag-kerberos","tag-kinit","tag-kvm","tag-virtualization"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/wp.tntnet.eu\/index.php?rest_route=\/wp\/v2\/posts\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.tntnet.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.tntnet.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.tntnet.eu\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.tntnet.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=55"}],"version-history":[{"count":29,"href":"https:\/\/wp.tntnet.eu\/index.php?rest_route=\/wp\/v2\/posts\/55\/revisions"}],"predecessor-version":[{"id":198,"href":"https:\/\/wp.tntnet.eu\/index.php?rest_route=\/wp\/v2\/posts\/55\/revisions\/198"}],"wp:attachment":[{"href":"https:\/\/wp.tntnet.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.tntnet.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.tntnet.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}