MS Windows Server - Deployement

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

(https://www.eve-ng.

net/) HOME DOWNLOAD

(https://www.eve-ng.net/) (https://www.eve-ng.net/index.php/download/)

FEATURES DOCUMENTATION

(https://www.eve-ng.net/index.php/features/) (https://www.eve-ng.net/index.php/documentation/)

FAQ BUY

(https://www.eve-ng.net/index.php/faq/) (https://www.eve-ng.net/index.php/buy/)

COMMUNITY LABS LIBRARY FORUM

(https://www.eve-ng.net/index.php/community/) (https://www.eve-ng.net/index.php/lab-library/) (/forum)

LIVE HELPDESK
(https://webchat.eve-ng.net/)

DONATE  ()

(https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A5CDRWUBKWT8A)

How to create own custom MS Windows Server for EVE

EVE Image Downloaded Filename Version vCPU RAM HDD Qemu


Foldername format version

winserver-2008R2 S2008R2_x64fre_server_eval_en-us-DVD.iso 2008R2 1 8192 virtioa 4.1.0

winserver-2012R2 2012.R2VL.ESD.ENU.June2016.iso 2012R2 2 8192 virtioa 4.1.0

winserver-2016R2 Win_Svr_STD_Core_2016_64Bit_English_-2_MLF_X21-.ISO 2016R2 2 8192 virtioa 4.1.0

winserver-2019R2 SERVER_2019_EVAL_x64FRE_en-us_1.iso 2019R2 4 8192 virtioa 5.2.0

winserver-2022R2 SERVER_2022_EVAL_x64FRE_en-us_1.iso 2022R2 4 8192 virtioa 5.2.0


Instructions
The other Windows Server versions are supported. Steps how to create image are same.
The other Windows Server versions are supported. Steps how to create image are same.

Watch VIDEO how to Coming soon


For this you will need an actual Windows Server 2012 installation ISO.

We are using: 2012.R2VL.ESD.ENU.June2016.iso. Be sure that distro name does not have spaces in the filename!
The procedure is the same for any other Windows Server version 2008, 2012, 2016, 2019, 2022 hosts.

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

root@eve:~# mkdir /opt/unetlab/addons/qemu/winserver-2012R2/

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

3. Go to that directory via CLI

root@eve:~# cd /opt/unetlab/addons/qemu/winserver-2012R2/

4. Rename this ISO file to cdrom.iso

r (mailto:root@eve:~#)oot@eve:~#/opt/unetlab/addons/qemu/winserver-2012R2# mv 2012.R2VL.ESD.ENU.June2016.iso cdrom.iso

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

root@eve:~# cd /opt/unetlab/addons/qemu/winserver-2012R2/
root@eve:~#/opt/unetlab/addons/qemu/winserver-2012R2# /opt/qemu/bin/qemu-img create -f qcow2 virtioa.qcow2 60G

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

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 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 will be installed, choose Load driver, Browse, choose FDD
B/storage/2003R2/AMD64 or x86, (AMD or x86 depends which version of windows you are installing 64 or 32 bit), click next and you will see HDD RedHat
VIRTIO SCSI HDD now.

10. Select this HDD and continue to install Windows as usual.

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 user/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.

The Node ID can be obtained by right clicking the node on the topology. In this Example it is 8
15. From the EVE CLI, locate the installed image and commit your changes to be used as default for further use in EVE-NG:

root@eve:~# cd /opt/unetlab/tmp/0/3491e0a7-25f8-46e1-b697-ccb4fc4088a2/8/

root@eve:~#/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/winserver-2012R2

root@eve:~# cd /opt/unetlab/addons/qemu/winserver-2012R2/
root@eve:~#/opt/unetlab/addons/qemu/winserver-2012R2/ rm -f cdrom.iso

DONE

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 your EVE host, the free space must exceed the total space (60GByte 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 65Gb
of free HDD space. Once this process is done, the temporary file(s) will be deleted and free space reclaimed.

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

root@eve:~# cd /opt/unetlab/addons/qemu/winserver-2012R2

and perform the sparsify command:

root@eve:~#/opt/unetlab/addons/qemu/winserver-2012R2/ virt-sparsify --compress virtioa.qcow2 compressedvirtioa.qcow2

3. This will take some time and another compressed image will be created in the same image directory (winserver-2012R2)
4. now you can rename your original virtioa.qcow2 file to orig.qcow2

root@eve:~#/opt/unetlab/addons/qemu/winserver-2012R2/ mv virtioa.qcow2 orig.qcow2

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

root@eve:~#/opt/unetlab/addons/qemu/winserver-2012R2/ mv compressedvirtioa.qcow2 virtioa.qcow2

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

You might also like