{"id":671,"date":"2012-02-23T19:04:34","date_gmt":"2012-02-23T23:04:34","guid":{"rendered":"http:\/\/mikemartinezonline.com\/blog\/?p=671"},"modified":"2012-12-23T05:20:29","modified_gmt":"2012-12-23T09:20:29","slug":"installing-sql-server-2008r2-to-windows-7-vm","status":"publish","type":"post","link":"https:\/\/mikemartinezonline.com\/blog\/2012\/02\/23\/installing-sql-server-2008r2-to-windows-7-vm\/","title":{"rendered":"Installing SQL Server 2008R2 to Windows 7 VM"},"content":{"rendered":"<p>While installing an instance of SQL2008R2 to a Windows 7 Workstation VM (used by my programmers) on my VMWare vSphere cluster I ran into a problem.<\/p>\n<p>While the SQL installation seemed to go OK, it hung up toward the end during &#8216;Windows Installation Final Tasks &#8211; Clean up processes&#8230;&#8221; or something at &#8220;Install_sqlncli_Cpu64_Action&#8221;<br \/>\nThe install just hung forever &#8211; let it actually try to run over night and it never completed.<\/p>\n<p>The solution is simple, and kind of a &#8216;duh&#8217;.<br \/>\nSQL2008R2 needs 4GB RAM and minimum of 4 cores\/processors.<br \/>\nMy Production SQL VM&#8217;s easily met this criteria but not so with the workstations.<br \/>\nSo simply cancelled the installation. Shut down the VM. Edited the VM &#8211; upped RAM to 6GB and processors to 4.<br \/>\nRestart VM then let it boot and let Win7 reconfigure itself. It will require another reboot.<br \/>\nI then completely uninstalled the failed installation. Then rebooted.<br \/>\nAlso remember that this is REALLY IMPORTANT!! &#8211; Open the ports on the Windows Firewall for SQL2008<\/p>\n<p>This can be done by copying the following (everything in between the break lines including the last &#8216;return&#8217; at the end) into a text file and renaming it with a .bat extension. something like &#8216;opensqlfirewallports.bat&#8217; or what ever and running it with administrative permissions.<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n@echo =========\u00a0 SQL Server Ports\u00a0 ===================<br \/>\n@echo Enabling SQLServer default instance port 1433<br \/>\nnetsh firewall set portopening TCP 1433 &#8220;SQLServer&#8221;<br \/>\n@echo Enabling Dedicated Admin Connection port 1434<br \/>\nnetsh firewall set portopening TCP 1434 &#8220;SQL Admin Connection&#8221;<br \/>\n@echo Enabling conventional SQL Server Service Broker port 4022<br \/>\nnetsh firewall set portopening TCP 4022 &#8220;SQL Service Broker&#8221;<br \/>\n@echo Enabling Transact-SQL Debugger\/RPC port 135<br \/>\nnetsh firewall set portopening TCP 135 &#8220;SQL Debugger\/RPC&#8221;<br \/>\n@echo =========\u00a0 Analysis Services Ports\u00a0 ==============<br \/>\n@echo Enabling SSAS Default Instance port 2383<br \/>\nnetsh firewall set portopening TCP 2383 &#8220;Analysis Services&#8221;<br \/>\n@echo Enabling SQL Server Browser Service port 2382<br \/>\nnetsh firewall set portopening TCP 2382 &#8220;SQL Browser&#8221;<br \/>\n@echo =========\u00a0 Misc Applications\u00a0 ==============<br \/>\n@echo Enabling HTTP port 80<br \/>\nnetsh firewall set portopening TCP 80 &#8220;HTTP&#8221;<br \/>\n@echo Enabling SSL port 443<br \/>\nnetsh firewall set portopening TCP 443 &#8220;SSL&#8221;<br \/>\n@echo Enabling port for SQL Server Browser Service&#8217;s &#8216;Browse&#8217; Button<br \/>\nnetsh firewall set portopening UDP 1434 &#8220;SQL Browser&#8221;<br \/>\n@echo Allowing multicast broadcast response on UDP (Browser Service Enumerations OK)<br \/>\nnetsh firewall set multicastbroadcastresponse ENABLE<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>I also added this registry key below. You can copy everything between the breaks and save as a .reg file if you&#8217;d like and run that \u2018as administrator\u2019 as well.<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\nWindows Registry Editor Version 5.00<\/p>\n<p>[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\MSSQLServer\\Client\\SuperSocketNetLib\\tcp]<br \/>\n&#8220;DefaultPort&#8221;=dword:00000599<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>After that I was able to very quickly install SQL2008R2.<br \/>\nDuring server configuration, under Account Name I selected &#8220;NT AUTHORITY\\SYSTEM&#8221;, leaving password blank. In addition I also changed its startup type from Automatic to Manual.<\/p>\n<p>Once installation was complete, I opened SQL Server Configuration Manager. The current setting was that I was logging on as built-in account &#8220;Local System&#8221;. I started the service without making any changes and this time it started without any error messages.<\/p>\n<p>Just thought I&#8217;d put this up for any of those who&#8217;ve had the same issue and as a reference for myself.<\/p>\n<p>To connect to the Server make sure you specify the machine name AND the server instance name: Windows7PC1\\SQL2008dev or whatever<\/p>\n<p>Well, until I hear differently from my Devs \ud83d\ude1b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While installing an instance of SQL2008R2 to a Windows 7 Workstation VM (used by my programmers) on my VMWare vSphere cluster I ran into a problem. While the SQL installation seemed to go OK, it hung up toward the end during &#8216;Windows Installation Final Tasks &#8211; Clean up processes&#8230;&#8221; or something at &#8220;Install_sqlncli_Cpu64_Action&#8221; The install &hellip; <a href=\"https:\/\/mikemartinezonline.com\/blog\/2012\/02\/23\/installing-sql-server-2008r2-to-windows-7-vm\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Installing SQL Server 2008R2 to Windows 7 VM&#8221;<\/span><\/a><\/p>\n","protected":false},"author":587,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[206,205,13,30,181,182],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/posts\/671"}],"collection":[{"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/users\/587"}],"replies":[{"embeddable":true,"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/comments?post=671"}],"version-history":[{"count":3,"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/posts\/671\/revisions"}],"predecessor-version":[{"id":902,"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/posts\/671\/revisions\/902"}],"wp:attachment":[{"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/media?parent=671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/categories?post=671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mikemartinezonline.com\/blog\/wp-json\/wp\/v2\/tags?post=671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}