<?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>ESX/ESXi &#8211; Blog of Kliment Andreev &#8211; A place so I won&#039;t forget things</title>
	<atom:link href="https://blog.andreev.it/tag/esx-esxi/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.andreev.it</link>
	<description></description>
	<lastBuildDate>Sat, 31 Oct 2020 14:17:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<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 fetchpriority="high" 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 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 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>ESX/ESXi: Install VMware Tools on FreeBSD 10.x/11.x/CentOS 7.x</title>
		<link>https://blog.andreev.it/2015/11/vmware-workstation-install-vmware-tools-on-freebsd-10-x/</link>
					<comments>https://blog.andreev.it/2015/11/vmware-workstation-install-vmware-tools-on-freebsd-10-x/#respond</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Wed, 25 Nov 2015 18:03:58 +0000</pubDate>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[ESX/ESXi]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[VMWare Tools]]></category>
		<guid isPermaLink="false">http://blog.iandreev.com/?p=2068</guid>

					<description><![CDATA[VMware Tools is a suite of utilities that enhances the performance of the virtual&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p>VMware Tools is a suite of utilities that enhances the performance of the virtual machines guest operating system. Usually, it is a very simple install, especially on Windows OS. The port for FreeBSD is also easy, but there are some quirks that needs to be resolved. First, the instructions for the install assume that you have the cdrom already installed. Second, the tools depend on Perl and since 10.1, Perl was removed from the default install and /usr/bin. So, in order to install VMware Tools on FreeBSD 10.1 or 10.2, we have to do some work. For FreeBSD 11.x and higher, scroll all the way down.</p>
<h1>FreeBSD 10.x</h1>
<p>First, install the compatibility libraries.</p>
<pre class="brush: bash; title: ; notranslate">
pkg install compat6x-amd64
</pre>
<p>If you have a 32-bit FreeBSD, use <strong>compat6x-i386 </strong>instead.<br />
Then, install perl from the packages.</p>
<pre class="brush: bash; title: ; notranslate">
pkg install perl5-5.20.3_8
</pre>
<p>If there is a problem with this version, check what&#8217;s available and install the latest.</p>
<pre class="brush: bash; title: ; notranslate">
pkg search ^perl
</pre>
<p>Check the name of the cdrom drive.</p>
<pre class="brush: bash; title: ; notranslate">
dmesg | grep cd
</pre>
<p>In my case it was <strong>cd0</strong>. Most likely it&#8217;s <strong>cd0</strong>, unless you specified some SCSI cd when creating a custom VM.<br />
Right click the VM and choose Install VMware Tools.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2015/11/P058-01.jpg"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2015/11/P058-01.jpg" alt="" width="225" height="362" class="aligncenter size-full wp-image-7383" srcset="https://blog.andreev.it/wp-content/uploads/2015/11/P058-01.jpg 225w, https://blog.andreev.it/wp-content/uploads/2015/11/P058-01-186x300.jpg 186w" sizes="(max-width: 225px) 100vw, 225px" /></a><br />
Create a mount point, mount the tools, copy the tools on the disk and extract them.</p>
<pre class="brush: bash; title: ; notranslate">
mkdir /tmp/vt
mount -t cd9660 /dev/cd0 /tmp/vt
cd /tmp/vt
cp vmware-freebsd-tools.tar.gz ../
cd ..
umount /tmp/vt
rm -Rf /tmp/vt
tar xzvf vmware-freebsd-tools.tar.gz
rm vmware-freebsd-tools.tar.gz
cd vmware-tools-distrib
</pre>
<p>If you try to run the tools with <strong>./vmware-install.pl</strong>, you&#8217;ll get an error &#8220;command not found&#8221;. That&#8217;s because the provided script is looking for perl under <strong>/usr/bin</strong>. As of FreeBSD 10.1, perl is no longer a system binary and after the install, the binary is under <strong>/usr/local/bin</strong>.<br />
So, edit the following files and replace <strong>/usr/bin/perl </strong>with <strong>/usr/local/bin/perl </strong>in the following three files. It&#8217;s the first line in all three files.</p>
<pre class="brush: bash; title: ; notranslate">
vmware-install.pl
vmware-install.real.pl (if you have VMware Workstation 12)
bin/vmware-config-tools.pl
bin/vmware-uninstall-tools.pl
</pre>
<p>Once replaced, you can start the installation with:</p>
<pre class="brush: bash; title: ; notranslate">
./vmware-install.pl
</pre>
<p>Look at the choices, but most likely you&#8217;ll accept the defaults and then reboot.</p>
<h1>FreeBSD 11.x</h1>
<p>If you are using FreeBSD 11.x and higher you can install it with or without X11 support (nox11).</p>
<pre class="brush: bash; title: ; notranslate">
pkg install open-vm-tools
pkg install open-vm-tools-nox11
</pre>
<p>Once installed, add these lines in <strong>/etc/rc.conf</strong>.</p>
<pre class="brush: bash; title: ; notranslate">
vmware_guest_vmblock_enable=&quot;YES&quot;
vmware_guest_vmhgfs_enable=&quot;NO&quot;
vmware_guest_vmmemctl_enable=&quot;YES&quot;
vmware_guest_vmxnet_enable=&quot;YES&quot;
vmware_guestd_enable=&quot;YES&quot;
</pre>
<p>Reboot after making changes in <strong>/etc/rc.conf</strong>.</p>
<h1>CentOS</h1>
<p>The installation for CentOS is much simpler. </p>
<pre class="brush: bash; title: ; notranslate">
yum install open-vm-tools
</pre>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2015/11/vmware-workstation-install-vmware-tools-on-freebsd-10-x/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ESX/ESXi: Enable sound (audio) in a VM for use in a RDP session</title>
		<link>https://blog.andreev.it/2014/01/enable-sound-audio-in-a-vm-for-use-in-a-rdp-session/</link>
					<comments>https://blog.andreev.it/2014/01/enable-sound-audio-in-a-vm-for-use-in-a-rdp-session/#respond</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Sun, 19 Jan 2014 00:36:42 +0000</pubDate>
				<category><![CDATA[ESX/ESXi]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[RDP]]></category>
		<guid isPermaLink="false">http://blog.iandreev.com/?p=1224</guid>

					<description><![CDATA[I manage a terminal server that Service Desk is using to access some applications&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p>I manage a terminal server that Service Desk is using to access some applications using <strong>RDP</strong> client. Recently, they needed audio enabled. These steps will help accomplish that goal . </p>
<p>First, log to the server and make sure that <strong>Windows Audio</strong> service is set to start as <strong>Automatic</strong> instead of <strong>Manual</strong>. Then, start the service. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P039-01.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P039-01.png" alt="" width="520" height="86" class="aligncenter size-full wp-image-6982" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P039-01.png 520w, https://blog.andreev.it/wp-content/uploads/2014/01/P039-01-300x50.png 300w" sizes="(max-width: 520px) 100vw, 520px" /></a><br />
Go to <strong>Administrative Tools</strong>, <strong>Remote Desktop</strong> and start the <strong>Remote Desktop Session Host Configuration</strong>.  Select the <strong>RDP</strong> connection, right-click and choose <strong>Properties</strong>. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P039-02.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P039-02.png" alt="" width="616" height="283" class="aligncenter size-full wp-image-6983" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P039-02.png 616w, https://blog.andreev.it/wp-content/uploads/2014/01/P039-02-300x138.png 300w, https://blog.andreev.it/wp-content/uploads/2014/01/P039-02-585x269.png 585w" sizes="(max-width: 616px) 100vw, 616px" /></a><br />
In the dialog box, select <strong>Client Settings</strong> and uncheck <strong>Audio and Video Playback</strong>.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P039-03.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P039-03.png" alt="" width="397" height="494" class="aligncenter size-full wp-image-6984" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P039-03.png 397w, https://blog.andreev.it/wp-content/uploads/2014/01/P039-03-241x300.png 241w" sizes="(max-width: 397px) 100vw, 397px" /></a></p>
<p>You&#8217;ll get a message that you have to log off and log back on for these changes to take effect. </p>
<p>Also, make sure that you don&#8217;t inherit any domain policies that prevent the <strong>RDP</strong> audio settings. Click <strong>Start</strong>, <strong>Run</strong> and type:</p>
<pre class="brush: bash; title: ; notranslate">
gpedit.msc
</pre>
<p>Navigate to <strong>Computer Configuration | Administrative Templates | Windows Components | Remote Desktop Services | Remote Desktop Session Host | Device and Resource Configuration</strong>.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2014/01/P039-04.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P039-04.png" alt="" width="715" height="255" class="aligncenter size-full wp-image-6985" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P039-04.png 715w, https://blog.andreev.it/wp-content/uploads/2014/01/P039-04-300x107.png 300w, https://blog.andreev.it/wp-content/uploads/2014/01/P039-04-585x209.png 585w" sizes="(max-width: 715px) 100vw, 715px" /></a></p>
<p>If it says <strong>Not Configured</strong> or <strong>Enabled</strong>, it&#8217;s fine. If it says <strong>Disabled</strong>, you&#8217;ll have to modify the domain <strong>GPO</strong>.</p>
<p>Finally, on the client computers, make sure that the <strong>RDP</strong> client is set to play the audio on the remote machine and not on the server.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2014/01/P039-05.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2014/01/P039-05.png" alt="" width="739" height="474" class="aligncenter size-full wp-image-6986" srcset="https://blog.andreev.it/wp-content/uploads/2014/01/P039-05.png 739w, https://blog.andreev.it/wp-content/uploads/2014/01/P039-05-300x192.png 300w, https://blog.andreev.it/wp-content/uploads/2014/01/P039-05-585x375.png 585w" sizes="(max-width: 739px) 100vw, 739px" /></a></p>
<p>Sources:</p>
<p><a href="http://technet.microsoft.com/en-us/library/cc770631.aspx" target="_blank" rel="noopener noreferrer">http://technet.microsoft.com/en-us/library/cc770631.aspx</a><br />
<a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&#038;cmd=displayKC&#038;externalId=1004839" target="_blank" rel="noopener noreferrer">http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&#038;cmd=displayKC&#038;externalId=1004839</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2014/01/enable-sound-audio-in-a-vm-for-use-in-a-rdp-session/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>
		<item>
		<title>Linux: Linux From Scratch as a Virtual Machine on a VMware Workstation</title>
		<link>https://blog.andreev.it/2013/09/linux-from-scratch-as-a-virtual-machine-on-vmware-workstation/</link>
					<comments>https://blog.andreev.it/2013/09/linux-from-scratch-as-a-virtual-machine-on-vmware-workstation/#comments</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Sat, 21 Sep 2013 12:38:30 +0000</pubDate>
				<category><![CDATA[ESX/ESXi]]></category>
		<category><![CDATA[Linux]]></category>
		<guid isPermaLink="false">http://blog.iandreev.com/?p=729</guid>

					<description><![CDATA[Linux from scratch is a web-site that gives you step-by-step instructions on how to&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p><a href="http://www.linuxfromscratch.org/" title="Linux From Scratch" target="_blank" rel="noopener noreferrer">Linux from scratch</a> is a web-site that gives you step-by-step instructions on how to build your own version of Linux. It&#8217;s a minimal install, without any GUI even DHCP is not configured by default. The instructions are fairly straightforward but they don&#8217;t refer to any type of hardware. In this article I&#8217;ll describe how to build a bootable Linux as a VM on VMware Workstation. I strongly suggest that you read through the entire book. I&#8217;ll use shortcuts and skip stuff that&#8217;s not necessary, so it&#8217;s better to have the book in front of you. </p>
<p>You&#8217;ll need VMware Workstation (I used version 9.0.2), LiveCD of CentOS version 6.4, putty and the <a href="http://www.linuxfromscratch.org/lfs/downloads/7.3/LFS-BOOK-7.3.pdf" target="_blank" rel="noopener noreferrer">LFS book v7.3</a>. Make sure you can allocate 2GB of RAM, 20GB disk and if you can, add 2 CPUs for faster compilation. </p>
<p>Boot from the LiveCD and once you see the CentOS running, open the terminal from the Applications menu. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2013/09/P031-01.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/09/P031-01.png" alt="" width="639" height="274" class="aligncenter size-full wp-image-6740" srcset="https://blog.andreev.it/wp-content/uploads/2013/09/P031-01.png 639w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-01-300x129.png 300w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-01-585x251.png 585w" sizes="(max-width: 639px) 100vw, 639px" /></a></p>
<p>Then type: </p>
<pre class="brush: bash; title: ; notranslate">
sudo fdisk -l
</pre>
<p>If you see <strong><em>/dev/sda</em></strong> at the end of the output, you are OK. In addition do:</p>
<pre class="brush: bash; title: ; notranslate">
sudo ifconfig -a
sudo route -n
</pre>
<p>Make sure that you have an IP assigned to <em>eth0</em> interface and that you can actually browse the internet (e.g. <em>ping www.yahoo.com</em> should resolve to some IP). Write down the IP, subnet mask, gateway and the broadcast IP. You&#8217;ll need these later. Then log as root.</p>
<pre class="brush: bash; title: ; notranslate">
su -
chkconfig sshd on
service sshd start
chkconfig iptables off
service iptables stop
passwd root
</pre>
<p>These commands enable and start the ssh daemon and disable and stop the firewall. The last command asks you to change the root password. We&#8217;ll use putty instead of the VM console, because it&#8217;s easier to copy and paste text from the book. Create a new putty session and log as root using the password that you&#8217;ve just changed and IP address that you got from <em>ifconfig</em> output. Now, copy and paste the script on <strong><em>page xvii</em>i</strong> from the book. Most likely, you&#8217;ll see an output like this.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2013/09/P031-02.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/09/P031-02.png" alt="" width="741" height="665" class="aligncenter size-full wp-image-6741" srcset="https://blog.andreev.it/wp-content/uploads/2013/09/P031-02.png 741w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-02-300x269.png 300w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-02-585x525.png 585w" sizes="(max-width: 741px) 100vw, 741px" /></a><br />
This tells us that we need bison, gcc and texinfo. Install them.</p>
<pre class="brush: bash; title: ; notranslate">
yum install bison
</pre>
<p>Answer <strong><em>y</em></strong> when prompted. </p>
<pre class="brush: bash; title: ; notranslate">
ln –s /usr/bin/bison /usr/bin/yacc
</pre>
<p>Install gcc and texinfo. </p>
<pre class="brush: bash; title: ; notranslate">
yum install gcc
yum install texinfo
</pre>
<p>Mind that you are installing these programs on a RAM disk, not on a drive, so if you decide to take a break, shut down the VM  and continue later, you won&#8217;t be able to do so. You&#8217;ll have to do everything from the beginning. </p>
<p>Now it&#8217;s time to create the partitions. We&#8217;ll create one root partition and one swap. </p>
<pre class="brush: bash; title: ; notranslate">
fdisk /dev/sda
</pre>
<p>Type <strong><em>n</em></strong> for a new partition, type <strong><em>p</em></strong> for primary, type <strong><em>1</em></strong> for first partition, hit enter for default 1 and type <strong><em>+18432M</em></strong>. +18432M means 18432MB or 18GB. That&#8217;s because we have 20GB drive and we&#8217;ll use 18GB for the Linux partition and 2GB for swap. If you decided to use a bigger or smaller disk, adjust your values.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2013/09/P031-03.jpg"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/09/P031-03.jpg" alt="" width="622" height="488" class="aligncenter size-full wp-image-6742" srcset="https://blog.andreev.it/wp-content/uploads/2013/09/P031-03.jpg 622w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-03-300x235.jpg 300w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-03-585x459.jpg 585w" sizes="(max-width: 622px) 100vw, 622px" /></a></p>
<p>Create the swap now. Again, use <strong><em>n</em></strong> for a new partition, <strong><em>p</em></strong> for a primary primary partition and use default values afterwards. This will create a swap partition using the rest of the disk. Finally, type <strong><em>t</em></strong> to change the the type of the partition number <strong><em>2</em></strong>, and use code <strong><em>82</em></strong> for swap. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2013/09/P031-04.jpg"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/09/P031-04.jpg" alt="" width="635" height="506" class="aligncenter size-full wp-image-6743" srcset="https://blog.andreev.it/wp-content/uploads/2013/09/P031-04.jpg 635w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-04-300x239.jpg 300w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-04-585x466.jpg 585w" sizes="(max-width: 635px) 100vw, 635px" /></a></p>
<p>Write the changes using <strong><em>w</em></strong> and then do:</p>
<pre class="brush: bash; title: ; notranslate">
fdisk -l
</pre>
<p>You should have an output like this at the end.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2013/09/P031-05.jpg"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/09/P031-05.jpg" alt="" width="636" height="346" class="aligncenter size-full wp-image-6744" srcset="https://blog.andreev.it/wp-content/uploads/2013/09/P031-05.jpg 636w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-05-300x163.jpg 300w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-05-585x318.jpg 585w" sizes="(max-width: 636px) 100vw, 636px" /></a></p>
<p>Create the partitions. </p>
<pre class="brush: bash; title: ; notranslate">
mke2fs -jv /dev/sda1
mkswap /dev/sda2
</pre>
<p>Look at page 15, paragraph <em>2.4. Mounting the New Partition</em> and execute those commands. Replace <strong><em><xxx></em></strong> with <strong><em>sda1</em></strong>. We won&#8217;t have any separate partition for <strong><em>/usr</em></strong>, so the commands are:</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2013/09/P031-06.jpg"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/09/P031-06.jpg" alt="" width="645" height="495" class="aligncenter size-full wp-image-6745" srcset="https://blog.andreev.it/wp-content/uploads/2013/09/P031-06.jpg 645w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-06-300x230.jpg 300w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-06-585x449.jpg 585w" sizes="(max-width: 645px) 100vw, 645px" /></a></p>
<p>Execute these three commands: </p>
<pre class="brush: bash; title: ; notranslate">
mkdir -v $LFS/sources
chmod -v a+wt $LFS/sources
cd /mnt/lfs/sources
</pre>
<p>At this point if you want to shut down the VM and continue later, you&#8217;ll still have to go through enabling sshd, disabling firewall, installing gcc, bison&#8230;and executing the commands for defining the LFS. The only thing that you don&#8217;t have to do is the fdisk part and creating partitions. </p>
<p>The next part deals with downloading all of the necessary programs. I made a list with the URL links, so download this file <a href="http://blog.andreev.it/wp-content/uploads/2013/09/wget-list.txt">file</a>, once it opens up in a browser, select all, copy, then go back to your putty session. There, type:</p>
<pre class="brush: bash; title: ; notranslate">
vi wget-list
</pre>
<p>Then hit <strong><em>i</em></strong> key, right-click to paste, hit <strong><em>ESC</em></strong> and then hit <strong><em>:wq</em></strong> to save and quit. You should have a file called wget-list. Type the following command to verify.</p>
<pre class="brush: bash; title: ; notranslate">
ls -l
</pre>
<p>Make sure that you are actually in sources folder by issuing <em>pwd</em> command. </p>
<pre class="brush: bash; title: ; notranslate">
pwd
</pre>
<p>Now, execute <em>wget</em> to download all of the sources.</p>
<pre class="brush: bash; title: ; notranslate">
wget -i wget-list -P $LFS/sources
</pre>
<p>The only program that I had problems downloading it was zlib, so you can execute this command below. Hit ENTER once it completes. In addition, when you start the installation of all these 71 files that you&#8217;ve downloaded, some might be missing in case some of the URLs change. In that case, just google e.g. zlib-1.2.tar.bz2 for example and once you found the link, do <em>wget link</em>. Same thing that I did with zlib (command below).</p>
<pre class="brush: bash; title: ; notranslate">
wget http://downloads.sourceforge.net/project/libpng/zlib/1.2.7/zlib-1.2.7.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Flibpng%2Ffiles%2Fzlib%2F1.2.7%2F&amp;amp;ts=1376492544&amp;amp;use_mirror=hivelocity
</pre>
<p>Once all files are downloaded, type:</p>
<pre class="brush: bash; title: ; notranslate">
ls | wc -l
</pre>
<p>You should have 72 as a result. 71 files + the wget-list file. If the number is not correct, scroll up in putty and see what failed. You might also want to increase the number of scrollback buffer lines in putty.</p>
<p>Finally, execute these commands.</p>
<pre class="brush: bash; title: ; notranslate">
mkdir -v $LFS/tools
ln -sv $LFS/tools /
</pre>
<p>Look at page 27, <em>4.3. Adding the LFS user</em> and <em>4.4. Setting Up the Environment</em>. Do exactly what they say. </p>
<p>Now that we have all the sources downloaded, we need to install them. This is a screenshot from the book. It says that it is very important and it is.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2013/09/P031-07.jpg"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/09/P031-07.jpg" alt="" width="648" height="260" class="aligncenter size-full wp-image-6746" srcset="https://blog.andreev.it/wp-content/uploads/2013/09/P031-07.jpg 648w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-07-300x120.jpg 300w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-07-585x235.jpg 585w" sizes="(max-width: 648px) 100vw, 648px" /></a></p>
<p>In other words, once you are in <strong><em>/mnt/lfs/sources</em></strong>, you&#8217;ll be doing <strong><em>tar xvf <filename></em></strong> for all sources as described starting as of page 35. For example for the first source you&#8217;ll do:</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2013/09/P031-08.jpg"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/09/P031-08.jpg" alt="" width="472" height="135" class="aligncenter size-full wp-image-6747" srcset="https://blog.andreev.it/wp-content/uploads/2013/09/P031-08.jpg 472w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-08-300x86.jpg 300w" sizes="(max-width: 472px) 100vw, 472px" /></a></p>
<p>IMPORTANT: make sure that you are in <strong><em>/mnt/lfs/sources</em></strong>, do <strong><em>tar xvf whatever.gz</em></strong> or <strong><em>tar xvf whatever.xz</em></strong>. Once the files are extracted you&#8217;ll have to <strong><em>cd</em></strong> to that directory and follow up the instructions for compiling the source. Once you are done, go back using <strong><em>cd ..</em></strong>, and then delete the source extract folder with <strong><em>rm -Rf binutils-2.23.1</em></strong> and any other directories that you were instructed to do so. If you don&#8217;t do that, you&#8217;ll have problems when compiling these same programs later. </p>
<p>So, for the first program we&#8217;ll have to execute:</p>
<pre class="brush: bash; title: ; notranslate">
tar xvf binutils-2.23.1.tar.bz2
cd binutils-2.23.1
</pre>
<p>follow the instructions on page 35.</p>
<pre class="brush: bash; title: ; notranslate">
mkdir -v ../binutils-build
cd ../binutils-build
../binutils-2.23.1/configure \
--prefix=/tools \
--with-sysroot=$LFS \
--with-lib-path=/tools/lib \
--target=$LFS_TGT \
--disable-nls \
--disable-werror
</pre>
<p>The book mentions something called SBU (Standard Build Unit). For Binutils, SBU is 1.0 (you&#8217;ll see SBU value for all sources in the book). The SBU value depends on your hardware. On my laptop 1 SBU is about 5 mins. To check how much is 1 SBU on your computer, do <strong><em>time make -j2</em></strong> when compiling binutils. So, when it tells you to do <strong><em>make</em></strong>, do <strong><em>make -j2</em></strong>. If the book says it will take 5 SBUs, it means it takes about 25 minutes.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2013/09/P031-09.jpg"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/09/P031-09.jpg" alt="" width="648" height="317" class="aligncenter size-full wp-image-6748" srcset="https://blog.andreev.it/wp-content/uploads/2013/09/P031-09.jpg 648w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-09-300x147.jpg 300w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-09-585x286.jpg 585w" sizes="(max-width: 648px) 100vw, 648px" /></a></p>
<p>Finally, type:</p>
<pre class="brush: bash; title: ; notranslate">
make install
cd ..
rm -Rf binutils-build
rm -Rf binutils-2.23.1
</pre>
<p>If you get an error when you do <em>make install</em>, type <em>exit</em> and then:</p>
<pre class="brush: bash; title: ; notranslate">
chown -R lfs tools
su - lfs
cd /mnt/lfs/sources/binutils-build
make install
</pre>
<p>From now on, everything should be straightforward as described in the book. Follow the instructions to build the rest of the sources and stop once you reach page 74. </p>
<p>Once you have compiled all of the sources, type <em>exit</em> to go back logged as root. Make sure that <em><strong>echo $LFS</strong></em> returns <em><strong>/mnt/lfs</strong></em>. Otherwise, you&#8217;ll have to define it and make sure that the <em>/dev/sda1</em> is mounted. Skip the stripping part at paragraph <em>5.33 Stripping</em> and proceed with paragraph <em>5.34 Changing Ownership</em> logged as root. Do:</p>
<pre class="brush: bash; title: ; notranslate">
chown -R root:root $LFS/tools
</pre>
<p>Then, follow up instructions closely up to page 85. Once you reach page 86, make sure that you are in <strong><em>/sources</em></strong> folder. This is the same <strong><em>/mnt/lfs/sources</em></strong> folder, but this time you are running in <strong><em><a href="http://en.wikipedia.org/wiki/Chroot" target="_blank" rel="noopener noreferrer">chroot</a></em></strong> environment. At this point, LFS does not have to be defined. The same rules apply here as well: Make sure you are in <em><strong>/sources</strong></em> environment, extract the tarball with <em><strong>tar xvf, cd </strong></em>to that folder and follow up the instructions. For example, for the first tarball, do:</p>
<pre class="brush: bash; title: ; notranslate">
tar xvf linux-3.8.1.tar.xz
cd linux-3.8.1
make mrporper
make headers_check
make INSTALL_HDR_PATH=dest headers_install
find dest/include \( -name .install -o -name ..install.cmd \) -delete
cp -rv dest/include/* /usr/include
cd ..
rm -Rf linux-3.8.1
</pre>
<p>Similarly to what you did before, just follow up instructions for all tarballs. Pay special attention for the checks especially for binutils, gcc and mpfr. Once you reach page 196, feel free to skip paragraph <em>6.63 About Debugging Symbols</em> and <em>6.64 Stripping Again</em>. Now, type:</p>
<pre class="brush: bash; title: ; notranslate">
logout
</pre>
<p>and re-enter again with:</p>
<pre class="brush: bash; title: ; notranslate">
chroot &quot;$LFS&quot; /usr/bin/env -i \
HOME=/root TERM=&quot;$TERM&quot; PS1='\u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/bin/bash --login
</pre>
<p>Create the network interface configuration file. </p>
<pre class="brush: bash; title: ; notranslate">
cd /etc/sysconfig/
cat &gt; ifconfig.eth0 &lt;&lt; &quot;EOF&quot;
ONBOOT=yes
IFACE=eth0
SERVICE=ipv4-static
IP=192.168.1.1
GATEWAY=192.168.1.2
PREFIX=24
BROADCAST=192.168.1.255
EOF
</pre>
<p>Mind that DHCP won&#8217;t work. There is a section in the book <a href="http://www.linuxfromscratch.org/blfs/" target="_blank" rel="noopener noreferrer">Beyond LFS</a> that explains how to use DHCP. For now, just pick up a static IP that you can use. If your NIC in VMware Workstation is set for &#8220;Bridged&#8221;, then use an IP that&#8217;s in the same subnet as your Windows 7 host. If you use NAT, then the IP will most likely be in 192.168.something segment. Next, create the <strong><em>resolv.conf</em></strong> file. I use my provider&#8217;s DNS and one Google&#8217;s DNS. In my case it looks like this. If you are not on a Comcast network, put Google&#8217;s DNS first.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2013/09/P031-10.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/09/P031-10.png" alt="" width="373" height="204" class="aligncenter size-full wp-image-6749" srcset="https://blog.andreev.it/wp-content/uploads/2013/09/P031-10.png 373w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-10-300x164.png 300w" sizes="(max-width: 373px) 100vw, 373px" /></a></p>
<p>Create the <strong><em>/etc/hosts</em></strong> file as described on page 203. In my case, it looks like this.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2013/09/P031-11.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/09/P031-11.png" alt="" width="504" height="195" class="aligncenter size-full wp-image-6750" srcset="https://blog.andreev.it/wp-content/uploads/2013/09/P031-11.png 504w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-11-300x116.png 300w" sizes="(max-width: 504px) 100vw, 504px" /></a></p>
<p>Read everything up to page 209, when you need to install the bootscripts. Then, configure Sysvinit as described in paragraph <em>7.7.1 Configuring Sysvinit</em>. Follow the instructions up to page 222 and for the locale on page 222 use <em><strong>en_US.iso88591</strong></em>.</p>
<p>Finally for <em><strong>/etc/fstab</strong></em>, I&#8217;ve used these settings.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2013/09/P031-12.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/09/P031-12.png" alt="" width="555" height="318" class="aligncenter size-full wp-image-6751" srcset="https://blog.andreev.it/wp-content/uploads/2013/09/P031-12.png 555w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-12-300x172.png 300w" sizes="(max-width: 555px) 100vw, 555px" /></a></p>
<p>Now, the most important part comes with the kernel configuration and compiling. The book is vague about what options to use, and if you don&#8217;t use the proper options, the server will boot up and stop with a kernel panic error. </p>
<p>So, do:</p>
<pre class="brush: bash; title: ; notranslate">
cd /sources
tar xvf linux-3.8.1.tar.xz
cd linux-3.8.1
make mrproper
make menuconfig
</pre>
<p>When this screen shows up, make sure you know how to navigate and select/deselect options. It&#8217;s fairly simple.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2013/09/P031-13.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/09/P031-13.png" alt="" width="624" height="538" class="aligncenter size-full wp-image-6752" srcset="https://blog.andreev.it/wp-content/uploads/2013/09/P031-13.png 624w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-13-300x259.png 300w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-13-585x504.png 585w" sizes="(max-width: 624px) 100vw, 624px" /></a></p>
<p>For LFS to work as a VM, you must select (built-in, not module):</p>
<p>&#8211; Device Drivers, Generic Driver Options, Maintain a devtmpfs filesystem to mount at /dev<br />
&#8211; Device Drivers, Network device support, Ethernet Driver support, AMD PCnet32 PCI support<br />
&#8211; Device Drivers, Fusion MPT device support (select the three drivers for SPI, FC, SAS)<br />
&#8211; Device Drivers, SCSI device support, SCSI low-level drivers<br />
&#8211; File Systems, Ext3 Journaling file system support</p>
<p>Once you exit the kernel configuration, do: </p>
<pre class="brush: bash; title: ; notranslate">
make
make modules_install
cp -v arch/x86/boot/bzImage /boot/vmlinuz-3.8.1-lfs-7.3
cp -v System.map /boot/System.map-3.8.1
cp -v .config /boot/config-3.8.1
install -d /usr/share/doc/linux-3.8.1
cp -r Documentation/* /usr/share/doc/linux-3.8.1
</pre>
<p>Finally, create <strong><em>/etc/modprobe.d/usb.conf</em></strong> by running the following:</p>
<pre class="brush: bash; title: ; notranslate">
install -v -m755 -d /etc/modprobe.d
cat &gt; /etc/modprobe.d/usb.conf &lt;&lt; &quot;EOF&quot;
# Begin /etc/modprobe.d/usb.conf
install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i ohci_hcd ; true
install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i uhci_hcd ; true
# End /etc/modprobe.d/usb.conf
EOF
</pre>
<p>Now, install the GRUB bootloader with:</p>
<pre class="brush: bash; title: ; notranslate">
grub-install /dev/sda
</pre>
<p>When it completes, create the bootloader config file with:</p>
<pre class="brush: bash; title: ; notranslate">
cat &gt; /boot/grub/grub.cfg &lt;&lt; &quot;EOF&quot;
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod ext2
set root=(hd0,1)
menuentry &quot;GNU/Linux, Linux 3.8.1-lfs-7.3&quot; {
linux /boot/vmlinuz-3.8.1-lfs-7.3 root=/dev/sda1 ro
}
EOF
</pre>
<p>Command <strong><em>set root=hd(0,1)</em></strong> means we will use first hard drive (0) and the first partition (1). The syntax is misleading, but it&#8217;s how it works. The parameter <strong><em>root=/dev/sda1</em></strong> means that <strong><em>/dev/sda1</em></strong> is where our root partition is.</p>
<p>That&#8217;s it. Follow the simple clean-up in paragraph <em>9. The End</em>, and reboot with:</p>
<pre class="brush: bash; title: ; notranslate">
shutdown -r now
</pre>
<p>At this point, you want to disconnect the ISO image that you used to boot CentOS, so the VM boots up from the HDD, not the ISO image. If everything is OK, you&#8217;ll see the GRUB loader.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2013/09/P031-14.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/09/P031-14.png" alt="" width="718" height="393" class="aligncenter size-full wp-image-6753" srcset="https://blog.andreev.it/wp-content/uploads/2013/09/P031-14.png 718w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-14-300x164.png 300w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-14-585x320.png 585w" sizes="(max-width: 718px) 100vw, 718px" /></a></p>
<p>&#8230;.and if the kernel was properly configured and compiled, you&#8217;ll get the root prompt.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2013/09/P031-15.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/09/P031-15.png" alt="" width="724" height="493" class="aligncenter size-full wp-image-6754" srcset="https://blog.andreev.it/wp-content/uploads/2013/09/P031-15.png 724w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-15-300x204.png 300w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-15-585x398.png 585w" sizes="(max-width: 724px) 100vw, 724px" /></a></p>
<p>From the last screenshot, you can see that the NIC card was not recognized as <em>eth0</em>. But, look closer at the top of the screenshot and you&#8217;ll see that the NIC was renamed as <em>enp2s1</em>. That&#8217;s because of the udev scripts. I didn&#8217;t have any success in making the NIC work as eth0, so in order to make the NIC work, just log as root. Then:</p>
<pre class="brush: bash; title: ; notranslate">
mv /etc/sysconfig/ifconfig.eth0 /etc/sysconfig/ifconfig.enp2s1
</pre>
<p>Edit the <strong>ifconfig.enp2s1</strong> file with vi or vim and change <strong><em>IFACE=eth0</em></strong> to <em><strong>IFACE=enp2s1</strong></em>.</p>
<p>As previously mentioned, make sure you assign a static IP (you wrote down that IP from the beginning, right?) that can reach the outside world, either by using NAT or Bridged settings under NIC settings in VMware Workstation. </p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2013/09/P031-16.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2013/09/P031-16.png" alt="" width="585" height="161" class="aligncenter size-full wp-image-6755" srcset="https://blog.andreev.it/wp-content/uploads/2013/09/P031-16.png 585w, https://blog.andreev.it/wp-content/uploads/2013/09/P031-16-300x83.png 300w" sizes="(max-width: 585px) 100vw, 585px" /></a><br />
Once you are able to ping the outside world, I can only say CONGRATULATIONS!!!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2013/09/linux-from-scratch-as-a-virtual-machine-on-vmware-workstation/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>ESX/ESXi : MS-DOS 6.22 and MS Network Client running on VMware Workstation</title>
		<link>https://blog.andreev.it/2012/08/ms-dos-6-22-and-ms-network-client-running-on-vmware-workstation/</link>
					<comments>https://blog.andreev.it/2012/08/ms-dos-6-22-and-ms-network-client-running-on-vmware-workstation/#comments</comments>
		
		<dc:creator><![CDATA[Kliment Andreev]]></dc:creator>
		<pubDate>Tue, 21 Aug 2012 17:02:01 +0000</pubDate>
				<category><![CDATA[ESX/ESXi]]></category>
		<category><![CDATA[MS-DOS]]></category>
		<category><![CDATA[VMWare Workstation]]></category>
		<guid isPermaLink="false">http://blog.iandreev.com/?p=432</guid>

					<description><![CDATA[Recently I needed to analyze one of my ancient C programs that was running&#8230;]]></description>
										<content:encoded><![CDATA[<div id="bsf_rt_marker"></div><p>Recently I needed to analyze one of my ancient C programs that was running under MS DOS. I had some problems converting it to gcc or Visual C++, because this program was written in Borland Turbo C 2.0, which uses quite non-standard procedures. So, I’ve decided to build a DOS VM and install Turbo C 2.0 which is a free download from <a href="http://edn.embarcadero.com/article/20841" target="_blank" rel="noopener noreferrer">here</a>. In addition, I’ve decided to connect this VM box to the network. In order to do that, I needed:</p>
<ul>
<li><a href="https://www.vmware.com/products/workstation" target="_blank" rel="noopener noreferrer">VMware Workstation</a> (<a href="https://www.virtualbox.org/wiki/Downloads" target="_blank" rel="noopener noreferrer">VirtualBox</a> might also work)</li>
<li>MS DOS 6.22 install files (you have to find these somehow)</li>
<li>MS Network Client 3.0 for DOS (free download from <a href="ftp://ftp.microsoft.com/bussys/clients/msclient/dsk3-1.exe">here</a> and <a href="ftp://ftp.microsoft.com/bussys/clients/msclient/dsk3-2.exe">here</a>)</li>
<li>MS DOS driver for AMDPCNet network card (attached as <a href="https://blog.andreev.it/wp-content/uploads/2012/08/AMD.zip">AMD.zip</a>)</li>
<li>WinImage (shareware version, you can use it for 30 days for free, download <a href="http://www.winimage.com/download.htm" target="_blank" rel="noopener noreferrer">here</a>)</li>
<li> DOS CD driver (attached as <a href="https://blog.andreev.it/wp-content/uploads/2012/08/DOSCDDRV.zip">DOSCDDRV.ZIP</a>)
</ul>
<p>First, click on “<strong>New Virtual Machine</strong>” and select “<strong>Typical</strong>” settings. Click <strong>Next</strong>.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-01.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-01.png" alt="" width="731" height="533" class="aligncenter size-full wp-image-6193" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-01.png 731w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-01-300x219.png 300w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-01-585x427.png 585w" sizes="(max-width: 731px) 100vw, 731px" /></a><br />
Choose to &#8220;<strong>Install the operating system later</strong>&#8221;</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-02.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-02.png" alt="" width="437" height="391" class="aligncenter size-full wp-image-6194" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-02.png 437w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-02-300x268.png 300w" sizes="(max-width: 437px) 100vw, 437px" /></a><br />
Select &#8220;<strong>Other</strong>&#8221; and &#8220;<strong>MS-DOS</strong>&#8220;, then click &#8220;<strong>Next</strong>&#8220;.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-03.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-03.png" alt="" width="437" height="397" class="aligncenter size-full wp-image-6195" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-03.png 437w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-03-300x273.png 300w" sizes="(max-width: 437px) 100vw, 437px" /></a><br />
Type a name for the virtual machine, in my case it was &#8220;<strong>MS-DOS</strong>&#8221;</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-04.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-04.png" alt="" width="438" height="397" class="aligncenter size-full wp-image-6196" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-04.png 438w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-04-300x272.png 300w" sizes="(max-width: 438px) 100vw, 438px" /></a><br />
Select the size of the hard drive for DOS, in my case 8GB is more than enough.<br />
<strong>NOTE: Use 2GB, DOS won&#8217;t see more than this.</strong></p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-05.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-05.png" alt="" width="442" height="401" class="aligncenter size-full wp-image-6197" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-05.png 442w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-05-300x272.png 300w" sizes="(max-width: 442px) 100vw, 442px" /></a><br />
Finally, click &#8220;<strong>Next</strong>&#8221; and &#8220;<strong>Finish</strong>&#8220;.<br />
<a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-06.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-06.png" alt="" width="427" height="395" class="aligncenter size-full wp-image-6198" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-06.png 427w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-06-300x278.png 300w" sizes="(max-width: 427px) 100vw, 427px" /></a><br />
<strong>NOTE: If you have your MS-DOS files on a physical floppy, you can tell VMware Workstation to use them directly. If not, make sure that these virtual floppy files are in IMG format. Use this <strong>link </strong>to see how to make an IMG file, but pretty much, just use WinImage.</strong><br />
<a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-07.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-07.png" alt="" width="821" height="281" class="aligncenter size-full wp-image-6199" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-07.png 821w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-07-300x103.png 300w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-07-768x263.png 768w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-07-585x200.png 585w" sizes="(max-width: 821px) 100vw, 821px" /></a><br />
Click on “<strong>Edit virtual machine settings</strong>”, select the Floppy drive, make sure that “<strong>Connect at power on</strong>” is checked, and then select one of the two options: Use physical drive or use floppy image file. Click “<strong>OK</strong>” and click “<strong>Power on this virtual machine</strong>”, just above “<strong>Edit virtual machine settings</strong>”. You can ignore this message; you can even remove the CD/DVD and Sound Card from the list of devices so you don’t get this error.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-08.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-08.png" alt="" width="588" height="218" class="aligncenter size-full wp-image-6200" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-08.png 588w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-08-300x111.png 300w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-08-585x218.png 585w" sizes="(max-width: 588px) 100vw, 588px" /></a><br />
If everything is OK, you should see this menu.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-09.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-09.png" alt="" width="740" height="539" class="aligncenter size-full wp-image-6201" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-09.png 740w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-09-300x219.png 300w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-09-585x426.png 585w" sizes="(max-width: 740px) 100vw, 740px" /></a><br />
Hit <strong>Enter</strong>, accept the default to configure the disk and hit <strong>Enter </strong>again.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-10.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-10.png" alt="" width="580" height="73" class="aligncenter size-full wp-image-6202" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-10.png 580w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-10-300x38.png 300w" sizes="(max-width: 580px) 100vw, 580px" /></a><br />
Hit <strong>Enter </strong>when prompted to reboot.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-11.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-11.png" alt="" width="463" height="177" class="aligncenter size-full wp-image-6203" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-11.png 463w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-11-300x115.png 300w" sizes="(max-width: 463px) 100vw, 463px" /></a><br />
The install will format the drive and then prompt you to change these system settings. Hit <strong>Enter </strong>if you are OK with these settings.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-12.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-12.png" alt="" width="582" height="193" class="aligncenter size-full wp-image-6204" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-12.png 582w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-12-300x99.png 300w" sizes="(max-width: 582px) 100vw, 582px" /></a><br />
Select the destination folder for the MS-DOS OS and hit <strong>Enter</strong>.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-13.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-13.png" alt="" width="497" height="108" class="aligncenter size-full wp-image-6205" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-13.png 497w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-13-300x65.png 300w" sizes="(max-width: 497px) 100vw, 497px" /></a><br />
When the install requests the 2<sup>nd</sup> disk, right-click the floppy icon in the lower-right corner of the VM, choose <strong>Settings</strong>,&#8230;.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-14.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-14.png" alt="" width="701" height="351" class="aligncenter size-full wp-image-6206" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-14.png 701w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-14-300x150.png 300w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-14-585x293.png 585w" sizes="(max-width: 701px) 100vw, 701px" /></a><br />
&#8230;and select the 2<sup>nd</sup> floppy image file.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-15.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-15.png" alt="" width="603" height="240" class="aligncenter size-full wp-image-6207" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-15.png 603w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-15-300x119.png 300w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-15-585x233.png 585w" sizes="(max-width: 603px) 100vw, 603px" /></a><br />
Do the same when you are prompted for the 3<sup>rd</sup>disk. When finished, MS-DOS will tell you to remove the floppy from the drive. As you did before, right-click the floppy icon in the lower-right corner and choose <strong>Disconnect</strong>. Hit <strong>Enter </strong>twice and once the OS reboots, you’ll be greeted with plain old MS-DOS 6-22.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-16.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-16.png" alt="" width="740" height="539" class="aligncenter size-full wp-image-6208" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-16.png 740w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-16-300x219.png 300w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-16-585x426.png 585w" sizes="(max-width: 740px) 100vw, 740px" /></a><br />
Now, let’s do the networking part. We need to copy MS Network Client files to MS-DOS. Both these files are self-extracting images. Start <strong>WinImage</strong>, select <strong>File | New </strong>and accept the default settings.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-17.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-17.png" alt="" width="349" height="428" class="aligncenter size-full wp-image-6209" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-17.png 349w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-17-245x300.png 245w" sizes="(max-width: 349px) 100vw, 349px" /></a><br />
In the menu, click <strong>Image | Inject</strong>, select the <strong>dsk3-1.exe </strong>file, and click <strong>Yes </strong>when prompted. Then, click <strong>File | Save As</strong>, and from the drop-down menu select <strong>Virtual Floppy Image</strong>, type <strong>DISK1.FLP</strong> for the file name and click <strong>Save</strong>.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-18.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-18.png" alt="" width="571" height="556" class="aligncenter size-full wp-image-6210" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-18.png 571w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-18-300x292.png 300w" sizes="(max-width: 571px) 100vw, 571px" /></a><br />
Go back to DOS VM and mount this virtual floppy as previously described. In DOS type:</p>
<pre class="brush: powershell; title: ; notranslate">
C:\&gt;A:
A:\&gt;dir
</pre>
<p>You should see that <strong>DSK3-1.EXE</strong> is there.</p>
<pre class="brush: powershell; title: ; notranslate">
A:\&gt;mkdir c:\temp\d1
A:\&gt;dsk3-1 c:\temp\d1
</pre>
<p>Go back to <strong>WinImage </strong>and create a virtual floppy for the second file <strong>DSK3-2.EXE</strong>. Mount the <strong>DISK2.FLP</strong> in VMware Workstation and again:</p>
<pre class="brush: powershell; title: ; notranslate">
A:\&gt;mkdir c:\temp\d2
A:\&gt;dsk3-2 c:\temp\d2
</pre>
<p>Now, extract <strong>AMD.zip</strong> somewhere on your desktop, open the archive and create another virtual floppy. This time instead of injecting three files, just choose the option to inject the <strong>NICdrv </strong>folder. Finally, mount the virtual floppy under DOS. In DOS start typing:</p>
<pre class="brush: powershell; title: ; notranslate">
A:\&gt;cd c:\temp\d1
A:\&gt;C:
C:\temp\d1\&gt;setup
</pre>
<p>When prompted hit <strong>Enter</strong>, choose the default directory <strong>C:\NET</strong> and after 10-15 seconds, select <strong>*Network adapter not shown on list below</strong>.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-19.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-19.png" alt="" width="470" height="108" class="aligncenter size-full wp-image-6211" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-19.png 470w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-19-300x69.png 300w" sizes="(max-width: 470px) 100vw, 470px" /></a><br />
The installer will prompt you for the path to the drivers,  so just delete the default <strong>C:\temp\d1</strong> and replace it with <strong>A:\</strong><br />
Hit enter twice until you are prompted to enter the username. Put whatever you want. DOS will use your username and make it also the computer name. When you reach to this screen&#8230;</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-20.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-20.png" alt="" width="670" height="346" class="aligncenter size-full wp-image-6212" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-20.png 670w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-20-300x155.png 300w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-20-585x302.png 585w" sizes="(max-width: 670px) 100vw, 670px" /></a><br />
&#8230; scroll up to “<strong>Change Names</strong>” and change the computer name to something else if you want. The most important thing is to change the network configuration. By default, TCP/IP is not installed, so go to “<strong>Change Network Configuration</strong>”, select “<strong>Add Protocol</strong>”&#8230;</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-21.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-21.png" alt="" width="572" height="276" class="aligncenter size-full wp-image-6213" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-21.png 572w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-21-300x145.png 300w" sizes="(max-width: 572px) 100vw, 572px" /></a><br />
&#8230;  and select &#8220;<strong>Microsoft TCP/IP</strong>&#8221; protocol.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-22.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-22.png" alt="" width="573" height="113" class="aligncenter size-full wp-image-6214" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-22.png 573w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-22-300x59.png 300w" sizes="(max-width: 573px) 100vw, 573px" /></a><br />
Use TAB between the two boxes, select the NWLink IPX protocol, TAB to the other box, and choose Remove.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-23.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-23.png" alt="" width="592" height="290" class="aligncenter size-full wp-image-6215" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-23.png 592w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-23-300x147.png 300w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-23-585x287.png 585w" sizes="(max-width: 592px) 100vw, 592px" /></a><br />
Finally, select “<strong>Microsoft TCP/IP</strong>”, TAB to “<strong>Change Settings</strong>”, and use “<strong>DHCP</strong>” for the IP or you can put a static IP if needed.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-24.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-24.png" alt="" width="587" height="211" class="aligncenter size-full wp-image-6216" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-24.png 587w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-24-300x108.png 300w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-24-585x211.png 585w" sizes="(max-width: 587px) 100vw, 587px" /></a><br />
Hit <strong>ENTER </strong>twice, type <strong>C:\temp\d2 </strong>when prompted for the second disk and finally, after DOS reboots log with your username. At this point, you can create a password.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-25.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-25.png" alt="" width="521" height="133" class="aligncenter size-full wp-image-6217" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-25.png 521w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-25-300x77.png 300w" sizes="(max-width: 521px) 100vw, 521px" /></a><br />
To test your network settings, do <strong>ipconfig c:\net</strong>. Remember the syntax, it’s not just <strong>ipconfig</strong>.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-26.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-26.png" alt="" width="621" height="279" class="aligncenter size-full wp-image-6218" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-26.png 621w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-26-300x135.png 300w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-26-585x263.png 585w" sizes="(max-width: 621px) 100vw, 621px" /></a><br />
Ping your gateway IP.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-27.png"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-27.png" alt="" width="686" height="88" class="aligncenter size-full wp-image-6219" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-27.png 686w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-27-300x38.png 300w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-27-585x75.png 585w" sizes="(max-width: 686px) 100vw, 686px" /></a><br />
If it works you are all set. If there are any problems, you may refer to <a href="http://technet.microsoft.com/en-us/library/cc750214.aspx" target="_blank" rel="noopener noreferrer">this link</a> for troubleshooting.</p>
<p>If you want to add a CD-ROM to your DOS install, download the <strong>DOSCDDRV.ZIP</strong>. The link is all the way up.<br />
Unzip it and you&#8217;ll have an IMG file. Mount the IMG file as you did with the DOS IMG floppies, copy the <strong>oakcdrom.sys</strong> file to <strong>C:\DOS</strong> folder and then add the highlighted lines to <strong>config.sys</strong> and <strong>autoexec.bat</strong>.</p>
<p><a href="https://blog.andreev.it/wp-content/uploads/2012/08/P024-28.jpg"><img loading="lazy" decoding="async" src="https://blog.andreev.it/wp-content/uploads/2012/08/P024-28.jpg" alt="" width="450" height="257" class="aligncenter size-full wp-image-6220" srcset="https://blog.andreev.it/wp-content/uploads/2012/08/P024-28.jpg 450w, https://blog.andreev.it/wp-content/uploads/2012/08/P024-28-300x171.jpg 300w" sizes="(max-width: 450px) 100vw, 450px" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.andreev.it/2012/08/ms-dos-6-22-and-ms-network-client-running-on-vmware-workstation/feed/</wfw:commentRss>
			<slash:comments>8</slash:comments>
		
		
			</item>
	</channel>
</rss>
