Install AGILITY VM Cloud Image
A simple and straightforward way to utilize AGILITY is by provisioning an existing Cloud image. This option is available in both public and private cloud environments.
The access to the VM image will be provided by B-Yond.
Public Clouds:
AWS
: The AMI (Amazon Machine Image) ID will be shared with target account.
Azure
: The Azure VM image will be shared with target subscription/tenant.
Google Cloud
: The Google Cloud VM image will be shared with target organization.
On-Premises Virtualization Platforms:
OpenStack
: Download the provided qcow2 image specifically configured for OpenStack.
VMware
: Download the provided VMware disk image specifically configured for VMware virtualization environments.
If you are using other Cloud providers or virtualization solutions, you may need to convert the qcow2 or VMware disk images to the format required by your platform. Consult the documentation of your specific provider or platform for instructions on image conversion.
Using the B-Yond provided images is recommended as they are pre-configured and optimized for running AGILITY.
Provision the VM
Initial specifications depending on the number of PCAP files to be processed daily:
Number of files per Busy Hour | Average number of packets per file | CPU | Memory (GB) | Boot Disk (GB) |
---|---|---|---|---|
50 | 2.5K | 12 | 48 | 50 |
100 | 2.5K | 16 | 64 | 50 |
50 | 25K | 16 | 64 | 75 |
25 | 250K | 24 | 96 | 150 |
ℹ️
Assumptions: processing 100 files/day, retention period is 3 days.
Please note that the disk requirement applies either to the boot disk, when it is the sole storage option, or to the external disk when it is used as an alternative.
ℹ️
The values associated with AGILITY application or its monitoring stack can be customized according to specific requirements and file sizes.
OpenStack
(As an administrator) Create an image:
glance image-create --disk-format qcow2 --container-format bare --file ./Agility-X.YY.Z-AlmaLinux-X-GenericCloud-X.Y-YYYYMMDD.x86_64.qcow2 --min-disk 25 --min-ram 2048 --name Agility-X.Y.Z
(As an administrator) Create a member for the glance image:
glance member-create <image-id> <member-id>
(As an administrator) Accept the membership for the glance image:
glance member-update <image-id> <member-id> accepted
(As a user) Create a VM using the image (minimum use
m1.medium
which is 2 CPU / 4096 RAM / 40G disk):
Public Clouds (AWS, Azure, GCP, etc.)
Follow the procedures specified by your Cloud provider. These procedures typically include the following steps:
Image selection: Choose the AGILITY VM image obtained from B-Yond or the converted image.
Shape specification: Specify the number of virtual CPUs (vCPUs) and RAM for the instance.
Boot disk specification: Define the size and type of the boot disk.
Networking configuration: Configure the network settings for the VM.
Public SSH key(s): Provide the SSH key(s) that will be used to access the VM.
Provide an
init-cloud
script to run (this is in general an optional step).
ℹ️
The VM boot time might take between 5 and 10 minutes in total.
VMware ESXi
To import a virtual machine stored on a VMware Hosted product to an ESX/ESXi host, run:
Create the VM using the imported disk. Option
Guest OS: Other Linux (64-bit)
Using the console login as
root
, passwordalmalinux
Set up static network configuration, e.g. using nmtui.
Increase VM disk size:
Increase disk size from ESXi
Rescan using
echo 1>/sys/class/block/sda/device/rescan
Recreate the partition
2
withfdisk
Increase the filesystem size using
xfs_growfs /dev/sda2
Accessing the VM
SSH into it using the
cloud-user
and the associated private key:AMI:
ec2-user
Generic Cloud:
almalinux
[Optional] Configure DNS Servers
ℹ️
The DNS server is by default provided via DHCP. This section is relevant if you need to specify an additional DNS server or if the DHCP option is unavailable.
To configure nameservers, domain search suffixes, etc., use the NetworkManager tool:
Check the current DNS configuration
An example output:
Identify the network connection to configure:
This is an example of the output:
Add a new DNS server:
For example, to add Google's DNS server to the device
eth0
, the commands will be:To check the change run again:
Removing DHCP DNS
For reference purposes, to remove the DNS server specified by DHCP run the following commands:
This will leave only the DNS servers configured manually.
Specify domain search
Use the ipv4.dns-search option to change the domain name if necessary. Ensure that the correct fully qualified domain name (FQDN) is set before by using the hostnamectl set-hostname
command.
These commands have to be executed, adjust accordingly:
For example, to add a domain name in the search list (here http://example.com ), run:
[!WARNING]
There should be at least 1 (one) nameserver defined for AGILITY in the VM.
[Optional] Configuring Proxy
Set proxy settings to the System wide
There is no
NO_PROXY
standard and depends on the application.Load proxy configuration
[Optional] Configuring System Clock
ℹ️
This section is crucial for situations where non-default NTP servers are required or when there are limitations in accessing external public ones.
AGILITY VM facilitates clock synchronization using the Chrony
service, which is enabled by default and synchronizes with a pool of public NTP servers.
Using a Custom NTP Server
To synchronize the VM clock with a specific NTP server, follow these instructions:
Check the current configured servers:
Example output:
Add your server definition in the file
/etc/chrony.conf
:For example, using a public cloud NTP server:
Comment out the entry
pool 2.almalinux.pool.ntp.org iburst
to enforce using only the specified NTP server:Restart the Chrony service:
Check the changes were applied (Wait until the status changes from
^?
to^*
, it might take several minutes):Example output:
Enable NTP and trigger a synchronization:
Verify the clock is synchronized:
The output should resemble:
To confirm chrony tracking, run the command:
The output also shows the configured NTP server:
Ensure the Chrony service is available after reboot:
Configuring the Timezone
Your system's timezone settings are stored in the /usr/share/zoneinfo
directory. To ensure your system is set to the appropriate timezone, such as Europe/Paris, execute the following command:
Additionally, you can confirm your current timezone by inspecting the /etc/localtime
file:
[Optional] Attach an External Disk
In cases where external disk attachment is necessary, follow these steps. This will depend on the type of external disk used.
Prepare the VM
Access the VM using ssh
Stop the processes:
Place the persisted data into a different location:
NFS example
Create a directory on your Ubuntu system to serve as the mount point for the NFS share:
Edit the /etc/fstab file as root using a text editor, such as nano or vim:
Add an entry at the end of the /etc/fstab file to specify the NFS share and the mount point. The entry should follow this format:
Replace <NFS_server_IP_or_hostname> with the IP address or hostname of the NFS server, <remote_directory> with the path of the directory you want to mount, and <local_mount_point> with the path of the local mount point you created in Step 1.
For example, if the NFS server IP address is 192.168.1.100 and the remote directory you want to mount is /data, the entry would look like this:
Save the changes and exit the text editor.
To mount all entries listed in /etc/fstab, you can use the
mount -a
command.Ensure that your VM has network connectivity to the NFS server and that you have the necessary permissions to access the NFS share.
Block volume example
Your AGILITY cloud provider gives you the ability to provision block storage and attach the disk to your VM. Please follow the recommended procedures. E.g., it involves several iscsi
commands executions.
Once Attached, format the disk (e.g.,
sdb
):Persist the changes:
Restore data
Copy the data to the newly mounted external location:
Start the processes:
Wait a few seconds and ensure that all services are in the Running state:
Verify that the system is functioning correctly by performing tasks in the UI.
Once you have confirmed everything is working as expected, you can delete the old data:
Please note that these steps assume you have the necessary permissions and understand the implications of deleting the old data. Exercise caution while performing these operations.