Download windows server 2012 r2 DC for EVE-NG

By | October 20, 2020

This Windows Server 2012 R2 DC image is tested and working we have checked it in LAB over EVE-NG. There is also no need of activation. This is already activated. Just you need to directly upload the file in QEMU folder and fix the permissions. Once fix the permissions you will be able to use it.

Username and password:

administrator / Qgenric#2012

Download Windows Server 2012 R2 for EVE-NG from below link:

We are not hosting the image. We are just providing the link as well as it is not a ISO file. This is QCOW2 file for EVE-NG which can be use on EVE-NG platform. So we are not responsible for any copyright issue

NOTE: Below is the procedure for adding Windows 2012 Server .ISO file in EVE-NG. But we are providing you QCOW2 file so no need to follow all the steps. just create a folder in QEUMU and upload this file and then create the HDD and fix the permissions.

How to add windows server 2012 in eve-ng

1. Create a new folder for this image according to the naming convention:

mkdir /opt/unetlab/addons/qemu/winserver-2012R2/

2. Use WinSCP / FileZilla SFTP or SCP (port 22) to copy distro ISO image into the newly created folder path: /opt/unetlab/addons/qemu/winserver-2012R2/

3. Go to directory via CLI

cd /opt/unetlab/addons/qemu/winserver-2012R2/

4. Rename ISO file to cdrom.iso

mv 2012.R2VL.ESD.ENU.June2016.iso cdrom.iso

5. Create a new virtual harddisk named virtioa.qcow2. Size you can choose per your needs. This example is used 60Gb HDD.

/opt/qemu/bin/qemu-img create -f qcow2 virtioa.qcow2 60G

6. Create a new lab and add the newly created winserver-2012R2 

7. Connect the node to your home LAN cloud/internet in order for it to be able to get updates from the internet

8. Start the node inside the lab and customize the installation of your Windows Server as you like, as you have connected it to your home LAN and internet this installation will be like any normal Windows installation

9. IMPORTANT: When windows installation asks you to choose an HDD where Windows Server will be installed, choose Load driver, Browse, choose FDD B/storage/2003R2/AMD64, (AMD64 if you are installing 64bit install), click next and you will see HDD RedHat VIRTIO SCSI HDD now.

10. Select this HDD and continue to install Windows Server.

11. Optional: if you would like to use this image with the EVE RDP console, then you have to allow RDP on this Windows machine and create a user and password. In this example, we use administrator/Test123. Be sure that in the Windows Firewall the Remote Access inbound rules are permitted for Public access.

12. Finish installation and shutdown properly the VM from inside VM OS. Start/shutdown

IMPORTANT: Commit the installation to set it as the default image for further use in EVE-NG:

13. On the left side-bar within the lab in the EVE Web-UI choose “Lab Details” to get your lab’s UUID details: In this example: UUID: 3491e0a7-25f8-46e1-b697-ccb4fc4088a2

14. Find out the POD ID of your used and the Node ID of your newly installed node.

The POD number is assigned to your username, and can be found in the EVE GUI, Management/User Management. The Admin user uses POD number 0 by default.

15. From the EVE CLI, locate the installed image and commit your changes to be used as default for further(future) use in EVE-NG:

cd /opt/unetlab/tmp/0/3491e0a7-25f8-46e1-b697-ccb4fc4088a2/8/
/opt/qemu/bin/qemu-img commit virtioa.qcow2

16. Remove cdrom.iso from /opt/unetlab/addons/qemu/win-7test/

cd /opt/unetlab/addons/qemu/winserver-2012R2/
 rm -f cdrom.iso

Advanced instructions on how to make your image smaller in size (sparsify&compress).

  1. After you have done all the steps above and your default image is created, you can compress its HDD and make it smaller.

IMPORTANT: for compressing an image you must have sufficient free space on EVE host, the free space must exceed the total space (30GByte in this example) of the HDD you plan to shrink. The space needed can vary but will be the total space of the disk to be shrunk plus the size of the final sparsified and compressed image. To be safe you should have double the size of the HDD you want to shrink as free space on your EVE host. In our example we needed 35Gbyte of free HDD space. Once this process is done, the temporary file(s) will be deleted and free space reclaimed.

  1. From the CLI: go to your windows image directory:

cd /opt/unetlab/addons/winserver-2012R2

perform the sparsify command:

virt-sparsify  –compress virtioa.qcow2 compressedvirtioa.qcow2

  1. This will take time and another compressed image will be created in the same image directory (win-7test)
  2. now you can rename your original virtioa.qcow2 file to orig.qcow2

mv virtioa.qcow2 orig.qcow2

  1. Rename the compressed image name to virtioa.qcow2:

mv compressedvirtioa.qcow2 virtioa.qcow2

  1. now you can test your new compressed image on a lab, just wipe the node and start it.
  2. If the compressed node works fine, you can delete your original source image:

Leave a Reply

Your email address will not be published.