In this blog, I will guide you through the process of installing EVE-NG on Microsoft Hyper-V. Typically, I use GNS3 on VMware as recommended by the documentation. However, if you want to use a Docker Desktop on Windows and WSL2, there is a glitch: Microsoft Hyper-V and WSL2 do not coexist well with VMWare on the same machine.
During my research, I found an article titled How to install EVE-NG on Microsoft Hyper-V, written on November 15, 2018. The tutorial was based on Ubuntu Server 16.04. I applied the same procedure to Ubuntu Server 22.04 but did not succeed due to differences in the Ubuntu versions used.
The EVE-NG CE Community Edition Cookbook
provides a procedure for BM Server Installation Ubuntu legacy ISO
for Server 22.04. By combining both tutorials, I managed to get EVE-NG running on Microsoft Hyper-V.
Let's dive into the process!
First, download the Ubuntu Server 22.04 image from the official Ubuntu website.
- Open Hyper-V Manager and click on
New Virtual Machine
. - Name: Enter
EVE-NG
. - Generation: Select
Generation 2
. - Startup Memory: Allocate
8GB/4GB
and disable dynamic memory. - Networking: Use an existing
Default vSwitch
connected to the Internet. - Hard Disk: Set the size to a minimum of
60GB
. - Installation Options: Choose “Install the operating system from a bootable image file” and select the Ubuntu Server 22.04 image.
- Click “Next,” then “Finish.” Hyper-V will create your VM.
- In Hyper-V Manager, select your VM, right-click, and choose “Settings.”
- Under Security, disable Secure Boot (necessary for ISO boot).
- Under Firmware, Set the boot order.
- Under Processor, increase the number of virtual processors according to your hardware.
- Connect to the VM and start it. The Ubuntu installation will begin.
- Follow the steps in the
EVE-NG CE Community Edition Cookbook
forBM Server Installation Ubuntu legacy ISO
. - After installation, reboot the server.
- After rebooting, log in with the user created during the installation and get root access:
$ sudo su
- Change the root password (example: in my case
eve
):
- Allow SSH root login:
root@eve-ng:~# vim /etc/ssh/sshd_config
Change:
PermitRootLogin prohibit-password
To:
PermitRootLogin yes
Save settings (:wq
) and restart the SSH service:
root@eve-ng:~# service sshd restart
- SSH to your EVE-NG server using an SSH client like Putty and log in as root.
- Update and upgrade the system:
$ apt update
$ apt upgrade
- Run the EVE-NG Community Edition installation script:
$ wget -O - https://www.eve-ng.net/jammy/install-eve.sh | bash -i
-
Reboot the server after the installation completes.
-
Go back to Hyper-V, right-click on your VM and click Connect.
Follow the official guide for the first boot configuration.
- Open a PowerShell prompt as administrator on your PC and run the following command:
$ Set-VMProcessor -VMName "EVE-NG" -ExposeVirtualizationExtensions $true
- Start your EVE-NG VM again in the Hyper-V console. The message
neither Intel VT-x nor AMD-V found on Hyper-V
should not appear, and you should be able to connect to the web interface using your<server ip>
.
And there you have it! You now have a running EVE-NG environment on Microsoft Hyper-V. This setup allows you to emulate network scenarios efficiently and leverage the powerful features of EVE-NG.