Here, I present to you, a clear and detailed guide on how to create VMs [Virtual Machines] with different public IPs using your powerful dedicated server.
It'll be easy as long as you follow closely.
Overview [Final Result]
Installing Windows Server 2012 to your dedicated server
- Download Windows Server 2012 R2 ISO here: Click Me
- Login to your IPKVM
- Select "Remote Control" and then "Console Redirection"
- Click "Java Console"
- Run the Java application
- Check the box and then click "Run"
- Upon successful launch/connection, go to Device > Redirect ISO
- Select the Windows Server 2012 ISO file you downloaded earlier and click "Open"
- While at boot screen, press F11 to open up boot device menu
- Select "Virtual CDROM"
- Install Windows Server 2012 R2 Standard
- Follow and complete all the installation steps and you're done
For Other Dedicated Server Hosts
- Access your dedicated server and enter its boot device menu (Typically press F11 or F9 to enter. But if you are unsure how, please check with your host or their knowledgebase)
- Insert/Select Windows Server 2012 R2 ISO
- Install Windows Server 2012 R2 Standard [Not Core]
- Follow and complete all the installation steps and you're done
Step 2Installing Hyper-V
- Open up server manager and select "Add roles and features"
- Keep clicking "Next" until you get to Server Roles
- Select Hyper-V [In this case, I've installed it. Hence, I cannot install it again]
- Wait for the installation to complete
- If you installed everything correctly, you would be able to see this:
- Open up Hyper-V Manager and you should see this
- Right-Click on Hyper-V Manager at the left panel and then click "Connect to Server..."
- Select "Local Computer" then click "OK"
- At the right panel, you would be able to see this:
- Click "Virtual Switch Manager..." and then select "New virtual network switch". Choose "External" before clicking the "Create Virtual Switch" button.
- After that, give your virtual switch any name, as long as you can identify it.
- Click "Apply" and then "OK" to save the newly created switch. (Please take note that your dedicated server would lose its internet access for a few seconds or more. Hence, if you are using RDP to access your dedicated server like me, do not panic if it disconnects you.)
- Now, you've completed the Hyper-V network configurations!
Creating VM(s) & Installing Windows on VM
- Getting back to the panel, this time, click "Virtual Machine..."
- Click "Next >"
- Give your first VM a name and then click "Next >" [I would suggest giving it incremental numerical names like 1,2,3,4,5... because it would be easier for you to identify it later on]
- Make sure that "Generation 1" is selected and then click "Next >"
- For the startup memory, it really depends on how much you wish to give it and how much ram does your dedicated server have. For mine, I set it as 1024 MB because my dedicated server memory is 32 GB
- For Network configurations, Select the switch which you've created earlier in STEP 2 [For mine, it is "Core" because I've already created it]
- Leave it as it is unless you wish to resize the virtual hard disk. Click "Next >"
- Select Windows Server 2008 SP1 ISO
- After that, double click that VM and you should see this:
- Click the Power ON icon and let it load until you see this:
- Here's the tricky part, because of some incompatibility issues, the mouse cursor would not work. Hence, you would need to do some keyboard acrobatics but NOT to worry, you would only need to do this part for the FIRST VM
Press TAB button to move the next selection or to the button
Press SPACE button to check/uncheck a checkbox
Press Enter button to submit
13. Click "Media" > "DVD Drive" > "Insert Disk...". After that, select SP2 iso then click "Open"
14. When the autoplay prompt appears, hit "Enter" and use the "keyboard acrobatics" to complete the installation.
15. After the installation and restart, you would be able to CONTROL it!
Configuring your first VM and cloning it
- Network Configurations: Now, right-click the network icon at your desktop tray and then click "Network and Sharing Center"
- Click "Manage Network Connections"
- Right-click Local Area Connection, select "Internet Protocol Version 4" and the click "Properties"
- For this step I need you to follow closely because it is extremely crucial.
IP address: 38.x.x.174 <- This is the PUBLIC IP of the VM which you have to change for every clone VMs
Subnet Mask: 255.255.255.0 <- This is given by your host, if they did not give, try this
Default Gateway: 38.x.x.1 <- This WILL be given by your host. You need to fill it in.
After that, Select "Use the following DNS server addresses" and fill those in:
Preferred DNS server: 188.8.131.52
Alternate DNS server: 184.108.40.206
Now, I know that this is very confusing, but let me explain it to you.
For example, CloudSouth (My Host) assign me an IPv4 range [From 38.x.x.174 to 38.x.x.180], a total of 6 ip(s) which I bought from them.
On my first VM, I will set the VM's IP address as 38.x.x.174
On my second VM, I will set the VM's IP address as 38.x.x.175
On my third VM, I will set the VM's IP address as 38.x.x.176
and then so on and so forth....
5. After configuring it, Click "OK"
6. Close everything and then restart your Virtual Machine
7. Now, you should be having internet access on that particular VM with the public IP you set earlier on
Before you continue, here's a great tip for you.
If you don't wish to install Firefox/.NET framework/Any other dependencies or programs on each VM repetitively, I would STRONGLY suggest you to install them on your first VM before cloning it because it will save you LOTS of valuable time.
- Select your first VM and then at the right bottom panel, click "Export..."
- Select the directory where you wish to save the exported VM files
- Now wait for a while.
- After it is being exported, click "Import Virtual Machine..." at the right panel
- Specify the directory where you saved the exported VM files then click "Next >"
- Skip Select Virtual Machine because you've got nothing to select. Now, for the Import Type, Click "Copy the virtual machine" and then "Next >"
- Nothing here, just click "Next >"
- Now, for this step, you would need to store the virtual hard disks in a separate directory like this: C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\2\ C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\3\ C:\Users\Public\Documents\Hyper-V\Virtual Hard Disks\4\ for every new VM clones
- After setting the directory for the virtual hard disk, click "Next >" and then "Finish"
- Wait for the import to be finish.
- After that, run the VM and it will be exactly cloned at the point when you exported it.
- Do the IP configuration for the VM which I taught you earlier and then restart your VM.
- Repeat the cloning steps if you want to create more VM/VPS (But do take note of your harddrive space/ram and also the amount of IPv4 which you've bought)