Installing EVE-NG on Hyper-V

⏱️ Estimated reading time: Approx. 9 minutes (9 min read)

In the last post, I introduced the AOS-CX simulator.
The AOS-CX simulator can be run through emulators like EVE-NG or GNS3. Today, we'll look at installing it using EVE-NG.

EVE-NG is a very powerful network virtualization emulator that allows you to use network equipment from various manufacturers as if it were real. For more information, eve-ng homepageYou can check it at .

If you look at the installation documentation on the EVE-NG homepage, you can see that installation is possible in various environments.
However, unfortunately, Hyper-V, which is provided by default in Windows 10 Professional or Windows Server, is not officially supported.

So today, I'm going to show you how to install EVE-NG using Windows Hyper-V, rather than a hypervisor like VMware or ESX.

1. Check prerequisites

This assumes that the Hyper-V service is installed properly on your laptop, PC, or server.
If you are not familiar with Hyper-V or are wondering how to install and configure it, see below. Microsoft official sitePlease refer to .
– https://docs.microsoft.com/ko-kr/virtualization/hyper-v-on-windows/

You should also check that your system meets the requirements to install and run EVE-NG.
Please check the specifications through the link below.
– http://www.eve-ng.net/documentation/installation/system-requirement

2. Install Ubuntu

Ubuntu 18 version is not supported, so please refer to the Ubuntu site. Download the ISO file of Ubuntu 16.04 LTS Yes, I recommend the server image over the desktop version.
http://releases.ubuntu.com/16.04/

  • Now create a new VM in Hyper-V.
Hyper-V에 EVE-NG 설치하기 - image
  • Create VM
    • Name: EVE-NG
    • Generation: 2nd generation
    • Memory: At least 8GB recommended (dynamic memory enabled)
    • Networking: Select a vSwitch that is connected to the Internet (must be connected to the Internet)
    • Hard Disk: Select a new virtual hard disk. (Choose an appropriate capacity—you can adjust it later.)
    • Installation Image: Select the downloaded Ubuntu 16.04 LTS image file (ISO).
  • Once the VM is created, right click on it and go to Settings to disable Secure Boot
Hyper-V에 EVE-NG 설치하기 - image 1
  • Change the number of virtual CPU processors – adjust to suit your PC specifications.
  • Enable MAC address spoofing for your network adapter (Network Adapter → Advanced Features)
Hyper-V에 EVE-NG 설치하기 - image 22
  • Run the VM after saving the settings
Hyper-V에 EVE-NG 설치하기 - image 2
  • Ubuntu Installation Options
    • Language: english
    • Location: Korea
    • Configure Keyboard: Choosing the right keyboard
    • Configure Network: Select DHCP or enter the appropriate network address
    • Hostname: eve-ng
    • Domain Name: Write anything (e.g. aruba.local or example.com)
    • Full Name of User: Create your desired User Name
    • Encrypt your home directory? NO
    • Configure Clock: Check if the time zone is correct (Asia/Seoul)
    • Partitioning Method: Select use entire disk and setup LVM
    • Select disk to partition: Because there is only one disk select
    • Write the changes to disk and configure LVM? YES
    • Amount of volume: Automatically select the entire disk size
    • Force UEFI Installation? YES
    • Write the changes to disk? YES
    • HTTP proxy information: If you don't have a proxy, leave it blank. select
    • Configure Task: Select Install security updates automatically
    • Software Selection: *importance* Select OpenSSH Server (select with spacebar)
    • Reboot

3. Pre-installation work for EVE-NG

After rebooting, log in with the UserName and Password you created earlier.

Ubuntu 16.04.7 LTS eve-ng tty1 eve-ng login: <Username>
Password: <Password>

Welcome to Ubuntu 16.04.7 LTS (GNU/Linux 4.4.0-186-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage 109 packages can be updated 78 updates are security updates ..... ------- Omitted ------- ..... To run a command as administrator (user "root"), use "sudo ". See "man sudo_root" for details. aruba@eve-ng:~$ 

Log in as root.

<Username>@eve-ng:~$ sudo su
[sudo] password for <Username>: <Password>
root@eve-ng:~#

Change the password for the root account.

root@eve-ng:~# sudo passwd root
Enter new UNIX password: eve
Retype new UNIX password: eve
passwd: password updated successfully root@eve-ng:~#

Modify the host file using the VI editor.

root@eve-ng:~# vi /etc/hosts

127.0.0.1 localhost 127.0.1.1 eve-ng.example.com eve-ng

Enable SSH login as root account (Optional)

root@eve-ng:~# vi /etc/ssh/sshd_config

Change:
PermitRootLogin prohibit-password
To:
PermitRootLogin yes

Restart the SSH service

root@eve-ng:~# service ssh restart

4. Install EVE-NG

Before installing EVE-NG, you need to ensure a working internet connection. Use the ping command to check if you can connect to the external internet.

root@eve-ng:~# ping google.com
PING google.com (172.217.161.46) 56(84) bytes of data. 64 bytes from nrt12s23-in-f14.1e100.net (172.217.161.46): icmp_seq=1 ttl=111 time=59.1 ms 64 bytes from nrt12s23-in-f14.1e100.net (172.217.161.46): icmp_seq=2 ttl=111 time=59.3 ms 64 bytes from nrt12s23-in-f14.1e100.net (172.217.161.46): icmp_seq=3 ttl=111 time=60.3 ms ^C

Now, make sure you are logged in as root for the installation and type the following:.

root@eve-ng:~# wget -O - http://www.eve-ng.net/repo/install-eve.sh | bash -i

Then the file will be downloaded and installed by an automatic script.

Once the installation is complete, reboot using the reboot command. After rebooting, you may see the following warning, which we'll address later.

WARNING: neither Intel VT-x or AMD-V found

After booting is complete and you log in as root, the eve-ng configuration screen will appear as shown below.

Hyper-V에 EVE-NG 설치하기 - root pass

You can proceed with the related settings through the URL below.
https://www.eve-ng.net/index.php/documentation/installation/howto-configure-eve-during-first-boot/

Once setup is complete, it will reboot automatically.
After rebooting, update the package to the latest version and exit.

root@eve-ng:~# apt-get update
(...omitted...) root@eve-ng:~# apt-get upgrade
(...omitted...) root@eve-ng:~# shutdown now

Now we need to address the WARNING message from earlier.
This message occurs because EVE-NG, another virtual emulator, runs on top of a hypervisor called Hyper-V.
This can be resolved by setting up nested virtualization.

Run PowerShell as administrator.
Assuming that you named the created VM “EVE-NG”, enter the following:.

> Set-VMProcessor -VMName "EVE-NG" -ExposeVirtualizationExtensions $True

When you restart the VM, you will no longer see “WARNING: neither Intel VT-x or AMD-V found“The message will not appear.

Once the VM boots, if you enter the IP address you set into your browser, the login screen will appear normally.

  • Username: admin
  • Password: eve

EVE-NG installation is finally complete. In the next post, we'll add images and configure the Lab.

Similar Posts

  • AOS-CX Security Settings Guide (2)

    ⏱️ Estimated read time: Approx. 16 minutes (16 min read) In the previous post, we examined the physical security and Management Plane security of the AOS-CX switch. This time, we will cover the security of the Control Plane of the AOS-CX switch. The content of both the previous and current posts is based on official information found on the HPE website. AOS-CX 10.15…

  • [acp-dc training#10] vsx (2)

    ⏱️ Estimated reading time: Approx. 8 minutes (8 min read) In the previous post, we explored VSX, the virtualization technology of HPE Aruba Networking AOS-CX switches. We explained the components of VSX, the differences from VSF, and its advantages. Today, we would like to cover the practical aspects. We will examine how to actually utilize VSX to perform live software upgrades and look at technologies such as Split Brain… .

  • [ACSA Education #28] MSTP Theory and Regional Structure

    ⏱️ Estimated read time: Approx. 6 minutes (6 min read) A Common Spanning Tree (CST) defines a single Spanning Tree Instance for the entire network, regardless of the number of VLANs. All BPDUs use Untagged VLAN 1, so VLAN details are not considered. Additionally, there is no load balancing, so alternative…

  • HPE Aruba Networking Data Center Portfolio

    AOS-CX switch products provide powerful hardware and a smart operating system for building data center networks. These switches offer high performance and flexibility across a variety of models, while enhancing management efficiency, offering an optimized solution for the demands of modern data centers.

  • Essential infrastructure for the AI era: CX 9300 Switches

    With the advancement of artificial intelligence and machine learning, 400GbE is becoming essential infrastructure for data center networks. The HPE Aruba Networking CX 9300 Switch meets the demands of AI workloads, and its integration with HPE systems maximizes efficiency and reduces operational complexity. This is the optimal solution for the future AI era.

  • Role-based zero trust environments

    ⏱️ Estimated reading time: Approx. 8 minutes (8 min read) Until now, our network security has been very static. We controlled traffic and strengthened security by creating security policies based on source IP addresses, destination IP addresses, and ports. However, times have changed. IP addresses are also shifting to a DHCP environment, and user devices, including personal devices, are being controlled by the IT team…