Software updates
The base operating system for AMDP is currently Ubuntu focal 20.04 LTS and uses standard Ubuntu software update facilities and package management tools.
The system installation from the ISO includes baseline packages for AMDP and Ubuntu, as well as configuration for the related update repositories and the digital signatures for validating updates. The primary tool for managing updates is the standard Linux Advanced Packaging Tool (APT).
As part of the initial setup and registration, the amd_register tool invokes apt to update the system and AMDP software to the latest versions available from the update repositories.
After the system has been installed and registered, the update behavior can be changed. By default, the repositories are checked daily to see if there are available updates, and any updates which are eligible for automatic installation are applied. To change this behavior, use the amd_setup updates command.
amd_setup updates --system --amdp enable
amd_setup updates --system --amdp disable
amd_setup updates --amdp enable
enables updates for AMDP but doesn't change the setting for system updates.
root@amd-mgr:~# amd_setup updates -h
usage: amd_setup updates [-h] [--system] [--amdp] {enable,disable}
positional arguments:
{enable,disable} Choose whether to enable or disable automatic updates
optional arguments:
-h, --help show this help message and exit
--system base system software updates
--amdp AMDP software updates
Automatic updates
- Security updates for system packages
- AMDP administrative tools (wizard, cli)
- AMDP services and health monitors
- Threat Detection and Malware signatures (manager); (autoinstalled, but need to reload)
- Sandbox VM monitors (engine); (autoinstalled, but VMs may need be rebuilt)
Manual updates
apt update # updates the information about available updates
apt list --upgradeable # lists packages eligible for update
apt upgrade # upgrade and install all eligible packages
apt install package(s) # upgrade and install a particular package (or packages)
Check for available updates on the manager once a week for signature updates, and every few weeks for other updates.
Upgrade special handling steps
Some packages require special handling prior to and/or after upgrading, so we strongly recommend to use the apt list command to see what changes will be affected prior to deciding to use the apt upgrade command.
Malware signatures (Manager)
killall -HUP triage
Static analysis service (Manager)
killall -TERM triage; while pidof triage >/dev/null; do echo -n .; sleep 1; done
systemctl restart hatching-triage
VM monitors and services (Engine)
amd_setup sandbox --vmstatus
See Engine configuration for additional information on building VMs.
Sandbox manager and services (Engine)
killall -HUP sandbox; while pidof sandbox >/dev/null; do echo -n .; sleep 1; done
systemctl restart hatching-sandbox hatching-sandbox-net
systemctl restart hatching-vms
Packages requiring reboot
Some updates require the system to be rebooted to complete the installation, typically associated with a new kernel or core service. Generally, AMDP updates do not require a reboot, but a reboot is the easiest way to ensure all the associated services have been restarted following an upgrade.
General notes about package naming
AMDP package names start with "amd", "python3-amd", "hatching" or "tts".