<?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>vCenter &#8211; Blog of Kliment Andreev &#8211; A place so I won&#039;t forget things</title>
	<atom:link href="https://blog.andreev.it/tag/vcenter/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.andreev.it</link>
	<description></description>
	<lastBuildDate>Tue, 19 Dec 2023 13:12:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Install ESXi 8 on Intel NUC 13</title>
		<link>https://blog.andreev.it/2023/12/install-esxi-8-on-intel-nuc-13/</link>
					<comments>https://blog.andreev.it/2023/12/install-esxi-8-on-intel-nuc-13/#respond</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Mon, 18 Dec 2023 14:42:16 +0000</pubDate>
				<category><![CDATA[ESX/ESXi]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[home lab]]></category>
		<category><![CDATA[Intel]]></category>
		<category><![CDATA[NUC]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[VMware]]></category>
		<guid isPermaLink="false">https://blog.andreev.it/?p=9639</guid>

					<description><![CDATA[Recently I was playing with Kubernetes and racked a substantial bill in AWS and&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p>Recently I was playing with Kubernetes and racked a substantial bill in AWS and Azure so I decided to bring the lab home. I needed a small but powerful PC that can run multiple test VMs and Kubernetes clusters. Kubernetes on a bare metal is different than EKS or AKS, especially when it comes to handling load balancers, ingress, IAM roles etc. Some of these things don&#8217;t exist on a bare metal machine.<br />
I bought a <a href="https://www.amazon.com/dp/B0C1SHV6RS?psc=1&#038;ref=ppx_yo2ov_dt_b_product_details" rel="noopener" target="_blank">NUC 13 small factor PC</a> from Amazon and added <a href="https://www.amazon.com/gp/product/B08RK2SR23/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&#038;psc=1" rel="noopener" target="_blank">Samsung NVMe 2TB SSD</a> and <a href="https://www.amazon.com/gp/product/B07ZLCVKPV/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&#038;psc=1" rel="noopener" target="_blank">Crucial 64GB RAM</a>. After 2 months (these things are expensive!!!), I bought a <a href="https://www.amazon.com/gp/product/B0BRN9J1JN/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&#038;psc=1" rel="noopener" target="_blank">Synology NAS </a>with <a href="https://www.amazon.com/dp/B084ZV4DXB?psc=1&#038;ref=ppx_yo2ov_dt_b_product_details" rel="noopener" target="_blank">2 x 8GB SATA disks</a>. Next, is to upgrade the NAS with SSD that will act as cache, but I am not in a rush. Nevertheless&#8230;</p>
<h1>Initial SSD, RAM setup</h1>
<p>First thing you need to do is to CAREFULLY open the PC and make sure you don&#8217;t pull too hard and break the ribbon. Good thing is that the screws are not coming off and there is a spring mechanism so it&#8217;s super easy to open and close the bottom.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-01-scaled.jpg"><img fetchpriority="high" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-01-1024x768.jpg" alt="" width="1024" height="768" class="aligncenter size-large wp-image-9645" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-01-1024x768.jpg 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-01-300x225.jpg 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-01-768x576.jpg 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-01-1536x1152.jpg 1536w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-01-2048x1536.jpg 2048w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-01-1200x900.jpg 1200w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-01-1920x1440.jpg 1920w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-01-1170x878.jpg 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-01-585x439.jpg 585w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
Add the NVMe SSD on the left side, but remove the screw first, bottom left. You&#8217;ll use it to tighten the SSD after.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-02-scaled.jpg"><img decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-02-1024x768.jpg" alt="" width="1024" height="768" class="aligncenter size-large wp-image-9646" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-02-1024x768.jpg 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-02-300x225.jpg 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-02-768x576.jpg 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-02-1536x1152.jpg 1536w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-02-2048x1536.jpg 2048w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-02-1200x900.jpg 1200w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-02-1920x1440.jpg 1920w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-02-1170x878.jpg 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-02-585x439.jpg 585w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
Add the memory on the right side, you can add up to 64GB RAM hence 2 x 32GB modules. If you boot the PC even with a bootable USB stick, you&#8217;ll get an error saying <strong>&#8220;A bootable device has not been detected&#8221;</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-03.png"><img decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-03-1024x242.png" alt="" width="1024" height="242" class="aligncenter size-large wp-image-9648" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-03-1024x242.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-03-300x71.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-03-768x182.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-03-1170x277.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-03-585x138.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-03.png 1200w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
Hit <strong>CTRL-ALT-DEL </strong>and then <strong>F2</strong> to enter BIOS. From there, go to <strong>Boot</strong> menu, then <strong>Boot Priority</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-04.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-04-1024x762.png" alt="" width="1024" height="762" class="aligncenter size-large wp-image-9650" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-04-1024x762.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-04-300x223.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-04-768x571.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-04-1170x871.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-04-585x435.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-04.png 1266w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
Check <strong>Boot USB Devices First</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-05.jpeg"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-05-768x1024.jpeg" alt="" width="768" height="1024" class="aligncenter size-large wp-image-9652" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-05-768x1024.jpeg 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-05-225x300.jpeg 225w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-05-1152x1536.jpeg 1152w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-05-1536x2048.jpeg 1536w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-05-1170x1560.jpeg 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-05-585x780.jpeg 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-05.jpeg 1645w" sizes="(max-width: 768px) 100vw, 768px" /></a><br />
If you boot from ESXi 8 ISO now, most likely you&#8217;ll get an <strong>Fatal CPU mismatch on feature</strong> PSOD error. So, while still in the BIOS, go to <strong>Power, Performance and Cooling </strong>tab. Expand the first item <strong>External Ambient Temperature Tolerance</strong> and change the temperature setting to <strong>User Defined.</strong><br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-06.jpeg"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-06-768x1024.jpeg" alt="" width="768" height="1024" class="aligncenter size-large wp-image-9653" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-06-768x1024.jpeg 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-06-225x300.jpeg 225w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-06-1152x1536.jpeg 1152w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-06-1536x2048.jpeg 1536w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-06-1170x1560.jpeg 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-06-585x780.jpeg 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-06.jpeg 1645w" sizes="(max-width: 768px) 100vw, 768px" /></a><br />
Now, you can enter the <strong>Performance</strong> menu which was grayed if the setting is not <strong>User Defined</strong> for the <strong>External Ambient Temperature Tolerance</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-07-scaled.jpg"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-07-768x1024.jpg" alt="" width="768" height="1024" class="aligncenter size-large wp-image-9654" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-07-768x1024.jpg 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-07-225x300.jpg 225w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-07-1152x1536.jpg 1152w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-07-1536x2048.jpg 1536w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-07-scaled.jpg 1920w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-07-1170x1560.jpg 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-07-585x780.jpg 585w" sizes="(max-width: 768px) 100vw, 768px" /></a><br />
Once there, go to <strong>Processor</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-08-scaled.jpg"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-08-768x1024.jpg" alt="" width="768" height="1024" class="aligncenter size-large wp-image-9655" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-08-768x1024.jpg 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-08-225x300.jpg 225w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-08-1152x1536.jpg 1152w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-08-1536x2048.jpg 1536w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-08-scaled.jpg 1920w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-08-1170x1560.jpg 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-08-585x780.jpg 585w" sizes="(max-width: 768px) 100vw, 768px" /></a><br />
Once there, change the number of <strong>Active Efficient Cores</strong> to 0.<br />
In addition, when you install ESXi 8 and when you access the GUI, you&#8217;ll see a nagging warning that TPM cannot be contacted or something similar. No matter how many times you acknowledge this warning it keeps coming back. So, while you in the BIOS, go to <strong>Security </strong>tab, then <strong>Security Features</strong> and uncheck <strong>Intel Platform Trust Technology</strong>.<br />
Save the settings with <strong>F10</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-09-scaled.jpg"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-09-768x1024.jpg" alt="" width="768" height="1024" class="aligncenter size-large wp-image-9656" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-09-768x1024.jpg 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-09-225x300.jpg 225w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-09-1152x1536.jpg 1152w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-09-1536x2048.jpg 1536w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-09-scaled.jpg 1920w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-09-1170x1560.jpg 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-09-585x780.jpg 585w" sizes="(max-width: 768px) 100vw, 768px" /></a></p>
<h1>Install ESXi 8</h1>
<p>At this point, reboot and boot from ESXi ISO USB. Check this guy for more info (<a href="https://williamlam.com/2023/03/esxi-on-intel-nuc-13-pro-arena-canyon.html" rel="noopener" target="_blank">link</a> and <a href="https://williamlam.com/2023/03/how-to-disable-the-efficiency-cores-e-cores-on-an-intel-nuc.html" rel="noopener" target="_blank">link</a>).<br />
I have a <a href="https://www.vmug.com/membership/vmug-advantage-membership/" rel="noopener" target="_blank">VMUG Advantage</a> subscription so I can freely download all VMWare software from <a href="https://vmugadvantage.onthehub.com/WebStore/Security/Signin.aspx?rurl=%2fWebStore%2fProductsByMajorVersionList.aspx" rel="noopener" target="_blank">here</a>. As long as you pay the yearly fee, you can have the licenses and software indefinitely.<br />
Choose where to install the ESXi (Samsung SSD).<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-10.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-10-1024x447.png" alt="" width="1024" height="447" class="aligncenter size-large wp-image-9657" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-10-1024x447.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-10-300x131.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-10-768x335.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-10-1536x671.png 1536w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-10-2048x895.png 2048w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-10-1920x839.png 1920w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-10-1170x511.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-10-585x256.png 585w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
Choose a root password.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-11.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-11-1024x345.png" alt="" width="1024" height="345" class="aligncenter size-large wp-image-9658" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-11-1024x345.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-11-300x101.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-11-768x258.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-11-1536x517.png 1536w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-11-1170x394.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-11-585x197.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-11.png 1896w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
Remove the USB stick and reboot when the installation is over and you&#8217;ll see this screen after.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-12.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-12-1024x559.png" alt="" width="1024" height="559" class="aligncenter size-large wp-image-9659" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-12-1024x559.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-12-300x164.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-12-768x419.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-12-1536x838.png 1536w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-12-1170x639.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-12-585x319.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-12.png 1810w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
This is my DHCP assigned address, so just change it to a static IP providing DNS and the default gateway. Then, change your FQDN as well. In my case I named my box as esxi1.homelab.local.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-13.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-13-1024x447.png" alt="" width="1024" height="447" class="aligncenter size-large wp-image-9660" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-13-1024x447.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-13-300x131.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-13-768x335.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-13-1536x670.png 1536w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-13-1170x511.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-13-585x255.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-13.png 1700w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
At this point you have a functioning ESXi server. Open up a browser, go to the ESXi IP and log with root and the password you specified.<br />
If you have a license, add it now by going to <strong>Manage</strong> (upper left corner), then <strong>Licensing</strong> tab and click <strong>Assign license</strong> or skip this part and use the evaluation mode.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-14.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-14-1024x471.png" alt="" width="1024" height="471" class="aligncenter size-large wp-image-9662" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-14-1024x471.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-14-300x138.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-14-768x353.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-14-1170x538.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-14-585x269.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-14.png 1440w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
<em>Optional</em>: Click on <strong>Storage</strong> then <strong>datastore1</strong>, <strong>Actions</strong> from the menu and rename the datastore. In my case I&#8217;ll use <strong>ESX1-LOCAL</strong>.</p>
<h1>Install vCenter 8.0 appliance</h1>
<p>Now, we can install vCenter. Mount the vCenter ISO image, go to <strong>vcsa-ui-installer</strong> folder and choose the OS (win32, mac, lin64). Run the installer and click <strong>Install </strong>icon.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-15.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-15-1024x707.png" alt="" width="1024" height="707" class="aligncenter size-large wp-image-9665" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-15-1024x707.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-15-300x207.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-15-768x530.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-15-1170x808.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-15-585x404.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-15.png 1525w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
Click <strong>Next </strong>and <strong>Accept </strong>the legal terms. Then enter the IP address or FQDN if you have your DNS configured for the ESXi server you just installed. Specify the root password too.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-16.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-16-1024x528.png" alt="" width="1024" height="528" class="aligncenter size-large wp-image-9666" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-16-1024x528.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-16-300x155.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-16-768x396.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-16-1170x603.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-16-585x302.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-16.png 1492w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
Name the vCenter and specify the vCenter root password. This is not the password that you will use to log to vCenter. This is a password for the appliance itself. You&#8217;ll need this only if you have to troubleshoot the appliance or enable/disable SSH on the appliance.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-17.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-17-1024x398.png" alt="" width="1024" height="398" class="aligncenter size-large wp-image-9667" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-17-1024x398.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-17-300x117.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-17-768x299.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-17-1170x455.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-17-585x228.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-17.png 1483w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
Choose deployment size, for me the smallest size is acceptable. After all, I plan to use this primarily for Kubernetes.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-18.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-18-1024x658.png" alt="" width="1024" height="658" class="aligncenter size-large wp-image-9668" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-18-1024x658.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-18-300x193.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-18-768x493.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-18-1170x752.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-18-585x376.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-18.png 1510w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
Choose the datastore.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-19.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-19-1024x682.png" alt="" width="1024" height="682" class="aligncenter size-large wp-image-9669" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-19-1024x682.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-19-300x200.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-19-768x511.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-19-1170x779.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-19-585x389.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-19-263x175.png 263w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-19.png 1528w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
Configure network settings, IP, gateway, DNS, FQDN&#8230;<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-20.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-20-1024x809.png" alt="" width="1024" height="809" class="aligncenter size-large wp-image-9670" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-20-1024x809.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-20-300x237.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-20-768x607.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-20-1170x924.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-20-585x462.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-20.png 1513w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
Confirm and click <strong>Finish</strong>. After some time, you&#8217;ll get a prompt to configure vCenter. I chose to use NTP and sync with some public NTP servers. Use whatever is closest to you.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-21.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-21-1024x480.png" alt="" width="1024" height="480" class="aligncenter size-large wp-image-9674" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-21-1024x480.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-21-300x141.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-21-768x360.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-21-1536x721.png 1536w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-21-1170x549.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-21-585x274.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-21.png 1543w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
I&#8217;ll create a new SSO domain and I&#8217;ll use the defaults. I just have to provide a password.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-23.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-23-1024x733.png" alt="" width="1024" height="733" class="aligncenter size-large wp-image-9675" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-23-1024x733.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-23-300x215.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-23-768x550.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-23-1536x1100.png 1536w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-23-1170x838.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-23-585x419.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-23.png 1543w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
Once vCenter is deployed go to the FQDN or the IP from a browser. Your username is no longer root, it&#8217;s <strong>administrator@vspehere.local</strong> and your password is the one you specified when you installed vCenter SSO in the previous step. Enter the license by going to <strong>Administration | Licenses </strong>from the left.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-24.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-24-1024x467.png" alt="" width="1024" height="467" class="aligncenter size-large wp-image-9679" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-24-1024x467.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-24-300x137.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-24-768x350.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-24-1170x534.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-24-585x267.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-24.png 1311w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
Once you enter the license from the <strong>Licenses </strong>tab, go to <strong>Assets </strong>tab and click <strong>Assign License</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-25.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-25-1024x625.png" alt="" width="1024" height="625" class="aligncenter size-large wp-image-9680" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-25-1024x625.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-25-300x183.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-25-768x468.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-25-1170x714.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-25-585x357.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-25.png 1441w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
Go to <strong>Inventory </strong>from the hamburger menu on the left, right-click the vCenter IP or FQDN and choose <strong>New Datacenter</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-26.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-26.png" alt="" width="640" height="742" class="aligncenter size-full wp-image-9681" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-26.png 640w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-26-259x300.png 259w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-26-585x678.png 585w" sizes="(max-width: 640px) 100vw, 640px" /></a><br />
Then right-click on the newly created datacenter and choose <strong>New Cluster</strong>.<br />
Same thing again, right-click the cluster and choose <strong>Add Hosts</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-27.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-27.png" alt="" width="829" height="516" class="aligncenter size-full wp-image-9682" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-27.png 829w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-27-300x187.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-27-768x478.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-27-585x364.png 585w" sizes="(max-width: 829px) 100vw, 829px" /></a><br />
Specify the IP or FQDN and the root password when you installed ESXi initially.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-28.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-28-1024x285.png" alt="" width="1024" height="285" class="aligncenter size-large wp-image-9683" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-28-1024x285.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-28-300x84.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-28-768x214.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-28-1536x428.png 1536w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-28-1170x326.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-28-585x163.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-28.png 1749w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></p>
<h1>Optional: iSCSI</h1>
<p>Click on the ESXi hosts, then <strong>Configure </strong>tab, click <strong>Add Software Adapter</strong> and then <strong>Add iSCSI adapter</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-29.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-29-1024x391.png" alt="" width="1024" height="391" class="aligncenter size-large wp-image-9685" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-29-1024x391.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-29-300x115.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-29-768x294.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-29-1170x447.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-29-585x224.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-29.png 1444w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
In my case, I have to use <strong>static discovery</strong> so click on that tab and then <strong>Add</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-30.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-30-1024x493.png" alt="" width="1024" height="493" class="aligncenter size-large wp-image-9686" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-30-1024x493.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-30-300x144.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-30-768x370.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-30-1170x563.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-30-585x282.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-30.png 1230w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
Enter the iSCSI IP and the target name.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-31.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-31.png" alt="" width="862" height="601" class="aligncenter size-full wp-image-9687" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-31.png 862w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-31-300x209.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-31-768x535.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-31-585x408.png 585w" sizes="(max-width: 862px) 100vw, 862px" /></a><br />
Finally, click on <strong>Rescan storage</strong>in the menu above. If you need to provide your initiator, this is where you can find it under iSCSI Name (iqn.1998&#8212;_.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2023/12/P168-32.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2023/12/P168-32-1024x789.png" alt="" width="1024" height="789" class="aligncenter size-large wp-image-9688" srcset="https://blog.andreev.it/wp-content/uploads/2023/12/P168-32-1024x789.png 1024w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-32-300x231.png 300w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-32-768x592.png 768w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-32-1170x901.png 1170w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-32-585x451.png 585w, https://blog.andreev.it/wp-content/uploads/2023/12/P168-32.png 1189w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><br />
To learn how you can install Kubernetes on your NUC and how to use k8s Load Balancing see the links from my blog <a href="https://blog.andreev.it/2023/10/install-kubernetes-with-cri-o-and-cilium-on-rocky-linux-9/" rel="noopener" target="_blank">here </a>and <a href="https://blog.andreev.it/2023/10/install-metallb-on-kubernetes-cluster-running-on-vmware-vms-or-bare-metal-server/" rel="noopener" target="_blank">here</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2023/12/install-esxi-8-on-intel-nuc-13/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ESX/ESXi, AWS: Backup VMs in vCenter to AWS S3</title>
		<link>https://blog.andreev.it/2018/06/129-vcenter-aws-backup-vms-in-vcenter-to-aws-s3/</link>
					<comments>https://blog.andreev.it/2018/06/129-vcenter-aws-backup-vms-in-vcenter-to-aws-s3/#respond</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Sat, 30 Jun 2018 19:16:18 +0000</pubDate>
				<category><![CDATA[AWS]]></category>
		<category><![CDATA[ESX/ESXi]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[S3]]></category>
		<category><![CDATA[vCenter]]></category>
		<guid isPermaLink="false">http://blog.iandreev.com/?p=3866</guid>

					<description><![CDATA[In my home lab, I run vCenter 6.7 with several ESXi hosts and since&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p>In my home lab, I run vCenter 6.7 with several ESXi hosts and since I built the lab I never did any backups.<br />
Now that my VMs are not test VMs and they became fairly important, I&#8217;ve decided to take care of the backups.<br />
Initially, I was thinking of using the Veeam Free Backup, but this program can&#8217;t do any schedules in the free version. Then I decided to play with OVF Tool, but I was having multiple issues with this tool and logging with a domain account. So, finally, I used PowerCLI and AWS CLI.<br />
The idea is to create a OVA export of each VM and then upload it to an S3 bucket. The source is well commented, so you shouldn&#8217;t have any issues in the script&#8217;s logic.</p>
<pre class="brush: bash; title: ; notranslate">
######################################################################################################
# vCenter2AWS v0.1
# K.Andreev - 06/30/2018
# Description:  Creates an OVA backup of all or selected vCenter VMs 
#				and uploads them to a bucket in AWS (optional)
# Prerequisites: PowerCLI, AWS CLI (configured)
# NOTE: The VM being backed up will be shut down and powered up when the OVA file is complete
# 		If using PowerCLI 10.x execute this line once
# 			Set-PowerCLIConfiguration -InvalidCertificateAction Ignore
######################################################################################################
# Function for logging
Function LogWrite {
   Param (&#x5B;string]$logstring)
   Add-content $LogFile -value ((Get-Date -format &quot;&#x5B;dd/MMM/yyyy:HH:mm:ss] &quot;).ToString() + $logstring)
}
######################################################################################################
########## IMPORTANT PARAMETERS. DO NOT IGNORE. MODIFY TO SUIT YOUR NEEDS. ###########################
######################################################################################################
# vCenter hostname
$VCenter = &quot;vcenter.domain.local&quot;
# vCenter username
$Username = &quot;myusername@domain.local&quot;
# vCenter password
$Password = &quot;SecretPassword&quot;
# Destination for the OVA backup files, make sure you have trailing \ at the end of this string
$Destination = &quot;D:\VMs\&quot;
# Exclude the following VMs from backups
$Exclude = @(&quot;VMware vCenter Server Appliance&quot;)
# Name of the S3 bucket (make sure it exists, lower case only, starts with s3://)
$S3Bucket = &quot;s3://vspherebackups&quot;
# Do you want to upload to S3
$Upload = $true
# Specify if the OVA file contains a time stamp 
# e.g. vmname.YYYYMMDDHHmm.ova ($true) or vmname.ova ($fasle)
$TimeStamp = $true
# Do you want the OVA files to be deleted after upload to S3
$DeleteOVA = $true
# Log file path and name
$LogFile = &quot;D:\VMs\vcenter2aws.log&quot;
######################################################################################################
################### EXPORT VMs AS OVA FILES ##########################################################
######################################################################################################
# Connect to vCenter
$Server = Connect-VIServer $VCenter -User $Username -Password $Password
LogWrite (&quot;Connected to &quot; + $Server)
# Get all VMs
$VMs = Get-VM
# Loop through each of the VMs
Foreach ($VM in $VMs) {
# Get the name of each VMs	
$Name = $VM.Name
    # Skip the backup for the VMs that are in the array variable defined above
    if ($Exclude.Contains($Name)) {
        LogWrite (&quot;Backup skipped for &quot;+ $Name)
        Continue
    }
    # Stop the VM in order to take a backup
    Stop-VM -VM $Name -Confirm:$false
    LogWrite (&quot;Stopping VM &quot; + $Name)
    # Calculates the time stamp that will become part of the name
    if ($TimeStamp) {
        $TimeStampName = Get-Date -UFormat &quot;%Y%m%d%H%M&quot;
        $TimeStampName = &quot;.&quot; + $TimeStampName
    } else
    # otherwise the time stamp will be blank
    {
        $TimeStampName = &quot;&quot;
    }
    LogWrite (&quot;Backup starts for &quot; + $Name)
    # Exports the VM as OVA file, overwrites if there is a same file at the destination
	Get-VM -Name $Name | Export-VApp -Destination ($Destination + $Name + $TimeStampName + &quot;.ova&quot;) -Format Ova -Force:$true
    LogWrite (&quot;Backup ends for &quot; + $Name)
    # Once the export completes, power up the VM
	Start-VM -VM $Name -RunAsync
    LogWrite (&quot;Starting VM &quot; + $Name)
}
# Disconnect from vCenter
Disconnect-VIServer -Server $Server -Confirm:$false
LogWrite (&quot;Disconnected from &quot; + $Server)
######################################################################################################
################################ UPLOAD TO AWS #######################################################
######################################################################################################
# Exit if upload is not needed
if (!$Upload) {
    LogWrite &quot;Upload to S3 skipped, exiting...&quot;
    exit
}
LogWrite (&quot;Upload to S3 bucket &quot; + $S3Bucket + &quot; starts&quot;)
# Use AWS CLI command to sync the destination folder and S3. 
aws s3 sync $Destination $S3Bucket
LogWrite (&quot;Upload to S3 bucket &quot; + $S3Bucket + &quot; ends&quot;)
######################################################################################################
################################ DELETE THE OVA FILES ################################################
######################################################################################################
# Exit if delete is not needed
if (!$DeleteOVA) {
    LogWrite &quot;Deleting OVA files skipped, exiting...&quot;
    exit
}
Get-ChildItem $Destination -Include *.ova -Recurse | Foreach ($_) {Remove-Item $_.Fullname}
LogWrite (&quot;Deleting OVA files from &quot; + $Destination)
LogWrite &quot;Script completed...Have a nice day!&quot;
</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2018/06/129-vcenter-aws-backup-vms-in-vcenter-to-aws-s3/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>AWS: Migrate VMs from VMware vCenter to Amazon AWS using AWS Connector</title>
		<link>https://blog.andreev.it/2017/09/111-aws-migrate-vms-vmware-vcenter-amazon-aws-using-aws-connector/</link>
					<comments>https://blog.andreev.it/2017/09/111-aws-migrate-vms-vmware-vcenter-amazon-aws-using-aws-connector/#respond</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Mon, 11 Sep 2017 00:10:55 +0000</pubDate>
				<category><![CDATA[AWS]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[ESX/ESXi]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[vCenter]]></category>
		<guid isPermaLink="false">http://blog.iandreev.com/?p=3140</guid>

					<description><![CDATA[Recently, I wrote a blog post about migrating VMs from VMware vCenter to AWS&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p>Recently, I wrote a <a href="https://blog.andreev.it/?p=3065" target="_blank" rel="noopener noreferrer">blog post</a> about migrating VMs from VMware vCenter to AWS using basic export OVA/OVF files. Amazon made a connector that ties your vCenter to AWS so the export is kind of simplified, but the configuration is not. While using the export as OVA/OVF requires you to change the NIC from vmxnet* to e1000 and changing the static IP of your server to DHCP, with AWS Connector you can leave everything as is. Also, the export as OVA/OVF requires your VM to be powered off, while with AWS Connector you can migrate your VMs while they are powered on (using snaps). I also found that AWS Connector is slower than plain export as OVA/OVF. In this post I&#8217;ll show you how to configure the AWS Connector. </p>
<div style="border:1px solid red; padding:16px;">
<p style="text-align:center;"><strong><span style="color:#800000;">IMPORTANT</span> </strong></p>
<p style="text-align:center;"><b>At time of this writing (mid-September 2017), vCenter 6.5 and 7.0 are not supported.</b></p>
<p style="text-align:center;"><b>Make sure you have RDP/SSH enabled on your servers before the migration.</b></p>
</div>
<p>AWS Connector is not just about VM migrations. It has some other useful functions. Check this <a href="https://aws.amazon.com/ec2/vcenter-portal/" target="_blank" rel="noopener noreferrer">web page</a> for more information and this <a href="http://docs.aws.amazon.com/amp/latest/userguide/amp-ug.pdf" target="_blank" rel="noopener noreferrer">PDF </a>for the install/user guide. So, head to <a href="https://aws.amazon.com/ec2/vcenter-portal/" target="_blank" rel="noopener noreferrer">this </a>page first and scroll all the way down to the bottom.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-01.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-01.png" alt="" width="372" height="378" class="aligncenter size-full wp-image-7669" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-01.png 372w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-01-295x300.png 295w" sizes="(max-width: 372px) 100vw, 372px" /></a><br />
Step 1, Download the AWS Connector. Step 2, click on Setup AWS Management Portal for vCenter. Log in with your AWS account. Click on <strong>Get Started Now</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-02.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-02.png" alt="" width="907" height="305" class="aligncenter size-full wp-image-7670" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-02.png 907w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-02-300x101.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-02-768x258.png 768w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-02-585x197.png 585w" sizes="(max-width: 907px) 100vw, 907px" /></a><br />
I will use the first option and most likely you&#8217;ll do. Option 2 is if you have a SSO (Single Sign-On) to AWS.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-03.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-03.png" alt="" width="1241" height="387" class="aligncenter size-full wp-image-7671" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-03.png 1241w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-03-300x94.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-03-1024x319.png 1024w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-03-768x239.png 768w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-03-1170x365.png 1170w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-03-585x182.png 585w" sizes="(max-width: 1241px) 100vw, 1241px" /></a><br />
Make sure you have some IAM users defined, otherwise you&#8217;ll receive this error. As a matter of fact, you&#8217;ll want a separate IAM user for this. This user acts as a proxy between AWS and your vCenter.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-04.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-04.png" alt="" width="473" height="44" class="aligncenter size-full wp-image-7672" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-04.png 473w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-04-300x28.png 300w" sizes="(max-width: 473px) 100vw, 473px" /></a><br />
In my case, I&#8217;ve created a new IAM user called <strong>vCenter</strong>. Check <strong>Programmatic Access</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-05.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-05.png" alt="" width="1000" height="435" class="aligncenter size-full wp-image-7673" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-05.png 1000w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-05-300x131.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-05-768x334.png 768w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-05-585x254.png 585w" sizes="(max-width: 1000px) 100vw, 1000px" /></a><br />
On the next screen, click on the <strong>Attach existing policies directly</strong> and in the <strong>Filter: Policy type</strong>, start typing <strong>AWSConnector</strong>. This is an AWS managed policy. Click on the check mark and proceed.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-06.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-06.png" alt="" width="1141" height="533" class="aligncenter size-full wp-image-7674" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-06.png 1141w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-06-300x140.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-06-1024x478.png 1024w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-06-768x359.png 768w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-06-585x273.png 585w" sizes="(max-width: 1141px) 100vw, 1141px" /></a><br />
Make sure you download your credentials for this IAM user. They&#8217;ll be saved as <strong>credentials.csv</strong> file on your computer.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-07.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-07.png" alt="" width="1139" height="348" class="aligncenter size-full wp-image-7675" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-07.png 1139w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-07-300x92.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-07-1024x313.png 1024w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-07-768x235.png 768w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-07-585x179.png 585w" sizes="(max-width: 1139px) 100vw, 1139px" /></a><br />
Go back to your first tab (or the initial URL) and hit refresh. Type the username vCenter and click on the check mark that you agree.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-08.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-08.png" alt="" width="1018" height="451" class="aligncenter size-full wp-image-7676" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-08.png 1018w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-08-300x133.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-08-768x340.png 768w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-08-585x259.png 585w" sizes="(max-width: 1018px) 100vw, 1018px" /></a><br />
The next step tells you to add the admins for AWS Management Portal. Make sure that these accounts are admins in vCenter. In my case, my vCenter is joined to the domain and I am using my own domain account to manage vCenter. You can create a separate user for this, but make sure it&#8217;s a vCenter admin.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-09.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-09.png" alt="" width="1039" height="546" class="aligncenter size-full wp-image-7677" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-09.png 1039w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-09-300x158.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-09-1024x538.png 1024w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-09-768x404.png 768w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-09-585x307.png 585w" sizes="(max-width: 1039px) 100vw, 1039px" /></a><br />
Now, this part is very important. I&#8217;ve spent hours troubleshooting this. It was right in front of my eyes, but I didn&#8217;t pay attention.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-10.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-10.png" alt="" width="525" height="142" class="aligncenter size-full wp-image-7678" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-10.png 525w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-10-300x81.png 300w" sizes="(max-width: 525px) 100vw, 525px" /></a><br />
The easiest way is to open a command prompt from your desktop and type:</p>
<pre class="brush: bash; title: ; notranslate">
set | find &quot;USERDOMAIN&quot;
</pre>
<p>My domain is not andreev. It is actually ANDREEV, so I had to correct the entry.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-11.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-11.png" alt="" width="506" height="335" class="aligncenter size-full wp-image-7679" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-11.png 506w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-11-300x199.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-11-263x175.png 263w" sizes="(max-width: 506px) 100vw, 506px" /></a><br />
The last entry will ask you to create an AMP-Connector Key. Just type some name.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-12.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-12.png" alt="" width="1021" height="282" class="aligncenter size-full wp-image-7680" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-12.png 1021w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-12-300x83.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-12-768x212.png 768w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-12-585x162.png 585w" sizes="(max-width: 1021px) 100vw, 1021px" /></a><br />
At the end, you&#8217;ll have to download the configuration file. It&#8217;s a text file with some key text in it.<br />
So, you have two files now, one with the credentials for the proxy user and one with the configuration key. After you are done with this, you&#8217;ll land up on this page. You can expand the settings and make sure everything looks OK. You can ignore the <strong>Configure Instance Export</strong> menu. That&#8217;s for S3 exports.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-13.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-13.png" alt="" width="830" height="456" class="aligncenter size-full wp-image-7681" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-13.png 830w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-13-300x165.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-13-768x422.png 768w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-13-585x321.png 585w" sizes="(max-width: 830px) 100vw, 830px" /></a><br />
Now, you will need another proxy user, but this time on the vCenter side. It can be a local vCenter user or in my case, I prefer to have an AD account. So, I&#8217;ve created an AD account called <strong>awsconnector</strong>. No special rights needed and don&#8217;t add this account to vCenter. Just create a plain AD account as a <strong>Domain User</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-14.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-14.png" alt="" width="443" height="379" class="aligncenter size-full wp-image-7682" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-14.png 443w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-14-300x257.png 300w" sizes="(max-width: 443px) 100vw, 443px" /></a><br />
At this point, you should be OK on the AWS side. Head back to your vCenter and deploy the OVA file that you&#8217;ve downloaded.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-15.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-15.png" alt="" width="418" height="178" class="aligncenter size-full wp-image-7683" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-15.png 418w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-15-300x128.png 300w" sizes="(max-width: 418px) 100vw, 418px" /></a><br />
Once the appliance is provisioned, power it up. If you have a DHCP on your network and you are fine with the DHCP assigned IP on this VM, you don&#8217;t have to do anything. But, I prefer to have a static IP so open the console of this VM and log as <strong>ec2-user</strong> with <strong>ec2pass </strong>as a password. Type <strong>sudo setup.rb</strong>. Type <strong>ec2pass </strong>for password. You should see this menu. Choose <strong>option 2</strong> to assign a static IP if you need. If you are OK with a DHCP, it&#8217;s fine. It&#8217;s up to you.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-16.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-16.png" alt="" width="869" height="328" class="aligncenter size-full wp-image-7684" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-16.png 869w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-16-300x113.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-16-768x290.png 768w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-16-585x221.png 585w" sizes="(max-width: 869px) 100vw, 869px" /></a><br />
Once you have the AWS Connector on the network go to <strong>https://aws_connector_IP</strong> address. Make sure to use https. Use your vCenter admin to log in.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-17.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-17.png" alt="" width="485" height="343" class="aligncenter size-full wp-image-7685" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-17.png 485w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-17-300x212.png 300w" sizes="(max-width: 485px) 100vw, 485px" /></a><br />
Click <strong>Trust </strong>when you get a certificate warning.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-18.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-18.png" alt="" width="494" height="504" class="aligncenter size-full wp-image-7686" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-18.png 494w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-18-294x300.png 294w" sizes="(max-width: 494px) 100vw, 494px" /></a><br />
You&#8217;ll be prompted to change the web front-end password. There is no user name for this next time you log to your AWS Connector.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-19.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-19.png" alt="" width="419" height="368" class="aligncenter size-full wp-image-7687" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-19.png 419w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-19-300x263.png 300w" sizes="(max-width: 419px) 100vw, 419px" /></a><br />
Once you log in, this will pop up.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-20.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-20.png" alt="" width="763" height="531" class="aligncenter size-full wp-image-7688" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-20.png 763w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-20-300x209.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-20-585x407.png 585w" sizes="(max-width: 763px) 100vw, 763px" /></a><br />
Click <strong>Upload the configuration file</strong>, select the file that you&#8217;ve downloaded from AWS. It&#8217;s called <strong>AMP_Setup_Configuration.txt</strong> and click <strong>Next</strong>. Again, log with your vCenter admin account.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-21.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-21.png" alt="" width="770" height="534" class="aligncenter size-full wp-image-7689" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-21.png 770w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-21-300x208.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-21-768x533.png 768w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-21-585x406.png 585w" sizes="(max-width: 770px) 100vw, 770px" /></a><br />
Click <strong>Trust</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-22.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-22.png" alt="" width="506" height="501" class="aligncenter size-full wp-image-7690" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-22.png 506w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-22-300x297.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-22-150x150.png 150w" sizes="(max-width: 506px) 100vw, 506px" /></a><br />
Now, enter that AD account that you&#8217;ve just created.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-23.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-23.png" alt="" width="771" height="544" class="aligncenter size-full wp-image-7691" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-23.png 771w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-23-300x212.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-23-768x542.png 768w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-23-585x413.png 585w" sizes="(max-width: 771px) 100vw, 771px" /></a><br />
Use the credentials from <strong>credentials.csv</strong> file to enter the username and password. The <strong>Trust Role ARN</strong> field should be automatically populated.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-24.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-24.png" alt="" width="786" height="530" class="aligncenter size-full wp-image-7692" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-24.png 786w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-24-300x202.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-24-768x518.png 768w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-24-585x394.png 585w" sizes="(max-width: 786px) 100vw, 786px" /></a><br />
Click on <strong>I agree to install the vCenter SSL certificates</strong>&#8230; otherwise you won&#8217;t be able to proceed and click <strong>Register</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-25.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-25.png" alt="" width="772" height="545" class="aligncenter size-full wp-image-7693" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-25.png 772w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-25-300x212.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-25-768x542.png 768w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-25-585x413.png 585w" sizes="(max-width: 772px) 100vw, 772px" /></a><br />
You should get this pop-up which means you are good.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-26.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-26.png" alt="" width="518" height="158" class="aligncenter size-full wp-image-7694" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-26.png 518w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-26-300x92.png 300w" sizes="(max-width: 518px) 100vw, 518px" /></a><br />
Open the vCenter client and from the <strong>Plug-ins</strong> menu click <strong>Manage Plug-ins</strong>&#8230;The AWS Connector should be enabled.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-27.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-27.png" alt="" width="758" height="162" class="aligncenter size-full wp-image-7695" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-27.png 758w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-27-300x64.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-27-585x125.png 585w" sizes="(max-width: 758px) 100vw, 758px" /></a><br />
In the web client it should look like this.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-28.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-28.png" alt="" width="530" height="366" class="aligncenter size-full wp-image-7696" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-28.png 530w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-28-300x207.png 300w" sizes="(max-width: 530px) 100vw, 530px" /></a><br />
Now, it&#8217;s time to get some action. Pick a VM that you want to migrate to AWS. Did I say that you need RDP/SSH enabled?<br />
Right-click on this VM and choose <strong>Migrate to EC2</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-29.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-29.png" alt="" width="325" height="404" class="aligncenter size-full wp-image-7697" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-29.png 325w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-29-241x300.png 241w" sizes="(max-width: 325px) 100vw, 325px" /></a><br />
You&#8217;ll get this error. AWS Connector is not yet configured.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-30.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-30.png" alt="" width="840" height="125" class="aligncenter size-full wp-image-7698" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-30.png 840w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-30-300x45.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-30-768x114.png 768w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-30-585x87.png 585w" sizes="(max-width: 840px) 100vw, 840px" /></a><br />
All right, so go to <strong>Home -> AWS Management Portal</strong> in vCenter and add the preferred region.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-31.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-31.png" alt="" width="403" height="452" class="aligncenter size-full wp-image-7699" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-31.png 403w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-31-267x300.png 267w" sizes="(max-width: 403px) 100vw, 403px" /></a><br />
Click on <strong>Create an environment</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-32.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-32.png" alt="" width="494" height="479" class="aligncenter size-full wp-image-7700" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-32.png 494w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-32-300x291.png 300w" sizes="(max-width: 494px) 100vw, 494px" /></a><br />
Select your VPC and choose all subnets.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-33.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-33.png" alt="" width="724" height="538" class="aligncenter size-full wp-image-7701" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-33.png 724w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-33-300x223.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-33-585x435.png 585w" sizes="(max-width: 724px) 100vw, 724px" /></a><br />
Go back to your VM and try to migrate it to EC2.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-34.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-34.png" alt="" width="713" height="607" class="aligncenter size-full wp-image-7702" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-34.png 713w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-34-300x255.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-34-585x498.png 585w" sizes="(max-width: 713px) 100vw, 713px" /></a><br />
Oh, snap!<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-35.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-35.png" alt="" width="544" height="183" class="aligncenter size-full wp-image-7703" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-35.png 544w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-35-300x101.png 300w" sizes="(max-width: 544px) 100vw, 544px" /></a><br />
Go to vCenter roles, and follow up the instructions from above.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-36.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-36.png" alt="" width="669" height="677" class="aligncenter size-full wp-image-7704" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-36.png 669w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-36-296x300.png 296w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-36-585x592.png 585w" sizes="(max-width: 669px) 100vw, 669px" /></a><br />
Then again, go back to your VM, right-click and choose <strong>Migrate to EC2</strong>. You&#8217;ll get this warning. It pretty much tells you that while migrating the VM will be slow.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-37.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-37.png" alt="" width="475" height="129" class="aligncenter size-full wp-image-7705" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-37.png 475w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-37-300x81.png 300w" sizes="(max-width: 475px) 100vw, 475px" /></a><br />
Once the migration starts you&#8217;ll see this.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-38.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-38.png" alt="" width="678" height="249" class="aligncenter size-full wp-image-7706" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-38.png 678w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-38-300x110.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-38-585x215.png 585w" sizes="(max-width: 678px) 100vw, 678px" /></a><br />
Do that. Go to <strong>Home -> AWS Management Portal -> Dashboard</strong> in vCenter. You&#8217;ll see the progress. If you scroll to the right you can actually see how much is uploaded. AWS is uploading the snap, so my VM has a 30GB disk (thick provisioned), but it was a plain vanilla OS with nothing installed except a text file on the desktop. So the actual size for upload is 4GB.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-39.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-39.png" alt="" width="1149" height="826" class="aligncenter size-full wp-image-7707" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-39.png 1149w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-39-300x216.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-39-1024x736.png 1024w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-39-768x552.png 768w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-39-585x421.png 585w" sizes="(max-width: 1149px) 100vw, 1149px" /></a><br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-40.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-40.png" alt="" width="909" height="40" class="aligncenter size-full wp-image-7708" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-40.png 909w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-40-300x13.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-40-768x34.png 768w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-40-585x26.png 585w" sizes="(max-width: 909px) 100vw, 909px" /></a><br />
Once your migration completes, you can find your instance/VM under <strong>IMAGES | AMIs</strong> in AWS console.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-41.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-41.png" alt="" width="594" height="34" class="aligncenter size-full wp-image-7709" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-41.png 594w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-41-300x17.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-41-585x34.png 585w" sizes="(max-width: 594px) 100vw, 594px" /></a><br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-42.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-42.png" alt="" width="578" height="211" class="aligncenter size-full wp-image-7710" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-42.png 578w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-42-300x110.png 300w" sizes="(max-width: 578px) 100vw, 578px" /></a><br />
Right-click on the AMI, choose <strong>Launch</strong>, follow the prompts and you should be all set. You&#8217;ll have to specify a key, but you can use your local admin credentials to log in.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/09/P089-43.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/09/P089-43.png" alt="" width="1231" height="233" class="aligncenter size-full wp-image-7711" srcset="https://blog.andreev.it/wp-content/uploads/2017/09/P089-43.png 1231w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-43-300x57.png 300w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-43-1024x194.png 1024w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-43-768x145.png 768w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-43-1170x221.png 1170w, https://blog.andreev.it/wp-content/uploads/2017/09/P089-43-585x111.png 585w" sizes="(max-width: 1231px) 100vw, 1231px" /></a></p>
<div style="border:1px solid red; padding:16px;">
<p style="text-align:center;"><strong><span style="color:#800000;">IMPORTANT</span> </strong></p>
<p style="text-align:center;"><b>Make sure you have all your licensing in place. If your on-prem VM uses KMS for licensing, the migrated instance in AWS will need access to your KMS server.</b></p>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2017/09/111-aws-migrate-vms-vmware-vcenter-amazon-aws-using-aws-connector/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>AWS: Migrate VMs from VMware vCenter to Amazon AWS</title>
		<link>https://blog.andreev.it/2017/07/108-aws-migrate-vms-vmware-vcenter-amazon-aws/</link>
					<comments>https://blog.andreev.it/2017/07/108-aws-migrate-vms-vmware-vcenter-amazon-aws/#respond</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Sat, 15 Jul 2017 22:07:43 +0000</pubDate>
				<category><![CDATA[AWS]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[ESX/ESXi]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[vCenter]]></category>
		<guid isPermaLink="false">http://blog.iandreev.com/?p=3065</guid>

					<description><![CDATA[I needed to move some VMs from my home lab (vCenter 5.5) to my&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p>I needed to move some VMs from my home lab (vCenter 5.5) to my Amazon AWS cloud account. This is what I did.<br />
First, you have to prepare the VM. If you have any vmxnet* network card, you have to delete it from the properties of the VM in vCenter. Second, make sure that you have RDP or SSH enabled on the VM and third, uninstall the VMware tools. Shut down the VM, add an E1000 NIC and power it up again. Make sure that the TCP/IP and DNS settings for the new NIC are set for DHCP. Verify that all these requirements apply and then shut down the VM again.<br />
In vCenter, select the VM for export, click on <strong>File | Export</strong> and then <strong>Export OVF</strong> template. Choose Single file (OVA).<br />
<a href="https://blog.andreev.it/wp-content/uploads/2017/07/P086-01.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2017/07/P086-01.png" alt="" width="606" height="439" class="aligncenter size-full wp-image-7647" srcset="https://blog.andreev.it/wp-content/uploads/2017/07/P086-01.png 606w, https://blog.andreev.it/wp-content/uploads/2017/07/P086-01-300x217.png 300w, https://blog.andreev.it/wp-content/uploads/2017/07/P086-01-585x424.png 585w" sizes="(max-width: 606px) 100vw, 606px" /></a><br />
Once the export is completed, you have to upload the OVA file to a S3 bucket. I created a new bucket for this, called <strong>uploadvmstuff </strong>with the default settings. You&#8217;ll have to pick a unique name for the bucket, but you probably know that. Upload your OVA file to S3. It might take a while depending how big the file is. </p>
<p>I am using my admin account in AWS to import the VM, but I still have to assign some policies. So, when the upload is complete, go to the command prompt or PowerShell on your desktop. Make sure you have AWS CLI installed. You can check my <a href="https://blog.andreev.it/?p=1905" target="_blank" rel="noopener noreferrer">other </a>blog post on how to do this. Very simple. </p>
<p>Create these three files in Notepad and save them on the desktop. The first file is called <strong>trust-policy.json</strong>. See this <a href="http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html#w2ab1b9c15b7" target="_blank" rel="noopener noreferrer">link </a>for more info. </p>
<pre class="brush: xml; title: ; notranslate">
{
   &quot;Version&quot;: &quot;2012-10-17&quot;,
   &quot;Statement&quot;: &#x5B;
      {
         &quot;Effect&quot;: &quot;Allow&quot;,
         &quot;Principal&quot;: { &quot;Service&quot;: &quot;vmie.amazonaws.com&quot; },
         &quot;Action&quot;: &quot;sts:AssumeRole&quot;,
         &quot;Condition&quot;: {
            &quot;StringEquals&quot;:{
               &quot;sts:Externalid&quot;: &quot;vmimport&quot;
            }
         }
      }
   ]
}
</pre>
<p>Execute this command from the command prompt. Make sure that you are in the same folder in the command prompt where you saved your files, e.g. <strong>cd c:\users\whatever\desktop</strong>. </p>
<pre class="brush: bash; title: ; notranslate">
aws iam create-role --role-name vmimport --assume-role-policy-document file://trust-policy.json
</pre>
<p>Create the 2nd file called <strong>role-policy.json</strong> so it looks like this. Replace the two occurrences of <strong>disk-image-file-bucket</strong> with your bucket name, in my case it was <strong>uploadvmstuff</strong>.</p>
<pre class="brush: xml; title: ; notranslate">
{
   &quot;Version&quot;: &quot;2012-10-17&quot;,
   &quot;Statement&quot;: &#x5B;
      {
         &quot;Effect&quot;: &quot;Allow&quot;,
         &quot;Action&quot;: &#x5B;
            &quot;s3:ListBucket&quot;,
            &quot;s3:GetBucketLocation&quot;
         ],
         &quot;Resource&quot;: &#x5B;
            &quot;arn:aws:s3:::disk-image-file-bucket&quot;
         ]
      },
      {
         &quot;Effect&quot;: &quot;Allow&quot;,
         &quot;Action&quot;: &#x5B;
            &quot;s3:GetObject&quot;
         ],
         &quot;Resource&quot;: &#x5B;
            &quot;arn:aws:s3:::disk-image-file-bucket/*&quot;
         ]
      },
      {
         &quot;Effect&quot;: &quot;Allow&quot;,
         &quot;Action&quot;:&#x5B;
            &quot;ec2:ModifySnapshotAttribute&quot;,
            &quot;ec2:CopySnapshot&quot;,
            &quot;ec2:RegisterImage&quot;,
            &quot;ec2:Describe*&quot;
         ],
         &quot;Resource&quot;: &quot;*&quot;
      }
   ]
}
</pre>
<p>Execute this command from the command prompt.</p>
<pre class="brush: bash; title: ; notranslate">
aws iam put-role-policy --role-name vmimport --policy-name vmimport --policy-document file://role-policy.json
</pre>
<p>The third file is called <strong>containers.json</strong> and it looks like this. Change the lines so it matches your settings. For <strong>Description </strong>use whatever you want, change the <strong>S3Bucket </strong>line and the <strong>S3Key</strong>. The <strong>S3Key </strong>is the name of the ova file that you&#8217;ve exported from vCenter. </p>
<pre class="brush: xml; title: ; notranslate">
&#x5B;
  {
    &quot;Description&quot;: &quot;Windows 2008R2 Import&quot;,
    &quot;Format&quot;: &quot;ova&quot;,
    &quot;UserBucket&quot;: {
        &quot;S3Bucket&quot;: &quot;uploadvmstuff&quot;,
        &quot;S3Key&quot;: &quot;nvm.ova&quot;
    }
}]
</pre>
<p>Now, you are ready to import the file from S3 to EC2. Execute this line from the command prompt.</p>
<pre class="brush: bash; title: ; notranslate">
aws ec2 import-image --description &quot;Windows 2008R2 VMDKs&quot; --license-type BYOL --disk-containers file://containers.json
</pre>
<p>You should get your prompt back after 2-3 seconds. But, this means that the import started, not that it finished. To check the status, execute this line.</p>
<pre class="brush: bash; title: ; notranslate">
aws ec2 describe-import-image-tasks
</pre>
<p>It takes some time, for my OVA file that was created from a 40GB disk and 3.7GB OVA file it took about 20-25 mins. You will see the <strong>Status </strong>change to completed once everything is OK. Make sure that your AWS CLI is configured to do the output in JSON so it&#8217;s easy to see. </p>
<p>Once completed, you will see your import in the AMI section of EC2. Go to EC2 section, click Launch New Instance and choose the AMI that you just created. Follow the standard prompts for the type of the instance, security groups, volumes, etc&#8230; and once your instance is launched you can RDP to it. You will use the same admin password as before to RDP.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2017/07/108-aws-migrate-vms-vmware-vcenter-amazon-aws/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PowerShell: CommVault report from vCenter</title>
		<link>https://blog.andreev.it/2016/06/90-windowspowershell-commvault-report-in-vcenter/</link>
					<comments>https://blog.andreev.it/2016/06/90-windowspowershell-commvault-report-in-vcenter/#respond</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Thu, 30 Jun 2016 15:34:58 +0000</pubDate>
				<category><![CDATA[ESX/ESXi]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[CommVault]]></category>
		<category><![CDATA[vCenter]]></category>
		<guid isPermaLink="false">http://blog.iandreev.com/?p=2603</guid>

					<description><![CDATA[Recently, we moved to CommVault for backing up VMs. We use a CommVault solution&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p>Recently, we moved to CommVault for backing up VMs. We use a CommVault solution that interacts with NetApp for taking snaps. Once the backup runs, it time-stamps the VM with the last backup taken. If you don&#8217;t need an e-mail in HTML format with the report, remove the lines from 103 to 113. Finally, remove the comment line # from line 57 if you want the report on the screen.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2016/06/P069-01.jpg"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2016/06/P069-01.jpg" alt="" width="360" height="170" class="aligncenter size-full wp-image-7488" srcset="https://blog.andreev.it/wp-content/uploads/2016/06/P069-01.jpg 360w, https://blog.andreev.it/wp-content/uploads/2016/06/P069-01-300x142.jpg 300w" sizes="(max-width: 360px) 100vw, 360px" /></a><br />
Based on this info, I made a script that loops through all clusters and VMs and dumps the report in a mail. You can remove lines 5 to 14 if you don&#8217;t want the script scheduled. </p>
<pre class="brush: powershell; title: ; notranslate">
# PowerCLI script that lists all VMs under clusters that start with USCORPROD*
# and prints the Last Backup attribute from CommVault
# If the difference between the run time of the script and the last backup is
# more than $HoursDifference, write the output with red color
Add-PSSnapin VMware.VimAutomation.Core
Add-PSSnapin VMware.VimAutomation.Vds
if(get-item HKLM:\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns\VMware.VimAutomation.Core){
	. ((get-item HKLM:\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns\VMware.VimAutomation.Core).GetValue(&quot;ApplicationBase&quot;)+&quot;\Scripts\Initialize-PowerCLIEnvironment.ps1&quot;)
}
else
{
	write-warning &quot;PowerCLI Path not found in registry, please set path to Initialize-PowerCLIEnvironment.ps1 manually. Is PowerCli aleady installed?&quot;
	. &quot;D:\Programs (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\Initialize-PowerCLIEnvironment.ps1&quot;
}

# Specify the vCenter server
$server = &quot;vcenter&quot;
# Specify the difference in hours to compare
$HoursDifferenceCompare = 24
# Cluster filter
$ClusterFilter = &quot;*&quot;
# Connect to vCenter
Connect-VIServer -Server $server -user domain\username -password vcpassword
# Initalize the main HTML content
$midHTML=&quot;&quot;
# Get each cluster that starts with $ClusterFilter and sort them. 
# Make sure only unique values are returned
ForEach ($Cluster in Get-Cluster $ClusterFilter | Sort -unique)
{
	# Get all the VMs per cluster
	$VMs = Get-Cluster $Cluster | Get-VM 
	# Loop each VM
	ForEach ($VM in $VMs)
	{
		# Get the last backup attribute
		$LastBackup = Get-VM $VM | Get-Annotation -CustomAttribute &quot;Last Backup&quot;
		# Parse the output, trinm the string
		$LastBackupTimeStamp = $LastBackup -replace &quot;Last Backup:&quot;
		# Get the date/time when the script started
		$StartDate=(Get-Date)
		# The end date is the Last Backup time for the VM
		# If the VM was never backed up, assume 01/01/70
		if ($LastBackupTimeStamp -eq '') {
			$EndDate = &#x5B;datetime]'January 1, 1970'
			$LastBackupTimeStamp = &quot;NEVER&quot;}
		else {
			$EndDate = &#x5B;datetime]$LastBackupTimeStamp 
			}
		# Calculate the difference
		$TimeSpan = New-TimeSpan -Start $StartDate -End $EndDate
		# It's a negative value, so get the absolute
		$DaysDifference = &#x5B;math]::abs($TimeSpan.Days)
		$HoursDifference = &#x5B;math]::abs($TimeSpan.Hours) + ($DaysDifference * 24)
		# Print the output
		if ($HoursDifference -gt $HoursDifferenceCompare) {
			# Remove for debugging if needed
			#Write-Host $Cluster &quot; &quot; $VM &quot; &quot; $LastBackupTimeStamp
			# Build the HTML
			$midHTML = $midHTML + '&lt;font color=&quot;red&quot;&gt;'
			$midHTML = $midHTML + &quot;&lt;p&gt;&quot; + $Cluster + &quot; &quot; + $VM.Name.PadRight(30,&quot;-&quot;) + &quot; &quot; + $LastBackupTimeStamp + &quot;&lt;/p&gt;&quot;
			$midHTML = $midHTML + &quot;&lt;/font&gt;&quot;
		} else {
			$midHTML = $midHTML + &quot;&lt;p&gt;&quot; + $Cluster + &quot; &quot; + $VM.Name.PadRight(30,&quot;-&quot;) + &quot; &quot; + $LastBackupTimeStamp + &quot;&lt;/p&gt;&quot;
		}
	}	
}

# Top HTML header
$topHTML = @&quot;
&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;
&lt;font face=&quot;Courier New, Courier, monospace&quot;&gt;
&lt;style&gt;
p
{
  margin:0;
  padding:0;
  font-size:12px;
    line-height:12px;
}
div
{
  margin:0;
  padding:0;
}
&lt;/style&gt;
&lt;div&gt;
&lt;p&gt;&amp;#160;&amp;#160;&amp;#160;CLUSTER NAME&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;SERVER NAME&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;DATE OF LAST BACKUP&lt;/p&gt;
&lt;p&gt;-----------------------------------------------------------------------&lt;/p&gt;
&quot;@

# Bottom HTML footer
$bottomHTML = @&quot;
&lt;p&gt;-----------------------------------------------------------------------&lt;/p&gt;
&lt;p&gt;Script by K.Andreev - 20160630&lt;/p&gt;
&lt;/div&gt;
&lt;/font&gt;
&lt;/body&gt;
&lt;/html&gt;
&quot;@

# e-mail setup
$EmailFrom =&quot;sender@domain.com&quot;
$EmailTo =&quot;receiver@domain.com&quot;
$msg = New-Object System.Net.Mail.MailMessage ($EmailFrom,$EmailTo)
$msg.subject = &quot;CommVault Report &quot; + $StartDate
$msg.IsBodyHtml = $true;
$msg.Body =$topHTML + $midHTML + $bottomHTML
$smtpClient = New-Object System.Net.Mail.SmtpClient
$smtpClient.Host = &quot;smtp.server.com&quot;
$smtpClient.EnableSsl = $false
$smtpClient.Send($msg)

# Disconnect from vCenter
Disconnect-VIServer -Server $Server -Confirm:$false
</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2016/06/90-windowspowershell-commvault-report-in-vcenter/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ESX/ESXi: Upgrade from vCenter 5.0 to 5.1</title>
		<link>https://blog.andreev.it/2014/01/vsphere-upgrade-from-5-0-to-5-1/</link>
					<comments>https://blog.andreev.it/2014/01/vsphere-upgrade-from-5-0-to-5-1/#respond</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Fri, 17 Jan 2014 21:35:43 +0000</pubDate>
				<category><![CDATA[ESX/ESXi]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://blog.iandreev.com/?p=1175</guid>

					<description><![CDATA[In my previous post, I&#8217;ve explained how to install vCenter 5.0. In this post,&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p>In my <a href="http://blog.andreev.it/?p=1035" title="Install vCenter 5.0" target="_blank" rel="noopener noreferrer">previous post</a>, I&#8217;ve explained how to install vCenter 5.0. In this post, I&#8217;ll explain how to upgrade from 5.0 to 5.1. This version brings a new authentication <strong>Single Sign On</strong> mechanism and a new web client. Check the VMware web site for more information about these new products and features. </p>
<p>First, start <strong>SQL Server Management Studio </strong>and open the sql script that comes on the vCenter installation media. <strong>Single Sign On</strong> requires a separate database. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-01.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-01.png" alt="" width="406" height="220" class="aligncenter size-full wp-image-6930" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-01.png 406w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-01-300x163.png 300w" sizes="(max-width: 406px) 100vw, 406px" /></a></p>
<p>Open <strong>rsaIMSLiteMSSQLSetupTablespaces</strong> and change the file paths to suit your needs. There are three occurrences of this file path.  I used <strong>C:\DATA</strong> in my case. Click Execute and make sure you get a message that the commands completed successfully.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-02.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-02.png" alt="" width="614" height="393" class="aligncenter size-full wp-image-6931" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-02.png 614w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-02-300x192.png 300w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-02-585x374.png 585w" sizes="(max-width: 614px) 100vw, 614px" /></a><br />
Click on <strong>Security</strong>, then <strong>Logins</strong> and double-click the <strong>vpxuser</strong>. This is the same user that has full <strong>db_owner </strong>rights on the vCenter and Update Manager databases. Select <strong>User Mapping</strong>, <strong>RSA</strong> (<strong>Single Sign On</strong> database) and click <strong>db_owner</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-03.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-03.png" alt="" width="618" height="514" class="aligncenter size-full wp-image-6932" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-03.png 618w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-03-300x250.png 300w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-03-585x487.png 585w" sizes="(max-width: 618px) 100vw, 618px" /></a></p>
<p>Now start the vCenter installer and select <strong>vCenter Single Sign On</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-04.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-04.png" alt="" width="507" height="225" class="aligncenter size-full wp-image-6933" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-04.png 507w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-04-300x133.png 300w" sizes="(max-width: 507px) 100vw, 507px" /></a></p>
<p>Click Next.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-05.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-05.png" alt="" width="504" height="378" class="aligncenter size-full wp-image-6934" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-05.png 504w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-05-300x225.png 300w" sizes="(max-width: 504px) 100vw, 504px" /></a></p>
<p>Create the <strong>primary node</strong>.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-06.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-06.png" alt="" width="502" height="369" class="aligncenter size-full wp-image-6935" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-06.png 502w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-06-300x221.png 300w" sizes="(max-width: 502px) 100vw, 502px" /></a></p>
<p>Select the first option.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-07.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-07.png" alt="" width="497" height="368" class="aligncenter size-full wp-image-6936" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-07.png 497w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-07-300x222.png 300w" sizes="(max-width: 497px) 100vw, 497px" /></a></p>
<p>Enter a password for the <strong>admin@System-Domain</strong> user. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-08.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-08.png" alt="" width="498" height="369" class="aligncenter size-full wp-image-6937" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-08.png 498w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-08-300x222.png 300w" sizes="(max-width: 498px) 100vw, 498px" /></a></p>
<p>Select the second option.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-09.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-09.png" alt="" width="493" height="371" class="aligncenter size-full wp-image-6938" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-09.png 493w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-09-300x226.png 300w" sizes="(max-width: 493px) 100vw, 493px" /></a></p>
<p>Type <strong>RSA</strong> for the database name, the hostname of the SQL server, <strong>vpxuser</strong> for the database user and its password.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-10.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-10.png" alt="" width="499" height="370" class="aligncenter size-full wp-image-6939" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-10.png 499w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-10-300x222.png 300w" sizes="(max-width: 499px) 100vw, 499px" /></a></p>
<p>Confirm that your vCenter server is listed here.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-11.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-11.png" alt="" width="498" height="376" class="aligncenter size-full wp-image-6940" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-11.png 498w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-11-300x227.png 300w" sizes="(max-width: 498px) 100vw, 498px" /></a></p>
<p>Use the defaults.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-12.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-12.png" alt="" width="495" height="371" class="aligncenter size-full wp-image-6941" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-12.png 495w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-12-300x225.png 300w" sizes="(max-width: 495px) 100vw, 495px" /></a></p>
<p>Change or accept the defaults. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-13.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-13.png" alt="" width="507" height="371" class="aligncenter size-full wp-image-6942" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-13.png 507w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-13-300x220.png 300w" sizes="(max-width: 507px) 100vw, 507px" /></a></p>
<p>Change or accept the defaults. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-14.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-14.png" alt="" width="504" height="368" class="aligncenter size-full wp-image-6943" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-14.png 504w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-14-300x219.png 300w" sizes="(max-width: 504px) 100vw, 504px" /></a></p>
<p>Click <strong>Finish</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-15.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-15.png" alt="" width="497" height="369" class="aligncenter size-full wp-image-6944" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-15.png 497w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-15-300x223.png 300w" sizes="(max-width: 497px) 100vw, 497px" /></a></p>
<p>Next, we&#8217;ll have to upgrade <strong>vCenter Inventory Service</strong>. From the same menu where we launched the <strong>Single Sign On </strong>install, click on <strong>vCenter Inventory Service</strong>.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-16.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-16.png" alt="" width="497" height="366" class="aligncenter size-full wp-image-6945" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-16.png 497w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-16-300x221.png 300w" sizes="(max-width: 497px) 100vw, 497px" /></a></p>
<p>Choose the first option.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-17.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-17.png" alt="" width="494" height="378" class="aligncenter size-full wp-image-6946" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-17.png 494w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-17-300x230.png 300w" sizes="(max-width: 494px) 100vw, 494px" /></a><br />
Verify that you have the vCenter server name correct.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-18.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-18.png" alt="" width="511" height="372" class="aligncenter size-full wp-image-6947" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-18.png 511w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-18-300x218.png 300w" sizes="(max-width: 511px) 100vw, 511px" /></a><br />
Change or accept the defaults.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-19.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-19.png" alt="" width="499" height="371" class="aligncenter size-full wp-image-6948" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-19.png 499w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-19-300x223.png 300w" sizes="(max-width: 499px) 100vw, 499px" /></a></p>
<p>Change or accept the defaults.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-20.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-20.png" alt="" width="502" height="370" class="aligncenter size-full wp-image-6949" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-20.png 502w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-20-300x221.png 300w" sizes="(max-width: 502px) 100vw, 502px" /></a></p>
<p>Enter the password for the <strong>admin@System-Domain</strong> user. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-21.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-21.png" alt="" width="489" height="371" class="aligncenter size-full wp-image-6950" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-21.png 489w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-21-300x228.png 300w" sizes="(max-width: 489px) 100vw, 489px" /></a></p>
<p>Click <strong>Install certificates</strong>. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-22.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-22.png" alt="" width="492" height="373" class="aligncenter size-full wp-image-6951" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-22.png 492w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-22-300x227.png 300w" sizes="(max-width: 492px) 100vw, 492px" /></a><br />
Click <strong>Finish</strong>.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-23.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-23.png" alt="" width="491" height="370" class="aligncenter size-full wp-image-6952" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-23.png 491w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-23-300x226.png 300w" sizes="(max-width: 491px) 100vw, 491px" /></a></p>
<p>Next, upgrade vCenter. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-24.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-24.png" alt="" width="501" height="370" class="aligncenter size-full wp-image-6953" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-24.png 501w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-24-300x222.png 300w" sizes="(max-width: 501px) 100vw, 501px" /></a></p>
<p>Enter the password for the <strong>vpxuser</strong>. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-25.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-25.png" alt="" width="500" height="371" class="aligncenter size-full wp-image-6954" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-25.png 500w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-25-300x223.png 300w" sizes="(max-width: 500px) 100vw, 500px" /></a></p>
<p>Upgrade the database. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-26.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-26.png" alt="" width="497" height="368" class="aligncenter size-full wp-image-6955" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-26.png 497w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-26-300x222.png 300w" sizes="(max-width: 497px) 100vw, 497px" /></a></p>
<p>Select the first option.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-27.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-27.png" alt="" width="495" height="375" class="aligncenter size-full wp-image-6956" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-27.png 495w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-27-300x227.png 300w" sizes="(max-width: 495px) 100vw, 495px" /></a></p>
<p>Choose if you want to use a domain account, local account or system account.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-28.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-28.png" alt="" width="494" height="366" class="aligncenter size-full wp-image-6957" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-28.png 494w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-28-300x222.png 300w" sizes="(max-width: 494px) 100vw, 494px" /></a></p>
<p>Change or accept the defaults.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-29.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-29.png" alt="" width="503" height="376" class="aligncenter size-full wp-image-6958" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-29.png 503w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-29-300x224.png 300w" sizes="(max-width: 503px) 100vw, 503px" /></a></p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-30.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-30.png" alt="" width="499" height="371" class="aligncenter size-full wp-image-6959" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-30.png 499w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-30-300x223.png 300w" sizes="(max-width: 499px) 100vw, 499px" /></a></p>
<p>Enter the password for the <strong>Single Sign On </strong>admin user. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-31.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-31.png" alt="" width="504" height="382" class="aligncenter size-full wp-image-6960" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-31.png 504w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-31-300x227.png 300w" sizes="(max-width: 504px) 100vw, 504px" /></a></p>
<p>Use this log file if you have any issues later. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-32.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-32.png" alt="" width="410" height="175" class="aligncenter size-full wp-image-6961" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-32.png 410w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-32-300x128.png 300w" sizes="(max-width: 410px) 100vw, 410px" /></a></p>
<p>Click <strong>Finish</strong>.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-33.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-33.png" alt="" width="490" height="371" class="aligncenter size-full wp-image-6962" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-33.png 490w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-33-300x227.png 300w" sizes="(max-width: 490px) 100vw, 490px" /></a></p>
<p>Next, we&#8217;ll upgrade the <strong>Update Manager</strong>. Start the installation.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-34.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-34.png" alt="" width="419" height="149" class="aligncenter size-full wp-image-6963" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-34.png 419w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-34-300x107.png 300w" sizes="(max-width: 419px) 100vw, 419px" /></a></p>
<p>Accept the default option.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-35.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-35.png" alt="" width="493" height="372" class="aligncenter size-full wp-image-6964" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-35.png 493w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-35-300x226.png 300w" sizes="(max-width: 493px) 100vw, 493px" /></a></p>
<p>Enter the credentials that were used to run the <strong>Update Manager </strong>service.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-36.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-36.png" alt="" width="498" height="372" class="aligncenter size-full wp-image-6965" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-36.png 498w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-36-300x224.png 300w" sizes="(max-width: 498px) 100vw, 498px" /></a></p>
<p>Enter the credentials for the <strong>vpxuser</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-37.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-37.png" alt="" width="499" height="378" class="aligncenter size-full wp-image-6966" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-37.png 499w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-37-300x227.png 300w" sizes="(max-width: 499px) 100vw, 499px" /></a><br />
Upgrade the dabase. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-38.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-38.png" alt="" width="499" height="374" class="aligncenter size-full wp-image-6967" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-38.png 499w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-38-300x225.png 300w" sizes="(max-width: 499px) 100vw, 499px" /></a></p>
<p>Change or accept the defaults. Make sure the vCenter server correctly appears. Click <strong>Finish</strong> at the end.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-39.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-39.png" alt="" width="501" height="374" class="aligncenter size-full wp-image-6968" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-39.png 501w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-39-300x224.png 300w" sizes="(max-width: 501px) 100vw, 501px" /></a><br />
Finally, let&#8217;s update the web client. You can run the installer from the media or you can just double-click the old client and this message will show up, prompting you to run or save the installer. Just click Run. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-40.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-40.png" alt="" width="389" height="172" class="aligncenter size-full wp-image-6969" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-40.png 389w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-40-300x133.png 300w" sizes="(max-width: 389px) 100vw, 389px" /></a></p>
<p>Change or accept the defaults.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-41.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-41.png" alt="" width="499" height="374" class="aligncenter size-full wp-image-6970" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-41.png 499w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-41-300x225.png 300w" sizes="(max-width: 499px) 100vw, 499px" /></a></p>
<p>Enter the password for the <strong>Single Sign On </strong>admin user.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-42.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-42.png" alt="" width="502" height="369" class="aligncenter size-full wp-image-6971" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-42.png 502w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-42-300x221.png 300w" sizes="(max-width: 502px) 100vw, 502px" /></a></p>
<p>If you try to use your Windows domain credentials, you&#8217;ll have to download the <strong>Client Integration Plug-In</strong> first. And, that&#8217;s it.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P38-43.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P38-43.png" alt="" width="489" height="433" class="aligncenter size-full wp-image-6972" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P38-43.png 489w, https://blog.andreev.it/wp-content/uploads/2014/01/P38-43-300x266.png 300w" sizes="(max-width: 489px) 100vw, 489px" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2014/01/vsphere-upgrade-from-5-0-to-5-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ESX/ESXi: Install vCenter 5.0</title>
		<link>https://blog.andreev.it/2014/01/install-vcenter-5-0/</link>
					<comments>https://blog.andreev.it/2014/01/install-vcenter-5-0/#respond</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Sun, 12 Jan 2014 02:19:57 +0000</pubDate>
				<category><![CDATA[ESX/ESXi]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[vCenter]]></category>
		<guid isPermaLink="false">http://blog.iandreev.com/?p=1035</guid>

					<description><![CDATA[In this post I&#8217;ll describe how I installed vCenter 5.0 on Windows 2008 R2&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p>In this post I&#8217;ll describe how I installed <strong>vCenter 5.0</strong> on Windows 2008 R2 server using SQL 2008 R2 database. I&#8217;ve used two servers in my lab, one for the vCenter and the other one for the SQL. I won&#8217;t explain how to install SQL server, it&#8217;s fairly straightforward. </p>
<p>First thing to do is to create the SQL database. VMware provides a SQL script that you can execute to create the database. The script is on the vCenter installation DVD/ISO under <strong>source\vCenter-Server\dbschema</strong> folder where source is some drive letter (D:\ or E:\). This script does not work right, so we&#8217;ll use a modified version. By default, <strong>vCenter</strong> requires full <strong>db_owner</strong> rights so it can create some scheduled jobs. If your environment doesn’t allow this type of access, see the installation guide for vCenter. In this post, we’ll grant full <strong>db_owner</strong> rights for the sql user (<strong>vpxuser</strong>) to both vCenter database (<strong>VCDB</strong>) and the <strong>msdb</strong> system database. Once <strong>vCenter</strong> is up and running, you can remove the full <strong>db_owner</strong> rights from the msdb. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-01.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-01.png" alt="" width="561" height="305" class="aligncenter size-full wp-image-6872" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-01.png 561w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-01-300x163.png 300w" sizes="(max-width: 561px) 100vw, 561px" /></a></p>
<p>Start the <strong>SQL Server Management Studio</strong>, log as the <strong><em>sa</em></strong> user or some domain user with full SQL admin rights, and click <strong>New Query</strong>.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-02.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-02.png" alt="" width="525" height="251" class="aligncenter size-full wp-image-6873" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-02.png 525w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-02-300x143.png 300w" sizes="(max-width: 525px) 100vw, 525px" /></a></p>
<p>Copy and paste the following script, but change the file path where you want your database to reside. In my case it is <strong>C:\DATA</strong>. Also, change the password for the <strong>vpxuser</strong> that we will create. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-03.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-03.png" alt="" width="562" height="411" class="aligncenter size-full wp-image-6874" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-03.png 562w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-03-300x219.png 300w" sizes="(max-width: 562px) 100vw, 562px" /></a></p>
<pre class="brush: sql; title: ; notranslate">
use &#x5B;master]
go
CREATE DATABASE &#x5B;VCDB] ON PRIMARY
(NAME = N'vcdb', FILENAME = N'C:\DATA\VCDB.mdf', SIZE = 2000KB, FILEGROWTH = 10% )
LOG ON
(NAME = N'vcdb_log', FILENAME = N'C:\DATA\VCDB.ldf', SIZE = 1000KB, FILEGROWTH = 10%)
COLLATE SQL_Latin1_General_CP1_CI_AS
go
use VCDB
go
sp_addlogin @loginame=&#x5B;vpxuser], @passwd=N'vpxuserpassword', @defdb='VCDB',
@deflanguage='us_english'
go
ALTER LOGIN &#x5B;vpxuser] WITH CHECK_POLICY = OFF
go
CREATE USER &#x5B;vpxuser] for LOGIN &#x5B;vpxuser]
go
</pre>
<p>While in <strong>SQL Server Management Studio</strong>, expand the <strong>Security</strong>, then <strong>Logins</strong>. Double-click on the <strong>vpxuser</strong> and choose <strong>User Mapping</strong>. Select the <strong>VCDB</strong> database and put a check mark for <strong>db_owner</strong>. Put a check mark on the <strong>msdb</strong> database and do the same (check mark on <strong>db_owner</strong>).<br />
 <a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-04.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-04.png" alt="" width="874" height="470" class="aligncenter size-full wp-image-6875" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-04.png 874w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-04-300x161.png 300w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-04-768x413.png 768w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-04-585x315.png 585w" sizes="(max-width: 874px) 100vw, 874px" /></a></p>
<p>Next thing to do is to install the <strong>SQL Server Native Client</strong> on the vCenter server. It’s a free download from <a href="http://www.microsoft.com/en-us/download/details.aspx?id=16978" title="Click here to download SQL Native Client" target="_blank" rel="noopener noreferrer">Microsoft</a>. Once installed, go to <strong>Administrative Tools | Data Sources (ODBC)</strong>. Click on <strong>System DSN</strong> tab and then click <strong>Add</strong>. You should see a <strong>SQL Server Native Client 10.0</strong> driver there. Do not use <strong>SQL Server</strong> driver. It won&#8217;t work.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-05.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-05.png" alt="" width="575" height="462" class="aligncenter size-full wp-image-6876" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-05.png 575w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-05-300x241.png 300w" sizes="(max-width: 575px) 100vw, 575px" /></a></p>
<p>Enter the name for the <strong>ODBC</strong> connection, a description and type the hostname for the SQL server. In my case, I&#8217;ll use <strong>vCenter, vCenter Database</strong> and <strong>sql</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-06.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-06.png" alt="" width="497" height="379" class="aligncenter size-full wp-image-6877" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-06.png 497w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-06-300x229.png 300w" sizes="(max-width: 497px) 100vw, 497px" /></a></p>
<p>Next, choose <strong>SQL authentication</strong> and type the SQL user that we just created with the script (<strong>vpxuser</strong> and its password).<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-07.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-07.png" alt="" width="505" height="380" class="aligncenter size-full wp-image-6878" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-07.png 505w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-07-300x226.png 300w" sizes="(max-width: 505px) 100vw, 505px" /></a></p>
<p>Click the first check mark and select the <strong>VCDB</strong> database.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-08.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-08.png" alt="" width="511" height="384" class="aligncenter size-full wp-image-6879" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-08.png 511w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-08-300x225.png 300w" sizes="(max-width: 511px) 100vw, 511px" /></a></p>
<p>Leave the defaults and click <strong>Finish</strong>.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-09.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-09.png" alt="" width="495" height="370" class="aligncenter size-full wp-image-6880" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-09.png 495w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-09-300x224.png 300w" sizes="(max-width: 495px) 100vw, 495px" /></a></p>
<p>Click the <strong>Test Data Source</strong> button and make sure that it says that the connection completed successfully.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-10.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-10.png" alt="" width="357" height="366" class="aligncenter size-full wp-image-6881" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-10.png 357w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-10-293x300.png 293w" sizes="(max-width: 357px) 100vw, 357px" /></a></p>
<p>Now, it&#8217;s time to install <strong>vCenter</strong>. Insert the DVD or mount the ISO image and the installer will start.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-11.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-11.png" alt="" width="686" height="502" class="aligncenter size-full wp-image-6882" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-11.png 686w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-11-300x220.png 300w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-11-585x428.png 585w" sizes="(max-width: 686px) 100vw, 686px" /></a></p>
<p>Click the first option <strong>vCenter server</strong> and go thru the Next, Accept cycle. Once you reach the <strong>Database Options</strong>, select the second radio button and choose the ODBC connection that we just created.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-12.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-12.png" alt="" width="499" height="370" class="aligncenter size-full wp-image-6883" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-12.png 499w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-12-300x222.png 300w" sizes="(max-width: 499px) 100vw, 499px" /></a></p>
<p>If you get this error, make sure you start the <strong>SQL Server Agent</strong> on the SQL server. By default this service is disabled. You can stop this service once the installation completes.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-13.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-13.png" alt="" width="381" height="154" class="aligncenter size-full wp-image-6884" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-13.png 381w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-13-300x121.png 300w" sizes="(max-width: 381px) 100vw, 381px" /></a></p>
<p>Enter the SQL username and password that we just created.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-14.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-14.png" alt="" width="497" height="366" class="aligncenter size-full wp-image-6885" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-14.png 497w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-14-300x221.png 300w" sizes="(max-width: 497px) 100vw, 497px" /></a></p>
<p>If you receive the following error, it means that you are not a <strong>db_owner</strong> on the <strong>VCDB</strong> database.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-15.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-15.png" alt="" width="405" height="319" class="aligncenter size-full wp-image-6886" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-15.png 405w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-15-300x236.png 300w" sizes="(max-width: 405px) 100vw, 405px" /></a></p>
<p>You won&#8217;t be able to continue until you fix this. When you reach this screen <strong>vCenter Server Service</strong>, stop. You have an option to run the <strong>vCenter Server</strong> service as a local server account or you can choose a domain account. If you use a domain account, it should be a local admin on the server.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-16.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-16.png" alt="" width="497" height="371" class="aligncenter size-full wp-image-6887" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-16.png 497w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-16-300x224.png 300w" sizes="(max-width: 497px) 100vw, 497px" /></a></p>
<p>Change or accept the defaults for the <strong>vCenter</strong> program.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-17.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-17.png" alt="" width="503" height="377" class="aligncenter size-full wp-image-6888" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-17.png 503w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-17-300x225.png 300w" sizes="(max-width: 503px) 100vw, 503px" /></a><br />
Select the first option.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-18.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-18.png" alt="" width="498" height="374" class="aligncenter size-full wp-image-6889" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-18.png 498w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-18-300x225.png 300w" sizes="(max-width: 498px) 100vw, 498px" /></a></p>
<p>Change or accept the default ports. If you install <strong>vCenter</strong> on a shared server with <strong>IIS</strong> installed, you&#8217;ll have port conflicts here.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-19.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-19.png" alt="" width="485" height="374" class="aligncenter size-full wp-image-6890" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-19.png 485w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-19-300x231.png 300w" sizes="(max-width: 485px) 100vw, 485px" /></a><br />
Change or accept the default ports for the <strong>Inventory Service</strong>.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-20.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-20.png" alt="" width="500" height="371" class="aligncenter size-full wp-image-6891" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-20.png 500w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-20-300x223.png 300w" sizes="(max-width: 500px) 100vw, 500px" /></a><br />
Estimate how many VMs you&#8217;ll have.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-21.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-21.png" alt="" width="501" height="374" class="aligncenter size-full wp-image-6892" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-21.png 501w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-21-300x224.png 300w" sizes="(max-width: 501px) 100vw, 501px" /></a></p>
<p>Click <strong>Install</strong>.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-22.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-22.png" alt="" width="497" height="377" class="aligncenter size-full wp-image-6893" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-22.png 497w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-22-300x228.png 300w" sizes="(max-width: 497px) 100vw, 497px" /></a></p>
<p>After couple of minutes, click <strong>Finish</strong> to complete the install. Your <strong>vCenter Server</strong> should be up and running, but we are not over yet.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-23.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-23.png" alt="" width="495" height="371" class="aligncenter size-full wp-image-6894" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-23.png 495w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-23-300x225.png 300w" sizes="(max-width: 495px) 100vw, 495px" /></a></p>
<p>We will install the <strong>Update Manager</strong> now. This part of <strong>vCenter</strong> is used to patch the vCenter and ESXi hosts. Log back to the SQL server and in <strong>SQL Server Management Studio</strong>, execute this script that will create a new database for the <strong>Update Manager</strong>. Make sure you change the file path for the database. In my case is <strong>C:\DATA</strong>. We&#8217;ll use the same <strong>vpxuser</strong> user for the <strong>Update Manager</strong> database.</p>
<pre class="brush: sql; title: ; notranslate">
CREATE DATABASE &#x5B;VCUM] ON PRIMARY
(NAME = N'vcum', FILENAME = N'C:\DATA\VCUM.mdf', SIZE = 2000KB, FILEGROWTH = 10% )
LOG ON
(NAME = N'vcum_log', FILENAME = N'C:\DATA\VCUM.ldf', SIZE = 1000KB, FILEGROWTH = 10%)
COLLATE SQL_Latin1_General_CP1_CI_AS
go
use VCUM
go
</pre>
<p>On vCenter server, go to<strong> C:\Windows\SysWOW64</strong> folder and run <strong>odbcacd32.exe</strong>. The <strong>Update Manager</strong> is using a 32-bit ODBC and by default, if you go to <strong>Administrative Tools</strong> and start the <strong>ODBC manager</strong>, you&#8217;ll execute the 64-bit version.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-24.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-24.png" alt="" width="449" height="323" class="aligncenter size-full wp-image-6895" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-24.png 449w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-24-300x216.png 300w" sizes="(max-width: 449px) 100vw, 449px" /></a></p>
<p>Pick a name and description for this ODBC connection and specify your SQL server hostname.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-25.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-25.png" alt="" width="503" height="384" class="aligncenter size-full wp-image-6896" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-25.png 503w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-25-300x229.png 300w" sizes="(max-width: 503px) 100vw, 503px" /></a></p>
<p>Select the <strong>VCUM</strong> database that we just created and similarly to the previous ODBC creation, finish the rest of the steps.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-26.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-26.png" alt="" width="501" height="381" class="aligncenter size-full wp-image-6897" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-26.png 501w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-26-300x228.png 300w" sizes="(max-width: 501px) 100vw, 501px" /></a></p>
<p>Start the <strong>Update Manager</strong> install.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-27.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-27.png" alt="" width="655" height="452" class="aligncenter size-full wp-image-6898" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-27.png 655w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-27-300x207.png 300w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-27-585x404.png 585w" sizes="(max-width: 655px) 100vw, 655px" /></a></p>
<p>Accept the defaults.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-28.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-28.png" alt="" width="501" height="374" class="aligncenter size-full wp-image-6899" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-28.png 501w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-28-300x224.png 300w" sizes="(max-width: 501px) 100vw, 501px" /></a></p>
<p>Create a domain user that will run the <strong>Update Manager</strong> service. In my case I use <strong>svc_vcenter</strong>. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-29.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-29.png" alt="" width="491" height="371" class="aligncenter size-full wp-image-6900" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-29.png 491w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-29-300x227.png 300w" sizes="(max-width: 491px) 100vw, 491px" /></a></p>
<p>Specify the 32-bit ODBC connection that we just created.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-30.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-30.png" alt="" width="498" height="379" class="aligncenter size-full wp-image-6901" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-30.png 498w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-30-300x228.png 300w" sizes="(max-width: 498px) 100vw, 498px" /></a></p>
<p>Enter the same <strong>vpxuser</strong> and password.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-31.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-31.png" alt="" width="498" height="371" class="aligncenter size-full wp-image-6902" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-31.png 498w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-31-300x223.png 300w" sizes="(max-width: 498px) 100vw, 498px" /></a></p>
<p>Specify if any proxy servers need to be specified. <strong>Update Manager</strong> requires Internet connection.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-32.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-32.png" alt="" width="491" height="377" class="aligncenter size-full wp-image-6903" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-32.png 491w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-32-300x230.png 300w" sizes="(max-width: 491px) 100vw, 491px" /></a></p>
<p>Change or accept the defaults.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-33.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-33.png" alt="" width="497" height="378" class="aligncenter size-full wp-image-6904" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-33.png 497w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-33-300x228.png 300w" sizes="(max-width: 497px) 100vw, 497px" /></a></p>
<p>The rest of the steps a re just plain Next, Next, Finish.</p>
<p>Once installed, go back and install the <strong>vCenter</strong> client. I won&#8217;t explain how to do this. It&#8217;s trivial. Log to the <strong>vCenter</strong> with a local admin password or with a domain account (if you run vCenter service under a domain account).<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-34.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-34.png" alt="" width="416" height="373" class="aligncenter size-full wp-image-6905" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-34.png 416w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-34-300x269.png 300w" sizes="(max-width: 416px) 100vw, 416px" /></a></p>
<p>Select the top left <strong>vCenter</strong> server name and then click on <strong>Permissions</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-35.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-35.png" alt="" width="756" height="123" class="aligncenter size-full wp-image-6906" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-35.png 756w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-35-300x49.png 300w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-35-585x95.png 585w" sizes="(max-width: 756px) 100vw, 756px" /></a></p>
<p>Click <strong>Add</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-36.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-36.png" alt="" width="635" height="502" class="aligncenter size-full wp-image-6907" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-36.png 635w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-36-300x237.png 300w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-36-585x462.png 585w" sizes="(max-width: 635px) 100vw, 635px" /></a></p>
<p>Type your domain, enter a user that you want to grant full admin rights and click <strong>Check Names</strong>. If everything is OK, the dialog box will just blink.<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-37.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-37.png" alt="" width="500" height="468" class="aligncenter size-full wp-image-6908" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-37.png 500w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-37-300x281.png 300w" sizes="(max-width: 500px) 100vw, 500px" /></a></p>
<p>Back in the previous dialog, select <strong>Administrator</strong> and click OK. We made <strong>svc_vcenter</strong> an admin <strong>vCenter</strong> user. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-38.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-38.png" alt="" width="630" height="500" class="aligncenter size-full wp-image-6909" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-38.png 630w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-38-300x238.png 300w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-38-585x464.png 585w" sizes="(max-width: 630px) 100vw, 630px" /></a></p>
<p>From the <strong>vCenter</strong> client menu, select <strong>Plug-Ins</strong> and select the <strong>Update Manager</strong> plug-in.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-39.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-39.png" alt="" width="771" height="356" class="aligncenter size-full wp-image-6910" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-39.png 771w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-39-300x139.png 300w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-39-768x355.png 768w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-39-585x270.png 585w" sizes="(max-width: 771px) 100vw, 771px" /></a></p>
<p>Click <strong>Run</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-40.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-40.png" alt="" width="436" height="297" class="aligncenter size-full wp-image-6911" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-40.png 436w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-40-300x204.png 300w" sizes="(max-width: 436px) 100vw, 436px" /></a></p>
<p>Create a new datacenter, add the ESXi hosts and you are all set.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P037-41.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P037-41.png" alt="" width="407" height="211" class="aligncenter size-full wp-image-6912" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P037-41.png 407w, https://blog.andreev.it/wp-content/uploads/2014/01/P037-41-300x156.png 300w" sizes="(max-width: 407px) 100vw, 407px" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2014/01/install-vcenter-5-0/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
