Hostxpeed
Login Get Started →
Troubleshooting

Fix Time Sync Issues

4 min read
0 views
Apr 29, 2026

Check Current Time and Sync Status

date
timedatectl status

# Check if NTP is active
timedatectl show --property=NTPSynchronized

Fix 1: Enable NTP Synchronization

sudo timedatectl set-ntp true
sudo systemctl enable systemd-timesyncd
sudo systemctl start systemd-timesyncd

# Check status
timedatectl status

Fix 2: Install and Configure NTP

# Ubuntu/Debian
sudo apt install ntp -y
sudo systemctl enable ntp
sudo systemctl start ntp

# CentOS/RHEL
sudo yum install chrony -y
sudo systemctl enable chronyd
sudo systemctl start chronyd

Fix 3: Manual Time Set

# Set date and time
sudo date --set="2024-01-15 14:30:00"

# Or using timedatectl
sudo timedatectl set-time "2024-01-15 14:30:00"

# Set timezone
sudo timedatectl set-timezone America/New_York

Fix 4: Check Network Connectivity to NTP Servers

# Test NTP servers
ntpdate -q pool.ntp.org
# Or
chronyc sources -v

Fix 5: Force Time Sync

sudo systemctl stop ntp
sudo ntpdate -s time.nist.gov
sudo systemctl start ntp

Fix 6: Hardware Clock Sync

# Sync system time to hardware clock
sudo hwclock --systohc

# Sync hardware to system
sudo hwclock --hctosys

Fix 7: Fix for Virtual Machines

VPS may need host sync:

# Install open-vm-tools for VMware
sudo apt install open-vm-tools -y

# For KVM (most Hostxpeed VPS)
# Time should sync via host, check with:
dmesg | grep -i kvm

Was this article helpful?