Platforms
Supported platforms, kernel requirements for VMClock, and PHC setup on EC2.
Supported platforms
ClockBound runs on Linux on x86_64 and aarch64 (including AWS Graviton). Release artifacts include RPM packages for both architectures. For the most accurate bounds on AWS, run ClockBound on EC2 instances that have the enhanced Amazon Time Sync Service , and a configured PTP Hardware Clock .
VMClock & kernel requirements
The VMClock is a vDSO-style clock provided to VM guests. It lets user-space software such as ClockBound detect clock disruptions during VM maintenance events and take corrective action. When supported by the cloud provider and present, it appears at /dev/vmclock0.
VMClock is included by default in:
| Distribution | Minimum kernel |
|---|---|
| Amazon Linux 2 | kernel-5.10.223-211.872.amzn2 and later |
| Amazon Linux 2023 | kernel-6.1.102-108.177.amzn2023 and later |
| Upstream Linux | kernel 6.13 and later |
AWS is rolling out VMClock support on EC2 for Graviton, Intel, and AMD architectures. If /dev/vmclock0 lacks the read permission ClockBound needs, grant it:
sudo chmod a+r /dev/vmclock0PTP Hardware Clock (PHC) on EC2
The PTP Hardware Clock (PHC) on EC2 is available to EC2 instances that have the enhanced Amazon Time Sync Service, and have the ENA driver installed and configured with PHC support.
On Amazon Linux, the ENA driver is already installed. Assuming you are running on an EC2 instance that has support for the enhanced Amazon Time Sync Service, you can enable the ENA driver with PHC support by running theconfigure_phc script shipped in clock-bound/assets:
# Configure the PHC to be enabled on the next boot.
./clock-bound/assets/configure_phc -c
# Or alternatively ...
# Configure the PHC to be enabled immediately.
#
# WARNING: Running this reloads the EC2 instance's ENA driver,
# which causes temporary network packet loss.
./clock-bound/assets/configure_phcOn non-Amazon-Linux distributions, the ENA driver will need to be installed and configured with PHC support manually. Assuming you are running on an EC2 instance that has support for the enhanced Amazon Time Sync Service, you can perform the setup for the PHC by following the steps in the Access the PTP Hardware Clock (PHC) section of the AWS EC2 documentation.