Post

Ubuntu Server VM Setup

Ubuntu Server VM installation and setup.

I am using Ubuntu Server (24.04.03 LTS): https://ubuntu.com/download/server

On VirtualBox, create a new VM

This one is for TheHive, so name it accordingly

Select the Ubuntu server ISO

1

As per documentation, TheHive recommends at least 16GB and 6 CPUs for stable performance - https://docs.strangebee.com/thehive/installation/system-requirements/

TheHive relies on Cassandra and Elasticsearch which runs on JVM, thus the high memory requirement

2

I set the storage to 100 GB

3

Launch the VM (do not change any network configurations yet)

Select a language

4

Leave Ubuntu server checked

5

Leave this at the default setting

6

Leave blank, next

7

Wait for the mirror to pass the tests, then go next

8

Leave at default settings, next

9

Select done, and continue

10

Give the server a name and create a user

We will use this user’s credentials to SSH into the VM

11

Continue

12

Make sure to check “Install OpenSSH server” before proceeding

13

Don’t select anything, next

14

Click reboot now and shut down the VM

15

Right click the VM > Settings

Under System, make sure hard disk is at the top of the boot order

16

Under Network, change Adapter 1 to internal network (cyberlab-servers)

17

Launch the VM

Log in as the user you created and run sudo nano /etc/netplan/50-cloud-init.yaml

18

These are the network configurations for my TheHive VM

I gave the VM the IP address: 10.10.1.40

Save and write your changes (Ctrl + O) and exit (Ctrl + X)

19

Run sudo netplan apply

Run ip a to confirm the changes went through and run a few pings to make sure the VM can communicate with other VMs in our network

20

SSH into TheHive VM from our Ubuntu desktop VM

SSH is completely optional, I just find the Ubuntu desktop environment more pleasant

This is a bit confusing since i named the user accounts “joe” for both the Ubuntu VM and TheHive VM, however note that my shell is now “joe@thehive”.

21

Next: Installing TheHive Dependencies

This post is licensed under CC BY 4.0 by the author.