I am doing a collection of blog posts, you can access the other parts of this post below.
- Part 1 – Introduction
- Part 2 – Setting up and configuring Host Computer using Hyper V and a Wireless Network
- Installing Windows Server 2012
- Installing SQL 2012
- Installing Office 2013
- Installing Visual Studio
- Setting up the Menu
- Part 4 – Installing Active Directory
- Part 5 – Configuring SQL 2012 ready for SharePoint 2013
- Part 6 – Installing SharePoint 2013
- Part 7 – Configuring Hosting Apps
- Part 8 – Configuring My Sites and User Profiles
- Part 9 – Configuring Workflow
- Part 10 – Setting up Visual Studio
Building a base disk to use for differencing disks.
Now as this is a single build machine, you might wonder why bother building a base disk for differencing? The reason is simply that it will save you time in the future, if you wish to expand your farm, or create another server at a later date. By doing this, you will find that all the default programs and updates are already on the machine.
What needs to go on here?
I would put on the base build everything that you probably will need on all your virtual machines. So I will be adding;
- Windows Server 2012 Standard Edition 64 bit.
- SQL 2012 Standard Edition 64 bit with SP1 – Basic set up with database and management studio
- Office 2013 – Access, Excel, InfoPath, Lync, OneNote, Outlook, PowerPoint, Publisher, Visio and Word
- PowerShell Plus from Idera
- Visual Studio 2012 Ultimate
Creating your Virtual Machine.
- Open up Hyper-V Manager.
- Under Actions, click on New and select Virtual Machine. Click Next.
- Name your Virtual Machine, and your choice if you wish to store the virtual machine in a different location.
- Assign it some memory. At this Stage just 6GB will be enough for installing everything. Click Next.
- Configure the Network to point to the Internal LAN connection that we made in the previous blog.
- Name your Virtual Hard disk. Change the location if you wish, and I’d recommend creating a 400GB hard disk. (If you have room). We will split the disk inside the virtual machine into 100GB and 300GB for C and D drive. Click Next.
- Installation Options, you can select Install an Operating system from a Boot CD/DVD-ROM and in my case I have selected the Windows Server 2012 Image file.
Install Windows 2012 Server Standard Edition.
Inside your Hyper V manager you should now see your Virtual machine. In my case it is called Cann0nF0dderBase. By right clicking on the machine you can connect to it. A window will open. You can then click the Start Button.
As your virtual machine starts up it will load the Windows 2012 files.
- Configure the language. Click Next.
- Then Click Install Now.
- Insert your product key. Click Next.
- Select Windows Server 2012 Standard (Server with a GUI) and then click Next.
- Tick I accept the license terms. And then click Next.
- Select the Custom: Install Windows only (advanced) option.
- In the Where do you want to install Windows. Select Drive options (advanced) and create a new space of 102400MB. This will create a 100GB space. Accept the message that says Windows might create additional partitions for system files. You should now see Drive 0 Partition 1: System Reserved, Drive 0 Partition 2 and Drive 0 Unallocated Space. Select the last one and click New, then Apply. This will set up your drive space. Click Next, and Windows 2012 will start installing.
- Once it has finished installing itself, it will ask you for a password for the Administrator. I use Pa55w0rd. Click Finish.
- Now you can log in. To perform Ctrl + Alt + Del in a Hyper V Machine. Press Ctrl + Alt + End.
- Before you continue any further, install Hyper V Client tools. At the menu on the Virtual Machine Connection, click Action > Insert Integration Services Setup Disk. Then run the setup disk. You will find the disk has been attached as drive E within your virtual Machine. It will warn you about upgrading to the latest version. Accept this, and restart the VM when requested.
Configuring Windows 2012
- Once you have logged back in again the Server Manager appears. On the left hand menu, click on Local Server. This will bring up all the properties for this machine.
- Disable the Windows Firewall, by clicking on the Windows Firewall Public: On link and then selecting Turn Windows Firewall on or off. And then turn the firewall off.
- Back on the properties screen click the On link for IE Enhanced Security Configuration. Then turn this off for Administrators and Users. Click OK.
- Go back to the Start menu by moving your mouse to the bottom left of the screen, or by pressing the windows key. Type UAC, and select settings from the right hand side. Click on Change User Account Control Settings.
- On the User Account Control Settings, move the slider down to the bottom. This will prevent the screen keep prompting you when an administrative task needs to be made. Click OK. A administrative prompt will appear, but this will be your last one.
- Back in the Server Manager properties window for the server. Enable Remote Desktop. Click the Disabled link. Then select Allow remote connections to this computer. Click OK.
- Back in the Server Manager properties window for the server, Click on Windows Update Not Configured link. This will open up the Windows Update dialog.
- Click Let me choose my settings. Then on Choose your Windows Update settings, I always have Download updates but let me choose whether to install them. And then I tick Recommended updates. Click OK.
- Your server will now check for updates. Install anything that is outstanding.
Apply the DisableLoopbackCheck Registry Fix.
- Click the Windows PowerShell icon in the Taskbar.
Run the following PowerShell commands, pressing [Enter] after each one:
$regKeyPath = "HKLM:\System\CurrentControlSet\Control\Lsa" $key = "DisableLoopbackCheck" New-ItemProperty –Path $regKeyPath –Name $key –Value "1" –PropertyType dword
Disable the Shutdown Event tracker.
- Open the start menu and type gpedit.msc. Click on the program to open it.
In Group Policy Editor, navigate to Computer Configuration\Administrative Templates\System, open the Display Shutdown Event Tracker policy, and set it to Disabled.
Now when you shut down you shouldn’t see the Shutdown tracker appear.
Enabling the Desktop Experience.
- Open up the Server Manager.
- On the right of the screen click Mange > Add Roles and Features
- Click Next.
- Ensure Role-based or Feature-based installation is selected. Click Next.
- On Select destination server click Next.
- On Select server roles click Next.
- On Select features. Expand User Interfaces and infrastructure (Installed) and tick Desktop Experience. Add the addition features that it requires. Click Next.
- Click Install.
Getting the Sound to work within your Virtual Machine.
Now you might have noticed there is no sound coming from your virtual machine. It might not bother you. It appears that you cannot get sound going through a Hyper V client window. However if you remote desktop onto the machine you can then get sound from your virtual machine, if you follow my previous blog on Getting sound to work within your Windows Server Hyper V Client.
Set up directories for SQL.
- Bring up Explorer by click on Windows Key + E.
- Double click on D drive. It will ask if you wish to format it. Say yes and format the disk.
Create the following Directories on D.
SQL 2012 Standard Edition 64 bit with SP1
Now we can Install SQL Server 2012 Standard Edition with SP1. Select the ISO in Virtual Machine Settings.
- Run Setup.exe
- The SQL Server Installation Center will open up. On the left hand side, click Installation.
- Click on New SQL Server stand-alone installation or add features to an existing installation
- After click next Setup support rules will identify any problems that might occur when installing SQL Server Setup support files. There should be all passes. Click OK.
- Choose Enter the product Key the product key should already be entered. Click Next.
- Accept the license terms. Click Next.
- The setup files will now install.
- Click Next
- On the Setup Role Page. Select SQL Server Feature Installation and click Next.
- On the Feature Selection Page. Select Database Engine Services, Full-Text and Semantic Extractions for Search. Then under Shared Features select Management Tools – Basic and Management Tools Complete. Click Next.
- On the Installation Rules page click Next.
- On the Instance Configuration page click Next.
- On the Disk Space Requirements page click Next.
- On the Server Configuration page, change the SQL Server Agent Start Up Type to Automatic. Click Next.
- On the Database Engine Configuration page. Select Mixed Mode and enter the password as Pa55word. And Click Add Current User.
On the Data Directories tab, change the data to the following.
- User Database Directory – d:\SQL\Data
- User Database Log Directory – d:\SQL\Logs
- Temp DB directory – d:\SQL\Temp\Data
- Temp DB Log Directory – d:\SQL\Temp\Logs
- Backup Directory – d:\SQL\BackUp
- On the FILESTREAM tab tick Enable FileStream for Transact-SQL access and Enable FILESTREAM for file I/O access. Click Next.
- On the Error Reporting page, click Next.
- On the Installation Configuration Rules page, click Next
- On the Ready to Install page, click Install.
- After installation your SQL Server 2012 is installed. You may be asked to reboot.
Installing Office 2013
Now we can Install Office 2013. Select the ISO in Virtual Machine Settings.
- Run Setup.exe
- Accept the license terms. Click Continue.
- I just except the defaults, and click Install Now.
- Office 2013 is now installed. You will be requested for the key code when you open up an office product.
Don’t forget that Visio is a separate installation. (I’m not going to teach you how to do Next Next on that as well. I think you can work it out yourself.
Installing Visual Studio.
Now we can Install Visual Studio 2012 Ultimate. Select the ISO in the Virtual Machine Settings. (Again I probably don’t need to walk you through this bit).
- Run VS_ultimate.exe
- Agree to the License terms and Conditions. Click Next
- Decide what you want to install, you will need Microsoft Office Developer Tools, Microsoft SharePoint Developer Tools, Silverlight Development Kits, and Microsoft Web Developer Tools. Blend for Visual Studio might be useful for SharePoint. Click Install.
Extra Stuff to install.
- PowerShell Plus from Idera – You will need to give your email address to them, but the free tool is useful.
Setting up the Menu.
If you currently look at your menu you will notice that everything is everywhere. You can click and drag tiles and position them in more logical sections. By moving them between other sections you can create new sections.
By clicking on the bottom right of the menu screen there is a minus icon. By clicking this, you will zoom out. Then by right clicking a section you can then name it.
I organised my menu to look like below screen shot.
Sysprep the machine.
As I have already written a blog on Sysprepping a machine while keeping the Menu the same after sysprep follow the following blog. Windows 8 and Windows Server 2012 Start Screen is Reset when Sysprep
Once you have completed the above post of Sysprep while keeping the Start menu. Do not turn on your Virtual Machine again. If you do it will start the Sysprep process. At this point, go to where the base hard drive is for the Virtual Machine, and set it to Read Only.
Create your SharePoint machine from your Base disk.
- First remove the Virtual Machine from the Hyper V manager. Select the base virtual machine and on the right hand side, under the machine name, click Delete. This just deletes the machine, but keeps the virtual machine disk. By deleting this from Hyper V there is no chance of accidently starting it.
- Next follow my previous blog on Creating your hyper V windows Server 2012 machine from a differencing disk.
- When you start up your new Virtual Machine based on the base disk, you will be required to enter a valid Key Code for Windows Server 2012 Standard Edition. Let the sysprep process complete, answer any installation questions required and then log in.
You now have a Windows Server 2012 with Office, SQL, Visual Studio ready for SharePoint 2013, or whatever else you might want to install on it instead.