This article assumes you already have a core server set up. If not click HERE first
These are the same steps required for setting up any version of Window Hyper V server.
There are essential 2 ways to add a virtual server to a core server. This article will discuss both ways as well as added tips and tricks that I learn on the way.
NEW SERVER INSTALL
So the first thing to remember regardless of method is to keep this ordered and logical. It is VERY easy to get confused.
- On the Core Server D: Drive using a UNC patch create a VMDATA folder (This assumes you have a C: drive partition for the core OS and a D: drive partition for the client OS)
- On new versions of Server Core, you may need to disable the firewall first, and allowing ping functionality (Option 4) before being able to create these folders.
Use the following commands:
-
- Now add 3 folders. ISOImages, VMHardDisks, VMMachines. This only needs doing once on a new Core Server.
-
By breaking the drive down into these 3 folders you should be able to keep track of what goes where. It is better to manually create these folders in advance based on what the new server name will be BEFORE creating the server.
You can now use Server Manager on another server to connect and continue the installation.
To add the new server, open up Server Manager, right click All Servers > Add Servers > Add the name of your new server > Find Now > Add Server > OK
This should allow you to manage the server remotely.
- In Server Manager > All Servers, right click the server and select > Add Roles and Features
- Next > Role-based or feature-based installation > Next > Select Server > Next
- Tick the Hyper V option > Add Features > Next . Next . Next. Next and eventually Install!
- Don’t worry about virtual switches or any of the other options yet. This will be set up later
- Right click Core server > New > Virtual Machine
- Add name (Keep the same as the VM name) and make sure the location is correct. Remember to browse to the folder you created earlier. KEEP IT LOGICAL!
- Browse to the folder you created earlier for the virtual machine location. Browsing does not always work properly, so if the image is on the D: drive, type D in the browse bar BEFORE browsing.
- Select Gen 1 (Best for Server 2008) or Gen 2 (Best for Server 2012) as per the description – I am selecting Gen 2
- Assign startup memory. Multiply 1024 x the amount to get the correct allocation. (May need to leave processor and memory for the host server)
- Under networking, select the virtual switch created *
- Connect virtual hard disk – Because this is a new install select create a virtual hard disk then add size and location. Save it into the folder you created earlier
- Installation Options > You can now install the OS by selecting an ISO file. Have this saved in your ISOImages folder
- Browse to the folder and select the image
- Then finish
- You now need to start the Hyper V Server and proceed with the various steps to complete the installation.
You may potentially receive an error if you chose a Gen 2 setup. Initially this puzzled me but the solution is simple. If you reset the server and hit the space button while booting up, you will now get the installer running the mounted ISO image file.
More about the error can be read HERE
Your Setup should now start and run as though it is a standard installation.
- When setup is complete, log onto the system as per normal. You will now be able to add the various required services and roles
- You may also want to add a static IP Address
Something important to get your head around is the naming of the various systems.
The server Core install will have a name, then the Virtual Machine will have a name AND the OS running on the Virtual Machine will have a name! This is why it is good to keep this all logical!
Managing the Hyper V server is easiest using Server Manager on another system. Go Server Manager > All Servers, right click then > Add Server. Search for the name and add the server.
VIRTUALISE AN EXISTING SYSTEM
This article assumes you have already virtualised the server. If not, you can read about how to do it HERE
On the Core Server create a VMDATA folder.
Now add 2 folders. VMHardDisks and VMMachines. This only needs doing once on a new Core Server. You dont need to create the IsoImages folder as we are not using any.
Inside VMHardDisk and VMMachine, create a folder called the Server name. Now you can copy the virtualised image you created into the VMHardDisk folder.
- First, copy the existing image into the VMData > VMHardDisk folder
- New > Virtual Machine
- Add name (Keep the same as the VM name) and make sure the location is correct. Remember to browse to the folder you created earlier. KEEP IT LOGICAL!
- Browse to the folder you created earlier for the virtual machine location
- Select Gen 1 (Best for Server 2008) or Gen 2 (Best for Server 2012) as per the description – I am selecting Gen 2
- Assign startup memory. Multiply 1024 x the amount to get the correct allocation. (May need to leave processor and memory for the host server)
- Under networking, select the virtual switch created *
- Connect virtual hard disk – Browse to the folder location where you have placed the pre existing image
- Then finish
- You now need to start the Hyper V Server and proceed with the various steps to complete the installation.