<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ThepHuck</title>
	<atom:link href="http://thephuck.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://thephuck.com</link>
	<description>What ThepHuck is going on!</description>
	<lastBuildDate>Fri, 11 May 2012 20:52:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Cisco UCS Blade System &#8211; Part 4 &#8211; A much needed update</title>
		<link>http://thephuck.com/server-hardware/cisco-ucs-blade-system-part-4-a-much-needed-update/</link>
		<comments>http://thephuck.com/server-hardware/cisco-ucs-blade-system-part-4-a-much-needed-update/#comments</comments>
		<pubDate>Fri, 11 May 2012 20:52:07 +0000</pubDate>
		<dc:creator>Luke</dc:creator>
				<category><![CDATA[Server Hardware]]></category>
		<category><![CDATA[Server Management]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[ucs]]></category>

		<guid isPermaLink="false">http://thephuck.com/?p=602</guid>
		<description><![CDATA[A few years ago, we were one of the first/early adopters of UCS. At that time, it was clearly in it&#8217;s infancy and not ready for prime time, our local Cisco guys didn&#8217;t even know anything about it. If you care to read those previous posts, they can be found here: Part 1, Part 2,...]]></description>
			<content:encoded><![CDATA[<p>A few years ago, we were one of the first/early adopters of UCS.  At that time, it was clearly in it&#8217;s infancy and not ready for prime time, our local Cisco guys didn&#8217;t even know anything about it.  If you care to read those previous posts, they can be found here: <a href="http://thephuck.com/server-hardware/cisco-ucs-blade-system-part-1-drawing-back-the-veil/" title="Cisco UCS Blade System – Part 1 – drawing back the veil" target="_blank">Part 1</a>, <a href="http://thephuck.com/server-hardware/cisco-ucs-blade-system-part-2-my-vsphere-esxi-ucs-woes/" title="Cisco UCS Blade System – Part 2 – my vSphere ESXi &#038; UCS woes" target="_blank">Part 2</a>, and <a href="http://thephuck.com/server-hardware/cisco-ucs-blade-system-part-3-moar-vsphere-esxi-ucs-woes/" title="Cisco UCS Blade System – Part 3 – moar vSphere ESXi &#038; UCS woes" target="_blank">Part 3</a>.  I was fairly bitter when I wrote those, but with good reason.  I &#8216;wasted&#8217; a lot of time (read weeks or months) jacking with it and had nothing but problems.<span id="more-602"></span></p>
<p>I forget the firmware of the original chassis, something like 1.0-something.  It should have been 0.-something.  That original chassis is still around, but being physically moved to a different datacenter, so I can&#8217;t check the actual version.  It really seemed like a beta product and shouldn&#8217;t have been released yet.</p>
<p>So, why am I writing this?  We got a new chassis running on version 1.4(3q) and none of the issues I had previously are there, in regards to the hosts dropping offline.</p>
<p>I hammered it as hard as I could and the blades are 100%.  I felt it was only right to provide an update and give my &#8216;stamp of approval&#8217;.  When I get the original chassis back online, I&#8217;ll update the firmware and see how it goes&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://thephuck.com/server-hardware/cisco-ucs-blade-system-part-4-a-much-needed-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updated: Finding WWNs for HBAs in ESXi hosts, now with get-vmhosthba</title>
		<link>http://thephuck.com/server-hardware/updated-finding-wwns-for-hbas-in-esxi-hosts-now-with-get-vmhosthba/</link>
		<comments>http://thephuck.com/server-hardware/updated-finding-wwns-for-hbas-in-esxi-hosts-now-with-get-vmhosthba/#comments</comments>
		<pubDate>Mon, 07 May 2012 15:19:52 +0000</pubDate>
		<dc:creator>Luke</dc:creator>
				<category><![CDATA[Server Hardware]]></category>
		<category><![CDATA[Server Management]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[get-vmhosthba]]></category>
		<category><![CDATA[powercli]]></category>
		<category><![CDATA[WWN]]></category>

		<guid isPermaLink="false">http://thephuck.com/?p=589</guid>
		<description><![CDATA[This is an update to my original get-WWN script using Get-View. Get-VMHostHba was pointed out to me by Robert van den Nieuwendijk, vExpert 2012, so I wanted to provide an update to my original post HERE. I attached the ps1 file at the end. With the addition of get-vmhosthba in PowerCLI, you can get this...]]></description>
			<content:encoded><![CDATA[<p>This is an update to my original get-WWN script using Get-View. Get-VMHostHba was pointed out to me by <a title="Robert van den Nieuwendijk" href="http://rvdnieuwendijk.com/" target="_blank">Robert van den Nieuwendijk</a>, vExpert 2012, so I wanted to provide an update to my original post <a title="Finding WWNs for HBAs in multiple ESX or ESXi hosts, standalone or clustered" href="http://thephuck.com/server-hardware/finding-wwns-for-hbas-in-multiple-esx-or-esxi-hosts-standalone-or-clustered/" target="_blank">HERE</a>.  I attached the ps1 file at the end.</p>
<p>With the addition of get-vmhosthba in PowerCLI, you can get this information somewhat easier.  At line 46</p>
<div class="wp_syntax">
<div class="code">
<pre class="powershell" style="font-family:monospace;"><span style="color: #800080;">$hbas</span> = <span style="color: #008080; font-weight: bold;">Get-View</span> <span style="color: #000000;">&#40;</span><span style="color: #008080; font-weight: bold;">Get-View</span> <span style="color: #000000;">&#40;</span><span style="color: #008080; font-weight: bold;">Get-VMHost</span> <span style="color: #008080; font-style: italic;">-Name</span> <span style="color: #800080;">$vmhost</span><span style="color: #000000;">&#41;</span>.ID<span style="color: #000000;">&#41;</span>.ConfigManager.StorageSystem</pre>
</div>
</div>
<p>becomes</p>
<div class="wp_syntax">
<div class="code">
<pre class="powershell" style="font-family:monospace;"><span style="color: #800080;">$hbas</span> = <span style="color: #008080; font-weight: bold;">Get-VMHostHba</span> -vmhost <span style="color: #800080;">$vmhost</span> -<span style="color: #008080; font-weight: bold;">Type</span> FibreChannel</pre>
</div>
</div>
<p>Since that pulls only fibre channel HBAs, the foreach changes to simply $hba in $hbas, and the if statement is no longer needed (line 47-50):</p>
<div class="wp_syntax">
<div class="code">
<pre class="powershell" style="font-family:monospace;"><span style="color: #0000FF;">foreach</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$hba</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$hbas</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
<span style="color: #800080;">$wwpn</span> = <span style="color: #800000;">&quot;{0:x}&quot;</span> <span style="color: #FF0000;">-f</span> <span style="color: #800080;">$hba</span>.PortWorldWideName
<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #008080; font-style: italic;">-foregroundcolor</span> green `t <span style="color: #800000;">&quot;World Wide Port Name:&quot;</span> <span style="color: #800080;">$wwpn</span>
<span style="color: #000000;">&#125;</span></pre>
</div>
</div>
<p>Here&#8217;s the new version &#8211;> <a href='http://thephuck.com/wp-content/uploads/2012/05/Get-WWN.ps1'>Get-WWN.ps1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://thephuck.com/server-hardware/updated-finding-wwns-for-hbas-in-esxi-hosts-now-with-get-vmhosthba/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Windows Server 8 Hyper-V 3 in ESXi 5</title>
		<link>http://thephuck.com/virtualization/installing-windows-server-8-hyper-v-3-in-esxi-5/</link>
		<comments>http://thephuck.com/virtualization/installing-windows-server-8-hyper-v-3-in-esxi-5/#comments</comments>
		<pubDate>Thu, 03 May 2012 20:16:41 +0000</pubDate>
		<dc:creator>Luke</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[ESXi 5]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Windows 8 server]]></category>

		<guid isPermaLink="false">http://thephuck.com/?p=557</guid>
		<description><![CDATA[I found several posts regarding &#8216;nesting&#8217; hypervisors (installing a hypervisor within a hypervisor), since I wanted to test out Hyper-V in a VM, and followed this one from William Lam.  It worked to allow Hyper-V to pass validation, but after a few reboots, I&#8217;d get the dreaded &#8220;Windows can&#8217;t boot&#8221; screen. You have the option...]]></description>
			<content:encoded><![CDATA[<p>I found several posts regarding &#8216;nesting&#8217; hypervisors (installing a hypervisor within a hypervisor), since I wanted to test out Hyper-V in a VM, and followed <a title="virtually Ghetto" href="http://www.virtuallyghetto.com/2011/07/how-to-enable-support-for-nested-64bit.html" target="_blank">this one</a> from William Lam.  It worked to allow Hyper-V to pass validation, but after a few reboots, I&#8217;d get the dreaded &#8220;Windows can&#8217;t boot&#8221; screen. You have the option to continue, which only reboots to this screen; repair, which gives a command prompt and a few other options; or power off.</p>
<p><a href="http://thephuck.com/wp-content/uploads/2012/05/win8config.jpg" rel="prettyPhoto[557]" target="_blank"><img class="alignnone size-thumbnail wp-image-564" title="win8 configuring feature" src="http://thephuck.com/wp-content/uploads/2012/05/win8config-150x150.jpg" alt="" width="150" height="150" /></a> &lt;&#8211; I would get this far, reboot 3 times, then Windows Server 8 would die, as follows.</p>
<p><a href="http://thephuck.com/wp-content/uploads/2012/05/win8dead.jpg" rel="prettyPhoto[557]" target="_blank"><img class="alignnone size-thumbnail wp-image-565" title="win8 dead" src="http://thephuck.com/wp-content/uploads/2012/05/win8dead-150x150.jpg" alt="" width="150" height="150" /></a> &lt;&#8211; First option would end up back here</p>
<p><a href="http://thephuck.com/wp-content/uploads/2012/05/win8dead-adv.png" rel="prettyPhoto[557]" target="_blank"><img class="size-thumbnail wp-image-566 alignnone" title="win8 dead advanced options" src="http://thephuck.com/wp-content/uploads/2012/05/win8dead-adv-150x150.png" alt="" width="150" height="150" /></a> &lt;&#8211; Second option above ends up here</p>
<p>I tried the typical bootcfg commands, but it couldn&#8217;t read the boot.ini. Some other tests were showing the disk was read-only, which was strange. William&#8217;s post was for 2008 R2 and not Windows Server 8, but it worked for the most part. I did have a few other issues I worked through, continue reading for those and how I fixed them.<span id="more-557"></span></p>
<p><a href="http://thephuck.com/wp-content/uploads/2012/05/E1000.jpg" rel="prettyPhoto[557]" target="_blank"><img class="alignnone size-thumbnail wp-image-560" title="E1000" src="http://thephuck.com/wp-content/uploads/2012/05/E1000-150x150.jpg" alt="" width="150" height="150" /></a>  <a href="http://thephuck.com/wp-content/uploads/2012/05/vNic-None.jpg" rel="prettyPhoto[557]" target="_blank"><img class="alignnone size-thumbnail wp-image-563" title="vNic None" src="http://thephuck.com/wp-content/uploads/2012/05/vNic-None-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>Do as instructed in the post I referenced (create an empty Windows 2008 R2 VM), accept most defaults, except set the NICs to None. I tried the E1000, but it would blue screen with &#8216;dpc_watchdog_violation&#8217; every time. I used VMXNET3, but VMware Tools installation would hang at the VMXNET3 drivers. I did find that the E1000E worked 100% without the tools needing to be installed.  You have to add the NIC AFTER VM creation.  Once the VM is created, change the guest OS to ESXi 5.x, save it, now go back and add two (2) E1000E adapters (you could probably only add 1), save it again. Setting OS to ESXi 5 will also add some cpu masking, which we&#8217;ll address later. You need to make sure you add <strong>hypervisor.cpuid.v0 = &#8220;FALSE&#8221;</strong> in the vmx file, you can do this however you like, I used vi.</p>
<p><a href="http://thephuck.com/wp-content/uploads/2012/05/vmx.jpg" rel="prettyPhoto[557]" target="_blank"><img class="alignnone size-thumbnail wp-image-562" title="vmx" src="http://thephuck.com/wp-content/uploads/2012/05/vmx-150x150.jpg" alt="" width="150" height="150" /></a>&lt;&#8211; The stuff in Blue was from setting guest OS to ESXi 5. Yellow depicts my E1000E, and Red is what I added.</p>
<p>Also make sure you set CPU/MMU Virtualization to Intel VT-x/AMD/V and Intel EPT/AMD RVI:<a href="http://thephuck.com/wp-content/uploads/2012/05/CPU-MMU-Virt.jpg" rel="prettyPhoto[557]" target="_blank"><img class="size-thumbnail wp-image-559 alignnone" title="CPU-MMU-Virt" src="http://thephuck.com/wp-content/uploads/2012/05/CPU-MMU-Virt-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>Make sure it saved, now go back into the VM settings in the GUI, Options Tab, and CPUID mask. I clicked Reset All to Default, then set Level 1 ecx to &#8220;&#8212;- &#8212;- &#8212;- &#8212;- &#8212;- &#8212;- &#8211;H- &#8212;-&#8221; as pointed out in Williams post, save everything and check the vmx file, it will look a little different. Now you&#8217;ll need to also add <strong>mce.enable = &#8220;TRUE&#8221;</strong> (in red).</p>
<p><a href="http://thephuck.com/wp-content/uploads/2012/05/mce.enable.jpg" rel="prettyPhoto[557]" target="_blank"><img class="alignnone size-thumbnail wp-image-561" title="mce.enable" src="http://thephuck.com/wp-content/uploads/2012/05/mce.enable-150x150.jpg" alt="" width="150" height="150" /></a> &lt;&#8211; The stuff in Blue here is after resetting the CPUID Mask, then Red is what I added.</p>
<p>After I did all this, the server booted up fine after installing Hyper-V version 3.  I discovered the mce.enabled thing <a title="mce.enabled" href="http://communities.vmware.com/docs/DOC-8970">HERE</a> after some googling.</p>
<p>Not sure if this matters, but I did NOT install VMware Tools prior to enabling the Hyper-V role. When I talked about it previously, I never got it to work right, so left that step out until the role worked.  After Hyper-V is installed, I installed &#8216;Typical&#8217; VMware tools and all is well.</p>
<p>Good luck!!</p>
]]></content:encoded>
			<wfw:commentRss>http://thephuck.com/virtualization/installing-windows-server-8-hyper-v-3-in-esxi-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script to join ESXi 5 hosts to Active Directory for Directory Services Authentication</title>
		<link>http://thephuck.com/server-management/script-to-join-esxi-5-hosts-to-active-directory-for-directory-services-authentication/</link>
		<comments>http://thephuck.com/server-management/script-to-join-esxi-5-hosts-to-active-directory-for-directory-services-authentication/#comments</comments>
		<pubDate>Fri, 20 Apr 2012 21:19:38 +0000</pubDate>
		<dc:creator>Luke</dc:creator>
				<category><![CDATA[Scripts]]></category>
		<category><![CDATA[Server Management]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[$host.ui.PromptForCredential]]></category>
		<category><![CDATA[Active Directory Authentication]]></category>
		<category><![CDATA[ESXi 5]]></category>
		<category><![CDATA[powercli]]></category>

		<guid isPermaLink="false">http://thephuck.com/?p=539</guid>
		<description><![CDATA[I&#8217;m getting ready to upgrade a ton of our ESXi hosts to 5 and wanted a quick way to join all of them to AD after. I could probably do a fresh install and incorporate this into my ESXi Config Script, that&#8217;s a consideration, but for the time being, a script that targets clusters, folders,...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m getting ready to upgrade a ton of our ESXi hosts to 5 and wanted a quick way to join all of them to AD after. I could probably do a fresh install and incorporate this into my <a title="ESXi Auto configuration script" href="http://thephuck.com/virtualization/esxi-auto-config-script/" target="_blank">ESXi Config Script</a>, that&#8217;s a consideration, but for the time being, a script that targets clusters, folders, vDCs, etc, will work. The script can also target individual ESXi hosts, they do not have to be joined to vCenter.<br />
<span id="more-539"></span><br />
<a href="http://thephuck.com/wp-content/uploads/2012/04/AD-Timeout.jpg" rel="prettyPhoto[539]" target="_blank"><img class="alignleft size-medium wp-image-549" title="AD-Timeout" src="http://thephuck.com/wp-content/uploads/2012/04/AD-Timeout-300x118.jpg" alt="" width="300" height="118" /></a>There&#8217;s a bug in ESXi 5 that blocks DNS (fixed in Update 1), so you&#8217;ll get an error if you try to connect manually and see something like this in /var/log/syslog.log<code>2012-04-20T15:56:25Z netlogond[3236247]: [LWNetDnsQueryWithBuffer() /build/mts/release/bora-396388/likewise/esxi-esxi/src/linux/netlogon/utils/lwnet-dns.c:1185] DNS lookup for '_ldap._tcp.dc._msdcs.ad.fqdn.com' failed with errno 110, h_errno = 2</code></p>
<p>The main guts of the script use Set-VMHostAuthentication, and that&#8217;s really it. To address the bug we have to use Set-VMHostFirewallDefaultPolicy to turn of the fw (or allow all incoming/outgoing), join the domain, then turn it back on. The rest of the script is logic, checking for needed stuff.</p>
<p>Take note I used $host.ui.PromptForCredential again, since I could let the user know which creds I need, AD versus ESXi login. I basically used the <a title="Finding WWNs for HBAs in multiple ESX or ESXi hosts, standalone or clustered" href="http://thephuck.com/server-hardware/finding-wwns-for-hbas-in-multiple-esx-or-esxi-hosts-standalone-or-clustered/" target="_blank">Get-WWN</a> script as a template and changed/added what I needed.</p>
<p>When populating the $VMHosts variable, it only pulls hosts with ESXi version 5.*. Later in the script, you&#8217;ll see another check for version number, that&#8217;s for standalone hosts. I need to check when connecting directly to the host, then $foreach.movenext if it&#8217;s not 5.*, but I haven&#8217;t figured out an efficient way to get that done.  A little help maybe?</p>
<p>Usage:<code>Join-Domain.ps1 -VMHosts ("host1","host2","host3") -domain my.domain</code> or <code>Join-Domain -vc vcenterserver -container cluster1 -domain my.domain</code></p>
<p>I left container as required so you can target what you want. I tested it against a few clusters with different versions of ESXi, and everything seemed to work well.</p>
<p>One strange thing, though, is the host connection state has to be &#8216;connected&#8217;. If it&#8217;s in maintenance mode, set-vmhostauthentication won&#8217;t work. Why? I dunno, bug imo, it should work in either connected or maintenance mode.</p>
<p>I slapped this together quickly, so if you notice anything wrong, please let me know. If you know of another way, please tell me, too, I&#8217;m always happy to learn other ways to do things.</p>
<p>Script (also attached at the bottom below the code block):</p>
<div class="wp_syntax">
<div class="code">
<pre class="powershell" style="font-family:monospace;"><span style="color: #0000FF;">param</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span><span style="color: #008080;">string</span><span style="color: #000000;">&#93;</span><span style="color: #800080;">$vc</span> = <span style="color: #800000;">&quot;vc&quot;</span>, <span style="color: #000000;">&#91;</span><span style="color: #008080;">string</span><span style="color: #000000;">&#93;</span><span style="color: #800080;">$container</span> = <span style="color: #800000;">&quot;container&quot;</span>, <span style="color: #000000;">&#91;</span><span style="color: #008080;">string</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#93;</span><span style="color: #800080;">$VMHosts</span> = <span style="color: #800000;">&quot;VMHosts&quot;</span>, <span style="color: #000000;">&#91;</span><span style="color: #008080;">string</span><span style="color: #000000;">&#93;</span><span style="color: #800080;">$domain</span> = <span style="color: #800000;">&quot;domain&quot;</span><span style="color: #000000;">&#41;</span>
&nbsp;
<span style="color: #008080; font-weight: bold;">Add-PSSnapin</span> VMware.* <span style="color: #008080; font-style: italic;">-ErrorAction</span> SilentlyContinue
&nbsp;
<span style="color: #008000;">#usage info</span>
<span style="color: #0000FF;">function</span> usage<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
	<span style="color: #000000;">&#123;</span>
	<span style="color: #008080; font-weight: bold;">Write-host</span> <span style="color: #008080; font-style: italic;">-foregroundcolor</span> green `n`t<span style="color: #800000;">&quot;This script is used to join ESXi 5 hosts to the AD Doamin provided.&quot;</span>
	<span style="color: #008080; font-weight: bold;">Write-host</span> <span style="color: #008080; font-style: italic;">-foregroundcolor</span> green `n`t<span style="color: #800000;">&quot;You can either specify -VMHosts as an array:&quot;</span>
	<span style="color: #008080; font-weight: bold;">write-host</span> <span style="color: #008080; font-style: italic;">-foregroundcolor</span> yellow `n`t`t<span style="color: #800000;">&quot;Join-Domain -VMHosts (<span style="color: #008080; font-weight: bold;">`&quot;</span>host1<span style="color: #008080; font-weight: bold;">`&quot;</span>,<span style="color: #008080; font-weight: bold;">`&quot;</span>host2<span style="color: #008080; font-weight: bold;">`&quot;</span>,<span style="color: #008080; font-weight: bold;">`&quot;</span>host3<span style="color: #008080; font-weight: bold;">`&quot;</span>) -domain my.domain&quot;</span>
	<span style="color: #008080; font-weight: bold;">Write-host</span> <span style="color: #008080; font-style: italic;">-foregroundcolor</span> green `n`t<span style="color: #800000;">&quot;or specify -vc and -container, where container is a host name, cluster, folder, datacenter, etc:&quot;</span>
	<span style="color: #008080; font-weight: bold;">write-host</span> <span style="color: #008080; font-style: italic;">-foregroundcolor</span> yellow `n`t`t<span style="color: #800000;">&quot;Join-Domain -vc vcenterserver -container cluster1 -domain my.domain&quot;</span> `n
    <span style="color: #008080; font-weight: bold;">write-host</span> <span style="color: #008080; font-style: italic;">-foregroundcolor</span> green `t<span style="color: #800000;">&quot;You can use either -VMHosts or -vc and -container, not a combination of them.&quot;</span>
    <span style="color: #008080; font-weight: bold;">write-host</span> <span style="color: #008080; font-style: italic;">-foregroundcolor</span> red `n`t<span style="color: #800000;">&quot;remember, -domain is required!&quot;</span> `n
	<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0000FF;">function</span> JoinDomain<span style="color: #000000;">&#123;</span>
    <span style="color: #008000;">#We need AD creds to join</span>
    <span style="color: #800080;">$AD_creds</span> = <span style="color: #800080;">$host</span>.ui.PromptForCredential<span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;AD Credentials Required&quot;</span>, <span style="color: #800000;">&quot;Please enter Domain credentials to join computers: user@$domain&quot;</span>, <span style="color: #800000;">&quot;&quot;</span>, <span style="color: #800000;">&quot;&quot;</span><span style="color: #000000;">&#41;</span>
&nbsp;
    <span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$esx</span> <span style="color: #FF0000;">-eq</span> <span style="color: #804000;">1</span><span style="color: #000000;">&#41;</span>
        <span style="color: #008000;">#do this only if connecting directly to ESX hosts</span>
        <span style="color: #000000;">&#123;</span>
        <span style="color: #800080;">$VMHosts_creds</span> = <span style="color: #800080;">$host</span>.ui.PromptForCredential<span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;ESX/ESXi Credentials Required&quot;</span>, <span style="color: #800000;">&quot;Please enter credentials to log into the ESX/ESXi host.&quot;</span>, <span style="color: #800000;">&quot;&quot;</span>, <span style="color: #800000;">&quot;&quot;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#125;</span>
&nbsp;
    <span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$vcenter</span> <span style="color: #FF0000;">-eq</span> <span style="color: #804000;">1</span><span style="color: #000000;">&#41;</span>
        <span style="color: #008000;">#do this if connecting to vCenter to populate VMHosts</span>
        <span style="color: #000000;">&#123;</span>
        <span style="color: #008080; font-weight: bold;">connect-viserver</span> <span style="color: #800080;">$vc</span> &amp;gt; <span style="color: #800080;">$NULL</span> <span style="color: #804000;">2</span>&amp;gt;&amp;amp;<span style="color: #804000;">1</span>
        <span style="color: #008080; font-weight: bold;">write-host</span> -fore green <span style="color: #800000;">&quot;Pulling ESXi 5 hosts from $container in $vc&quot;</span>
        <span style="color: #800080;">$VMHosts</span> = <span style="color: #008080; font-weight: bold;">get-vmhost</span> -location <span style="color: #800080;">$container</span> | ? <span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.Version <span style="color: #FF0000;">-like</span> <span style="color: #800000;">&quot;5.*&quot;</span><span style="color: #000000;">&#125;</span> | <span style="color: #008080; font-weight: bold;">sort</span> name
        <span style="color: #000000;">&#125;</span>
&nbsp;
        <span style="color: #0000FF;">foreach</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$VMHost</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$VMHosts</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
        <span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$esx</span> <span style="color: #FF0000;">-eq</span> <span style="color: #804000;">1</span><span style="color: #000000;">&#41;</span>
            <span style="color: #008000;">#do this only if connecting directly to ESX hosts</span>
            <span style="color: #000000;">&#123;</span>
            <span style="color: #008080; font-weight: bold;">connect-viserver</span> <span style="color: #800080;">$VMHost</span> <span style="color: #008080; font-style: italic;">-credential</span> <span style="color: #800080;">$VMHosts_creds</span> &amp;gt; <span style="color: #800080;">$NULL</span> <span style="color: #804000;">2</span>&amp;gt;&amp;amp;<span style="color: #804000;">1</span>
            <span style="color: #000000;">&#125;</span>
		<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #008080; font-style: italic;">-foregroundcolor</span> green <span style="color: #800000;">&quot;Server: &quot;</span> <span style="color: #800080;">$VMHost</span>
        <span style="color: #800080;">$getvmhost</span> = <span style="color: #008080; font-weight: bold;">get-vmhost</span> <span style="color: #800080;">$vmhost</span>
		<span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$getVMhost</span>.Version <span style="color: #FF0000;">-like</span> <span style="color: #800000;">&quot;5.*&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-and</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$getVMHost</span>.ConnectionState <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;Connected&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
        <span style="color: #000000;">&#123;</span>
            <span style="color: #008000;">#the next step is for 5.0 without update 1, there's a bug addressed in update 1</span>
            <span style="color: #800080;">$getvmhost</span> | <span style="color: #008080; font-weight: bold;">Get-VMHostFirewallDefaultPolicy</span> | <span style="color: #008080; font-weight: bold;">Set-VMHostFirewallDefaultPolicy</span> -AllowIncoming <span style="color: #800080;">$true</span> -AllowOutgoing <span style="color: #800080;">$true</span> &amp;gt; <span style="color: #800080;">$NULL</span> <span style="color: #804000;">2</span>&amp;gt;&amp;amp;<span style="color: #804000;">1</span>
            <span style="color: #008000;">#what actually joins the machine to the domain</span>
            <span style="color: #800080;">$getvmhost</span> | <span style="color: #008080; font-weight: bold;">get-vmhostauthentication</span> | <span style="color: #008080; font-weight: bold;">Set-VMHostAuthentication</span> -Domain <span style="color: #800080;">$domain</span> <span style="color: #008080; font-style: italic;">-Credential</span> <span style="color: #800080;">$AD_creds</span> -JoinDomain <span style="color: #008080; font-style: italic;">-confirm</span>:<span style="color: #800080;">$false</span> &amp;gt; <span style="color: #800080;">$NULL</span> <span style="color: #804000;">2</span>&amp;gt;&amp;amp;<span style="color: #804000;">1</span>
            <span style="color: #008000;">#lets turn this back on</span>
            <span style="color: #800080;">$getvmhost</span> | <span style="color: #008080; font-weight: bold;">Get-VMHostFirewallDefaultPolicy</span> | <span style="color: #008080; font-weight: bold;">Set-VMHostFirewallDefaultPolicy</span> -AllowIncoming <span style="color: #800080;">$false</span> -AllowOutgoing <span style="color: #800080;">$false</span> &amp;gt; <span style="color: #800080;">$NULL</span> <span style="color: #804000;">2</span>&amp;gt;&amp;amp;<span style="color: #804000;">1</span>
            <span style="color: #008080; font-weight: bold;">write-host</span> -fore green <span style="color: #800000;">&quot;done with $vmhost&quot;</span>
            <span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$esx</span> <span style="color: #FF0000;">-eq</span> <span style="color: #804000;">1</span><span style="color: #000000;">&#41;</span>
            <span style="color: #008000;">#disconnect from the current ESX host before going to the next one</span>
            <span style="color: #000000;">&#123;</span>
                <span style="color: #008080; font-weight: bold;">disconnect-viserver</span> <span style="color: #008080; font-style: italic;">-confirm</span>:<span style="color: #800080;">$false</span>
            <span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">&#125;</span>
        <span style="color: #0000FF;">Else</span><span style="color: #000000;">&#123;</span><span style="color: #008080; font-weight: bold;">Write-host</span> -fore red `n`t <span style="color: #800000;">&quot;Skipping $VMHost, hosts cannot be in maintenance mode, retarded, I know, must be in a <span style="color: #008080; font-weight: bold;">`'</span>Connected<span style="color: #008080; font-weight: bold;">`'</span> state.&quot;</span>`n<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
    <span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$vcenter</span> <span style="color: #FF0000;">-eq</span> <span style="color: #804000;">1</span><span style="color: #000000;">&#41;</span>
        <span style="color: #008000;">#disconnect from vcenter</span>
        <span style="color: #000000;">&#123;</span>
        <span style="color: #008080; font-weight: bold;">disconnect-viserver</span> <span style="color: #008080; font-style: italic;">-confirm</span>:<span style="color: #800080;">$false</span>
        <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$VMHosts</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;VMHosts&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-or</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$domain</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;domain&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-and</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$vc</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;vc&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-or</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$container</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;container&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-or</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$domain</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;domain&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
    <span style="color: #008000;">#if VMHosts, vc, container, or domain is blank</span>
	<span style="color: #000000;">&#123;</span>
	usage
    <span style="color: #0000FF;">break</span>
	<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0000FF;">elseif</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$VMHosts</span> <span style="color: #FF0000;">-ne</span> <span style="color: #800000;">&quot;VMHosts&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-and</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$vc</span> <span style="color: #FF0000;">-ne</span> <span style="color: #800000;">&quot;vc&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-or</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$container</span> <span style="color: #FF0000;">-ne</span> <span style="color: #800000;">&quot;container&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
    <span style="color: #008000;">#if VMHosts and vc or container is used</span>
	<span style="color: #000000;">&#123;</span>
	usage
    <span style="color: #0000FF;">break</span>
	<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0000FF;">elseif</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$VMHosts</span> <span style="color: #FF0000;">-ne</span> <span style="color: #800000;">&quot;VMHosts&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-and</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$domain</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;domain&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-and</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$vc</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;vc&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-or</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$container</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;container&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-or</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$domain</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;domain&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
    <span style="color: #008000;">#if only VMHosts is used and domain was blank</span>
	<span style="color: #000000;">&#123;</span>
    usage
    <span style="color: #0000FF;">break</span>
    <span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0000FF;">elseif</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$VMHosts</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;VMHosts&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-and</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$vc</span> <span style="color: #FF0000;">-ne</span> <span style="color: #800000;">&quot;vc&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-and</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$container</span> <span style="color: #FF0000;">-ne</span> <span style="color: #800000;">&quot;container&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-and</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$domain</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;domain&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
    <span style="color: #008000;">#if vc and container are used, but domain is blank</span>
	<span style="color: #000000;">&#123;</span>
    usage
    <span style="color: #0000FF;">break</span>
	<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0000FF;">elseif</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$VMHosts</span> <span style="color: #FF0000;">-ne</span> <span style="color: #800000;">&quot;VMHosts&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-and</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$vc</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;vc&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-or</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$container</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;container&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-or</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$domain</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;domain&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
    <span style="color: #008000;">#if only VMHosts is used, set our esx variable to 1</span>
	<span style="color: #000000;">&#123;</span>
    <span style="color: #800080;">$esx</span> = <span style="color: #804000;">1</span>
    JoinDomain
    <span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #0000FF;">elseif</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$VMHosts</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;VMHosts&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-and</span> <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$vc</span> <span style="color: #FF0000;">-ne</span> <span style="color: #800000;">&quot;vc&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-and</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$container</span> <span style="color: #FF0000;">-ne</span> <span style="color: #800000;">&quot;container&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span>
    <span style="color: #008000;">#if vc and container are used, </span>
	<span style="color: #000000;">&#123;</span>
    <span style="color: #800080;">$vcenter</span> = <span style="color: #804000;">1</span>
	JoinDomain
	<span style="color: #000000;">&#125;</span></pre>
</div>
</div>
<p>Here&#8217;s the actual .ps1 file: <a href="http://thephuck.com/wp-content/uploads/2012/04/Join-Domain.ps1" target="_blank">Join-Domain.ps1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://thephuck.com/server-management/script-to-join-esxi-5-hosts-to-active-directory-for-directory-services-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some thoughts on the Cisco Cius Android tablet &#8211; User Review</title>
		<link>http://thephuck.com/end-user-computing/some-thoughts-on-the-cisco-cius-android-tablet-user-review/</link>
		<comments>http://thephuck.com/end-user-computing/some-thoughts-on-the-cisco-cius-android-tablet-user-review/#comments</comments>
		<pubDate>Thu, 19 Apr 2012 20:34:02 +0000</pubDate>
		<dc:creator>Luke</dc:creator>
				<category><![CDATA[End User Computing]]></category>
		<category><![CDATA[android tablet]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[cius]]></category>

		<guid isPermaLink="false">http://thephuck.com/?p=529</guid>
		<description><![CDATA[I&#8217;ve been using a Cisco Cius 7&#8243; Android tablet for several months now and am starting to have mixed emotions about it. Initially, I loved it, especially since it now has 2.2.2 (Froyo) and Google&#8217;s updated Play Store. It also allows side-loading of apps, so I have the Amazon Appstore, plus Cisco&#8217;s AppHQ. Overall, it&#8217;s...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using a Cisco Cius 7&#8243; Android tablet for several months now and am starting to have mixed emotions about it. Initially, I loved it, especially since it now has 2.2.2 (Froyo) and Google&#8217;s updated Play Store. It also allows side-loading of apps, so I have the Amazon Appstore, plus Cisco&#8217;s AppHQ. Overall, it&#8217;s fairly snappy, but is Atom-based (at 1.6GHz), so custom ROMs are pretty much non-existent.<br />
<span id="more-529"></span><br />
<a href="http://thephuck.com/wp-content/uploads/2012/04/IMAG0259.jpg" rel="prettyPhoto[529]" target="_blank"><img class="alignleft size-medium wp-image-536" title="IMAG0259" src="http://thephuck.com/wp-content/uploads/2012/04/IMAG0259-300x168.jpg" alt="" width="300" height="168" /></a>I&#8217;ve tried several key/button dances trying to get into recovery, without any luck. But I did somehow disable the charging light and haven&#8217;t figured out to turn it back on (home button lights up when charging/charged). I tried using ADB to reboot into recovery, it just rebooted like normal, and without su, you can&#8217;t do much with ADB. The standard rooting methods also do not work, unfortunately. That being said, I just wanted su for the sake of having su, and no other reason. Okay, maybe to try to overclock, or load different ROMs, or remove stuff I don&#8217;t want.</p>
<p>It does have the VMware View client, which uses PCoIP, and it works well. Some of the Google framework must be stripped because Google+ cannot be installed, and I had to side-load a really old version to get it to install. I haven&#8217;t tested beyond that, like hangouts and such.</p>
<p>The voice &amp; video calls work well on our network (not published externally), and I like that I can use my BT headset to talk on my desk phone. I&#8217;ll even receive emails on it (via EAS push) before they show up on Outlook.</p>
<p>What I did notice was how 3D rendering looks different in Quadrant versus my phone (MyTouch 4G), there are no textures in the graphics section. I&#8217;ve noticed some of the animated windows aren&#8217;t as fluid as my Gtablet either. The Gtablet is Tegra 2, but still, you&#8217;d think the 1.6GHz Atom coupled with whatever GPU it has would be better.</p>
<p>Also, over time, the clock seems to drift. On several occasions, it&#8217;s more than 2hrs off. I assumed it was because the tablet was off AND the battery died: however, after being plugged in 100% of the time over night, it was off. I unplugged it and left it until this morning and at 8:46am it thought it was 6:17am. That&#8217;s a large difference.</p>
<p>What I also noticed is that over time it will disconnect from the VOIP network. I tried disabling &amp; re-enabling wifi, but when disabled, I still have the wifi icon on the top. The only way I&#8217;ve found to get it back is a reboot. I didn&#8217;t realize this was a windows tablet :P</p>
<p>The interface itself is kind of lacking, in that navigating an email you&#8217;re writing (moving the cursor around to change stuff) is cumbersome and causes me to want to break things at times. All the more reason I like my optical track pad, much like the track ball on my old Nexus 1 and MyTouch 3G, maybe I&#8217;m just spoiled. The email client is &#8216;eh&#8217; too, but I&#8217;m sure you could install whatever email client floats your boat, given it&#8217;s available for the Cius.<a href="http://thephuck.com/wp-content/uploads/2012/04/IMAG0258.jpg" rel="prettyPhoto[529]" target="_blank"><img class="alignright size-medium wp-image-535" title="IMAG0258" src="http://thephuck.com/wp-content/uploads/2012/04/IMAG0258-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p>I still use the tablet, but I think it could benefit from more aftermarket support. Dell&#8217;s coming out with a new Atom-based tablet with Win8, and I&#8217;d like to find a way to fit that on the Cius, but I just don&#8217;t have the time.</p>
]]></content:encoded>
			<wfw:commentRss>http://thephuck.com/end-user-computing/some-thoughts-on-the-cisco-cius-android-tablet-user-review/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Initial thoughts of the Dell XPS 13 Ultrabook, unofficial review</title>
		<link>http://thephuck.com/end-user-computing/initial-thoughts-of-the-dell-xps-13-ultrabook-unofficial-review/</link>
		<comments>http://thephuck.com/end-user-computing/initial-thoughts-of-the-dell-xps-13-ultrabook-unofficial-review/#comments</comments>
		<pubDate>Fri, 13 Apr 2012 22:22:37 +0000</pubDate>
		<dc:creator>Luke</dc:creator>
				<category><![CDATA[End User Computing]]></category>
		<category><![CDATA[Dell]]></category>
		<category><![CDATA[ultrabook]]></category>
		<category><![CDATA[xps]]></category>

		<guid isPermaLink="false">http://thephuck.com/?p=497</guid>
		<description><![CDATA[I received a demo of the Ultrabook and I have to say I&#8217;m pleased out of the box.  It&#8217;s obvious it took some cues from the &#8216;other&#8217; laptop, and it&#8217;s nice.  First thing I noticed is how light and thin it is.  It&#8217;s probably as thick as my Viewsonic G Tablet, and boots faster.  I...]]></description>
			<content:encoded><![CDATA[<p>I received a demo of the Ultrabook and I have to say I&#8217;m pleased out of the box.  It&#8217;s obvious it took some cues from the &#8216;other&#8217; laptop, and it&#8217;s nice.  First thing I noticed is how light and thin it is.  It&#8217;s probably as thick as my Viewsonic G Tablet, and boots faster.  I timed it, from the time I pressed the power button, until I had a mouse pointer without the &#8216;wait&#8217; signal, was about 20 seconds.  The windows boot logo never even finished!  Craziness.<br />
<span id="more-497"></span></p>
<p>It&#8217;s snappy, runs the i7-2637M with 4GB of RAM, and a 256GB SSD.  It has the typical USB 3.0 &amp; display ports, and that&#8217;s really it, other than headset &amp; power barrel connectors.</p>
<p>The screen is almost edge to edge, has ambient light sensor, web cam, and stereo mics up top.  The keyboard really nice, easier to type on than my E6420, and the sound is crystal clear.  It was actually impressive how well the audio is, it surprised me.  I cranked it up in my cube and realized I was probably interfering with those on the phone.  I&#8217;m still streaming pandora as I type this amazed at the quality from this tiny thing.</p>
<p>Like a lot of the newer laptops, it has a rubber gasket around the glass to keep dust out when closed.</p>
<p>The back cover is a nice aluminum, which goes well with the aluminum trim around the base.  What got me was the carbon fiber on the bottom.</p>
<p>It&#8217;s running Windows 7 and scored a 5.4, due to graphics for Aero (typical in a laptop).  The SSD hit 7.9, CPU hit 6.8, and RAM hit 5.9.</p>
<p>Overall, I really like it, despite missing a true HDMI port, or SD card reader (things I use more often than not).</p>
<p>Pretty sweet, imo, too bad I have to give it back :-(</p>
<p>Please excuse the quality of my cell phone pics, the don&#8217;t do it justice.</p>
<p>&nbsp;</p>
<p><a href="http://thephuck.com/wp-content/uploads/2012/04/IMAG0236.jpg" rel="prettyPhoto[497]" target="_blank"><img class="alignnone size-medium wp-image-519" title="IMAG0236" src="http://thephuck.com/wp-content/uploads/2012/04/IMAG0236-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p><a href="http://thephuck.com/wp-content/uploads/2012/04/IMAG0243.jpg" rel="prettyPhoto[497]" target="_blank"><img class="alignnone size-medium wp-image-525" title="IMAG0243" src="http://thephuck.com/wp-content/uploads/2012/04/IMAG0243-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p><a href="http://thephuck.com/wp-content/uploads/2012/04/IMAG0233.jpg" rel="prettyPhoto[497]" target="_blank"><img class="alignnone size-medium wp-image-517" title="IMAG0233" src="http://thephuck.com/wp-content/uploads/2012/04/IMAG0233-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p><a href="http://thephuck.com/wp-content/uploads/2012/04/IMAG0239.jpg" rel="prettyPhoto[497]" target="_blank"><img class="alignnone size-medium wp-image-521" title="IMAG0239" src="http://thephuck.com/wp-content/uploads/2012/04/IMAG0239-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p><a href="http://thephuck.com/wp-content/uploads/2012/04/IMAG0237.jpg" rel="prettyPhoto[497]" target="_blank"><img class="alignnone size-medium wp-image-520" title="IMAG0237" src="http://thephuck.com/wp-content/uploads/2012/04/IMAG0237-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p><a href="http://thephuck.com/wp-content/uploads/2012/04/IMAG0242.jpg" rel="prettyPhoto[497]" target="_blank"><img class="alignnone size-medium wp-image-524" title="IMAG0242" src="http://thephuck.com/wp-content/uploads/2012/04/IMAG0242-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p><a href="http://thephuck.com/wp-content/uploads/2012/04/IMAG0234.jpg" rel="prettyPhoto[497]" target="_blank"><img class="alignnone size-medium wp-image-518" title="IMAG0234" src="http://thephuck.com/wp-content/uploads/2012/04/IMAG0234-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p><a href="http://thephuck.com/wp-content/uploads/2012/04/IMAG0240.jpg" rel="prettyPhoto[497]" target="_blank"><img class="alignnone size-medium wp-image-522" title="IMAG0240" src="http://thephuck.com/wp-content/uploads/2012/04/IMAG0240-300x168.jpg" alt="" width="300" height="168" /></a></p>
<p><a href="http://thephuck.com/wp-content/uploads/2012/04/IMAG0241.jpg" rel="prettyPhoto[497]" target="_blank"><img class="alignnone size-medium wp-image-523" title="IMAG0241" src="http://thephuck.com/wp-content/uploads/2012/04/IMAG0241-300x168.jpg" alt="" width="300" height="168" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://thephuck.com/end-user-computing/initial-thoughts-of-the-dell-xps-13-ultrabook-unofficial-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where will virtualization be in 12, 18, and 24 months from now? Please respond with your thoughts&#8230;</title>
		<link>http://thephuck.com/virtualization/where-will-virtualization-be-in-12-18-and-24-months-from-now-please-respond-with-your-thoughts/</link>
		<comments>http://thephuck.com/virtualization/where-will-virtualization-be-in-12-18-and-24-months-from-now-please-respond-with-your-thoughts/#comments</comments>
		<pubDate>Fri, 13 Apr 2012 21:09:23 +0000</pubDate>
		<dc:creator>Luke</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[virtualization roadmap]]></category>

		<guid isPermaLink="false">http://thephuck.com/?p=502</guid>
		<description><![CDATA[Everyone has ideas of where virtualization is heading, what it will look like, and how everything&#8217;s moving to cloud computing.  I&#8217;ve pretty much built our internal cloud, and it&#8217;s somewhat limited to PaaS, with a move to include SaaS.  I&#8217;m curious to see what everyone thinks about PaaS, IaaS, SaaS, and virtualization overall over the...]]></description>
			<content:encoded><![CDATA[<p>Everyone has ideas of where virtualization is heading, what it will look like, and how everything&#8217;s moving to cloud computing.  I&#8217;ve pretty much built our internal cloud, and it&#8217;s somewhat limited to PaaS, with a move to include SaaS.  I&#8217;m curious to see what everyone thinks about PaaS, IaaS, SaaS, and virtualization overall over the next two years.</p>
<p><span id="more-502"></span>Feel free to shoot me an email, luke at thephuck.com, or on twitter @thephuck.  I&#8217;d like to gather everyone&#8217;s ideas and responses to build another collaborative post.  I was going to build a survey, but I like discussions a lot better than a form to fill out.  This is geared more towards the IT/IS shop with a decent investment in virtualization, but not a hosting company.  My production environment alone is roughly 100 hosts spread across about 14 clusters in four different geophysical locations.  I don&#8217;t really expect the smaller shops with ~50 hosts in one or two DCs to expand how we did.</p>
<p>I personally feel the virtualization stack as it has been known is going to be less visible in the future, due to internal clouds.  It&#8217;s not really viewed as having an ESXi host to put VMs on, rather than a cluster where VMs live and move around freely.  We&#8217;ll be less concerned with building hosts as we did traditionally, and will do a lot more stateless builds where a rip &amp; replace is done very easily.  That&#8217;s pretty much done today.</p>
<p>Some of my concerns are the underlying hardware, fewer larger boxes (16-32 cores &amp; 512GB of RAM) versus more smaller boxes.  I currently deploy with 256GB of RAM and that gets me near 50:1 with RAM being my limitation in a 2 pCPU box.  We&#8217;re a VMware shop, so I don&#8217;t see a shift to Hyper-V for me, but maybe others?  Nothing wrong with it, just this is the path we chose.  That being said, I haven&#8217;t really had a chance to get into VCD, and I believe that&#8217;s a route we need to go down as well if you want a more fluid/automated cloud.</p>
<p>I find myself doing a lot of day to day maintenance, or focusing on short-term goals, and often lose sight of the road that&#8217;s way ahead.  I can see what&#8217;s down the road in front of me, but what about down the road, around the bend, and to the left?</p>
<p>TIA!</p>
]]></content:encoded>
			<wfw:commentRss>http://thephuck.com/virtualization/where-will-virtualization-be-in-12-18-and-24-months-from-now-please-respond-with-your-thoughts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unable to edit or delete wireless profiles or networks in Windows 8, use netsh wlan to fix!</title>
		<link>http://thephuck.com/uncategorized/unable-to-edit-delete-wireless-profiles-or-networks-in-windows-8-use-netsh-wlan-to-fix/</link>
		<comments>http://thephuck.com/uncategorized/unable-to-edit-delete-wireless-profiles-or-networks-in-windows-8-use-netsh-wlan-to-fix/#comments</comments>
		<pubDate>Mon, 09 Apr 2012 14:56:01 +0000</pubDate>
		<dc:creator>Luke</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[netsh]]></category>
		<category><![CDATA[Windows 8]]></category>
		<category><![CDATA[wireless profiles]]></category>
		<category><![CDATA[wlan]]></category>

		<guid isPermaLink="false">http://thephuck.com/?p=472</guid>
		<description><![CDATA[I was playing with my wifi AP and turned SSID broadcast off. Of course, several wireless machines on my network wouldn&#8217;t connect because they weren&#8217;t configured to connect if the SSID wasn&#8217;t broadcast. They all were an easy fix, except for my Windows 8 test laptop. I tried to find the wireless profiles in the...]]></description>
			<content:encoded><![CDATA[<p>I was playing with my wifi AP and turned SSID broadcast off. Of course, several wireless machines on my network wouldn&#8217;t connect because they weren&#8217;t configured to connect if the SSID wasn&#8217;t broadcast. They all were an easy fix, except for my Windows 8 test laptop.<span id="more-472"></span></p>
<p>I tried to find the wireless profiles in the control panel with no success, so I decided to manually connect to a network, which told me one already exists with that name.<a href="http://thephuck.com/wp-content/uploads/2012/04/manually-connect.gif" rel="prettyPhoto[472]" target="_blank"><img class="alignright size-thumbnail wp-image-473" title="manually-connect" src="http://thephuck.com/wp-content/uploads/2012/04/manually-connect-150x150.gif" alt="Manually Connect dialog box" width="150" height="150" /></a></p>
<p>If you click &#8220;Use existing network&#8221;, nothing happens, in fact, I&#8217;m still waiting :D Since my laptop would no longer connect, and it was past my bed time, I felt the need to work harder at this to figure it out instead of just enabling SSID broadcast on my AP. That&#8217;s too easy and would admit failure, which I will never give in to &#8220;The Man&#8221; (aka Microsoft), plus, I&#8217;d have to peel myself off the couch to find another device to connect. The &#8216;netsh&#8217; command popped into my head, and sure enough, what I wanted can be done that way. I prefer CLI, so I rejoiced for about 0.5s, then moved on. From a simple &#8216;netsh wlan&#8217; command, I was able to find out I could do all sorts of nifty things, including add, export, and delete.<a href="http://thephuck.com/wp-content/uploads/2012/04/netsh-wlan.gif" rel="prettyPhoto[472]" target="_blank"><img class="alignright size-thumbnail wp-image-477" title="netsh-wlan" src="http://thephuck.com/wp-content/uploads/2012/04/netsh-wlan-150x150.gif" alt="" width="150" height="150" /></a> Sure, I could simply delete the profile I wanted and then manually add it through the GUI, but that&#8217;s entirely too simple, so I exported the one I wanted to edit. To list your profiles, run<code>netsh wlan show profiles</code>Then to export the one you want to edit, run<code>netsh wlan export profile ThepHuck</code>No, my SSID is not named that, created the profile for this post via netsh!! No war driving through my neighborhood! That command exports an xml file to the pwd, open it and you&#8217;ll see this:<a href="http://thephuck.com/wp-content/uploads/2012/04/wifi-config1.gif" rel="prettyPhoto[472]" target="_blank"><img class="alignnone  wp-image-478" title="wifi-config1" src="http://thephuck.com/wp-content/uploads/2012/04/wifi-config1.gif" alt="" width="650" height="297" /></a><br />
I changed nonBroadcast to true, and tried to import it, but got an error that the xml file was corrupt. I&#8217;m assuming it had to do with the passphrase, so I changed protected to false and typed in the password like this:<a href="http://thephuck.com/wp-content/uploads/2012/04/wifi-config2.gif" rel="prettyPhoto[472]" target="_blank"><img class="alignnone size-full wp-image-479" title="wifi-config2" src="http://thephuck.com/wp-content/uploads/2012/04/wifi-config2.gif" alt="" width="590" height="355" /></a><br />
Then, I ran<code>netsh wlan add profile filename="ThepHuck.xml"</code> and not more than 30s later, I started writing this post from my Win8 dev laptop that was now connected to my wifis!  Hope this helps someone out there.</p>
]]></content:encoded>
			<wfw:commentRss>http://thephuck.com/uncategorized/unable-to-edit-delete-wireless-profiles-or-networks-in-windows-8-use-netsh-wlan-to-fix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating your own Root CA with OpenSSL on Windows, and signing vCenter or SRM certs</title>
		<link>http://thephuck.com/virtualization/creating-your-own-root-ca-with-openssl-on-windows-and-signing-vcenter-or-srm-certs/</link>
		<comments>http://thephuck.com/virtualization/creating-your-own-root-ca-with-openssl-on-windows-and-signing-vcenter-or-srm-certs/#comments</comments>
		<pubDate>Thu, 05 Apr 2012 15:49:02 +0000</pubDate>
		<dc:creator>Luke</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Certificate Authority]]></category>
		<category><![CDATA[Certificate signing]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[Root CA]]></category>
		<category><![CDATA[srm]]></category>
		<category><![CDATA[vcenter]]></category>

		<guid isPermaLink="false">http://thephuck.com/?p=448</guid>
		<description><![CDATA[In This Post, I created certificates for my SRM &#38; vCenter servers where I used a separate signing authority. What if you don&#8217;t have one, but still want to use your own certs? You create your own Root Certificate Authority (root CA) via OpenSSL. Here&#8217;s how&#8230; You need to download and install OpenSSL from Here....]]></description>
			<content:encoded><![CDATA[<p>In <a title="Creating Certificates for VMware SRM or vCenter using openSSL made easy, with Video!" href="http://thephuck.com/virtualization/creating-certificates-for-vmware-srm-or-vcenter-using-openssl-made-easy-with-video/" target="_blank">This Post</a>, I created certificates for my SRM &amp; vCenter servers where I used a separate signing authority. What if you don&#8217;t have one, but still want to use your own certs? You create your own Root Certificate Authority (root CA) via OpenSSL. Here&#8217;s how&#8230;<br />
<span id="more-448"></span><br />
You need to download and install OpenSSL from <a title="OpenSSL on slproweb.com" href="http://www.slproweb.com/products/Win32OpenSSL.html" target="_blank">Here</a>. I installed mine on the D drive, D:\OpenSSL-Win32, then added &#8220;D:\openssl-win32\bin&#8221; to my path. There are some prereqs needed:</p>
<ul>
<li>You&#8217;ll need an openssl.cnf file in that directory</li>
<li>Folder structure for Root CA</li>
<li>Serials for certs</li>
<li>I think that&#8217;s it</li>
</ul>
<p>First thing&#8217;s first, the openssl.cnf file: <a href='http://thephuck.com/wp-content/uploads/2012/04/openssl.cnf'>openssl.cnf</a>.  Most of these files you find on the web have the demoCA folder, so I left it and just changed the path to that.  I also added the v3_ca extension at the bottom.</p>
<p>Next is the folder structure, you need to create the &#8216;demoCA&#8217; directory under the bin folder, and a &#8216;newcerts&#8217; folder under that:<code>mkdir d:\openssl-win32\bin\demoCA\newcerts</code>That creates both for us.</p>
<p>Now we need to copy the serial file over, for certificate serial numbers:<code>copy d:\openssl-win32\bin\pem\democa\serial d:\openssl-win32\bin\democa</code></p>
<p>Lastly, we need an empty index.txt file.  You can do this however you wish, but an easy way is via notepad &#038; cli:<code>notepad d:\openssl-win32\bin\demoCA\index.txt</code>It will prompt you that it doesn&#8217;t exist and needs to create it.  That&#8217;s what we want, save and close it once opened.</p>
<p>Now the fun part of actually creating your root CA, simply run this from wherever you want:<code>openssl req -new -x509 -extensions v3_ca -keyout rootca.key -out rootca.crt -days 3653 -config openssl.cnf</code><a href="http://thephuck.com/wp-content/uploads/2012/04/openssl-rootca.gif" rel="prettyPhoto[448]"><img src="http://thephuck.com/wp-content/uploads/2012/04/openssl-rootca.gif" alt="" title="openssl-rootca" width="756" height="218" class="alignnone size-full wp-image-428" /></a></p>
<p>Can you guess why I did 3653?  I ran it from the d:\openssl-win32 directory, which is where my openssl.cnf file is located.  Now, this command created our rootca.key and rootca.crt files.  If you do a dir rootca*, you should see them.<br />
Some things to note:<br />
Enter PEM pass phrase: <--- this should be a $tr0n6 P@s$w0rd that you can keep track of, you'll have to use it when signing certs, same with these:<code>Country Name (2 letter code) []:US<br />
State or Province Name (full name) []:Texas<br />
Locality Name (eg, city) []:San Antonio<br />
Organization Name (eg, company) []:ThepHuck<br />
Organizational Unit Name (eg, section) []:Luke<br />
Common Name (eg, your websiteÆs domain name) []:thephuck.com<br />
Email Address []:<span class="mh-email"><a href='http://www.google.com/recaptcha/mailhide/d?k=015283KoDCVuk-TBkysIIOhA==&amp;c=XaR20BWnDwshKRlhPxpv-WxgRqcXq8NY_ooegUjSoy0=' onclick="window.open('http://www.google.com/recaptcha/mailhide/d?k=015283KoDCVuk-TBkysIIOhA==&amp;c=XaR20BWnDwshKRlhPxpv-WxgRqcXq8NY_ooegUjSoy0=', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;" title="To see email address click here">EMAIL HIDDEN</a></span></code>When creating CSRs, some fields are required to match what the root CA has, some just need not be blank, and others are optional.  This is governed by the opennssl.cnf file and needs to be set BEFORE creating the root CA.  My supplied openssl.cnf file has the following:<code># For the CA policy<br />
[ policy_match ]<br />
countryName            = match<br />
stateOrProvinceName        = match<br />
organizationName        = supplied<br />
organizationalUnitName    = optional<br />
commonName            = supplied<br />
emailAddress            = optional<br />
[ policy_anything ]<br />
countryName        = optional<br />
stateOrProvinceName    = optional<br />
localityName        = optional<br />
organizationName    = optional<br />
organizationalUnitName    = optional<br />
commonName            = supplied<br />
emailAddress            = optional</code><br />
Moving on...we're going to overlap a little from yesterday's post regarding Certificate Signing Requests (CSRs), but I'm not going in to detail on that.  Let's say we already have our csr file and need to sign it.<a href="http://thephuck.com/wp-content/uploads/2012/04/openssl-req.gif" rel="prettyPhoto[448]"><img src="http://thephuck.com/wp-content/uploads/2012/04/openssl-req.gif" alt="" title="openssl-req" width="478" height="176" class="alignnone size-full wp-image-427" /></a></p>
<p>Now we need to sign that csr file.  I ran this command from my p:\vclab folder, which requires us to supply the path to rootca.key, rootca.crt, and root CA's openssl.cnf file:<code>openssl ca -cert d:\OpenSSL-Win32\rootca.crt -keyfile d:\OpenSSL-Win32\rootca.key -out rui.crt -config d:\OpenSSL-Win32\openssl.cnf -infiles rui.csr</code>This will have a few prompts, like the $tr0n6 P@s$w0rd pass phrase we entered earlier, then it checks the supplied attributes.  If you look in my output below, that was for SRM (it contains Extended Key Usage).  You have to type Y to sign the cert, then commit it, then you're done:<a href="http://thephuck.com/wp-content/uploads/2012/04/openssl-signcsr.gif" rel="prettyPhoto[448]"><img src="http://thephuck.com/wp-content/uploads/2012/04/openssl-signcsr.gif" alt="" title="openssl-signcsr" width="960" height="195" class="alignnone size-full wp-image-430" /></a></p>
<p>Any additional certificate-related steps for vCenter or SRM are covered in yesterday's post.  If you use this cert we just signed, you'll still get a warning that it is untrusted.  Can you guess why?  Yup, dragons around every corner, I know.  Your local machine doesn't trust the certificate authority.  You have to import the rootca.crt file into your Trusted Root Certificate Authority.  You can also blast that out via GPO.</p>
]]></content:encoded>
			<wfw:commentRss>http://thephuck.com/virtualization/creating-your-own-root-ca-with-openssl-on-windows-and-signing-vcenter-or-srm-certs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Creating Certificates for VMware SRM or vCenter using openSSL made easy, with Video!</title>
		<link>http://thephuck.com/virtualization/creating-certificates-for-vmware-srm-or-vcenter-using-openssl-made-easy-with-video/</link>
		<comments>http://thephuck.com/virtualization/creating-certificates-for-vmware-srm-or-vcenter-using-openssl-made-easy-with-video/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 20:52:42 +0000</pubDate>
		<dc:creator>Luke</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[certificate request]]></category>
		<category><![CDATA[certificates]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[srm]]></category>
		<category><![CDATA[vcenter]]></category>

		<guid isPermaLink="false">http://thephuck.com/?p=396</guid>
		<description><![CDATA[Some of the documentation around creating certificates for vCenter or SRM seems to be lacking, so I documented a few steps for each and outlined the differences, also created a video :) This can be done from any machine, as long as openssl is installed. If you&#8217;re creating/requesting multiple certs, create folders for each request...]]></description>
			<content:encoded><![CDATA[<p>Some of the documentation around creating certificates for vCenter or SRM seems to be lacking, so I documented a few steps for each and outlined the differences, also created a video :)</p>
<p>This can be done from any machine, as long as openssl is installed. If you&#8217;re creating/requesting multiple certs, create folders for each request and work from within there so you don&#8217;t mix them up. I use d:\cert\vcenter and d:\cert\srm. I added &#8220;D:\OpenSSL-Win32\bin\&#8221; to may path variable so it&#8217;ll work in any folder I&#8217;m in.</p>
<p><span id="more-396"></span><br />
Make sure you&#8217;ve installed OpenSSL, which can be downloaded <a title="OpenSSL on slproweb.com" href="http://www.slproweb.com/products/Win32OpenSSL.html">here</a>. Next, open a command prompt (not a PowerShell window). I have a tendency to do the latter, since I do everything in PowerShell, but PS sometimes does not like what we&#8217;re typing.</p>
<p>If you have an internal PKI root CA, like RSA or Microsoft CA, you can proceed like normal, otherwise, you&#8217;ll need to create a root CA via OpenSSL, which I&#8217; cover in another post <a title="Creating your own Root CA with OpenSSL on Windows, and signing vCenter or SRM certs" href="http://thephuck.com/virtualization/creating-your-own-root-ca-with-openssl-on-windows-and-signing-vcenter-or-srm-certs/">HERE</a>.</p>
<p>First thing is to generate the Certificate Signing Request, aka csr. To do this, we&#8217;ll need to create our config file. It can be named anything, I chose openssl.cnf, and it should be in your working folder (SRM, vCenter, etc) to keep track of what config file was used to generate which key &amp; csr. There are a few differences in the openssl.cnf, depending on if it&#8217;s for SRM or vCenter.</p>
<p>This one&#8217;s for vCenter:<br />
<code>[ req ]<br />
default_bits = 2048<br />
default_keyfile = rui.key<br />
distinguished_name = req_distinguished_name<br />
#Don't encrypt the key<br />
encrypt_key = no<br />
prompt = no<br />
string_mask = nombstr<br />
[ req_distinguished_name ]<br />
countryName = US<br />
stateOrProvinceName = State<br />
localityName = City<br />
0.organizationName = Company Name<br />
organizationalUnitName = IS<br />
emailAddress = email@address<br />
commonName = fqdn.of.srm.server</code></p>
<p>This one&#8217;s for SRM:<br />
<code>[ req ]<br />
default_bits = 2048<br />
default_keyfile = rui.key<br />
distinguished_name = req_distinguished_name<br />
#Don't encrypt the key<br />
encrypt_key = no<br />
prompt = no<br />
string_mask = nombstr<br />
[ req_distinguished_name ]<br />
countryName = US<br />
stateOrProvinceName = State<br />
localityName = City<br />
0.organizationName = Company Name<br />
organizationalUnitName = IS<br />
emailAddress = email@address<br />
commonName = SRM<br />
extendedKeyUsage = serverAuth, clientAuth<br />
subjectAltName = DNS: fqdn.of.srm.server</code></p>
<p>The main differences in the SRM config file are <code>extendedKeyUsage = serverAuth, clientAuth</code> and <code>commonName = SRM</code>Since you will have two SRM servers, the commonName (or CN) will need to be &#8220;SRM&#8221;, then the subjectAltName (or SAN) will need to be the actual FQDN of each server. You will need two certs. I aliased my vCenter to vcprod, so my vCenter csr also has the SAN of vcprod, while CN is the actual fqdn of the vCenter server itself. Fwiw, if you use RSA, the SAN can be added when the cert is signed, thus not needed in the config file. Notice rui.key? It will generate the .key file needed for vCenter. This is not needed for SRM, but nice to have.</p>
<p>Now, let&#8217;s run the first command to create the .key &amp; .csr files:<code>openssl req -newkey rsa:2048 -nodes -out rui.csr -config openssl.cnf</code><a href="http://thephuck.com/wp-content/uploads/2012/04/openssl-req.gif" rel="prettyPhoto[396]"><img class="alignright size-full wp-image-427" title="openssl-req" src="http://thephuck.com/wp-content/uploads/2012/04/openssl-req.gif" alt="" width="478" height="176" /></a>From here, you can do one of two things: 1) submit the CSR to your internal PKI; or 2) sign the cert yourself via OpenSSL.</p>
<p>The preferred method is to use an internal PKI, like RSA or Microsoft. When you submit your request, you can either upload the .csr file, or copy the contents of it and paste it in the web form, then make a PKCS#10 request. Once the request is approved, you&#8217;ll receive notification to the email in the config file. You&#8217;ll need to create rui.crt and copy everything in the approved/signed cert request (&#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211; and &#8212;&#8211;END CERTIFICATE&#8212;&#8211; and everything in between!). Save that to the current working directory.</p>
<p>Now we have two different commands, depending on use: SRM or vCenter. SRM requires a .p12 file, while vCenter requires a .pfx file. They&#8217;re essentially the same, you just use either rui.pfx or rui.p12 in the -out switch of the command:<code>openssl pkcs12 -export -in rui.crt -inkey rui.key -name rui -passout pass:testpassword -out rui.p12</code><a href="http://thephuck.com/wp-content/uploads/2012/04/openssl-pfx.gif" rel="prettyPhoto[396]"><img class="alignright size-full wp-image-426" title="openssl-pfx" src="http://thephuck.com/wp-content/uploads/2012/04/openssl-pfx.gif" alt="" width="657" height="24" /></a>This is where you either do rui.pfx or rui.p12. vCenter requires the pfx file. Yes, I&#8217;m redundant here, but I best most viewers of this post will only see the code blocks and do a c&amp;p without actually reading the content. I&#8217;ve been guilty of that on occasion, I bet most probably are.</p>
<p><a href="http://thephuck.com/wp-content/uploads/2012/04/openssl-rui.gif" rel="prettyPhoto[396]"><img class="alignright size-full wp-image-429" title="openssl-rui" src="http://thephuck.com/wp-content/uploads/2012/04/openssl-rui.gif" alt="" width="330" height="32" /></a>Next, rename rui.crt to rui.crt.old, then we need to convert it with openssl:<code>openssl x509 -text -in rui.crt.old &gt; rui.crt</code></p>
<p>With that, we should have three files for vCenter (rui.key, rui.crt, and rui.pfx), or our single rui.p12 for SRM.</p>
<p>And now the <a href="http://youtu.be/4j81uwPnpgg?hd=1">video</a>:<br />
<iframe src="http://www.youtube.com/embed/4j81uwPnpgg" frameborder="0" width="560" height="315"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://thephuck.com/virtualization/creating-certificates-for-vmware-srm-or-vcenter-using-openssl-made-easy-with-video/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

