OpenStack实验,需要搭建NTP服务器,由于电脑配置太低,虚拟机使用centos6.5。
安装chrony服务,3台虚拟机,一台controller,2台node。
yum install chrony -y
controller配置/etc/chrony.conf
修改服务器地址:
server ntp.aliyun.com iburst
server ntp1.aliyun.com iburst
修改允许ip网段
Allow NTP client access from local network.
allow 192.168/16
任意地方添加如下:
server NTP_SERVER iburst
nod配置/etc/chrony.conf
修改服务器地址:
server ntp.aliyun.com iburst
server ntp1.aliyun.com iburst
修改允许ip网段
Allow NTP client access from local network.
allow 192.168/16
任意地方添加如下:
server control iburst
开启chrony命令:
/etc/init.d/chronyd start
如果报错:
Starting chronyd: Could not open keyfile /etc/chrony.keys for writing [FAILED]
修改/etc/chrony.conf:
Specify file containing keys for NTP and command authentication.
keyfile /etc/chrony.keys
Specify key number for command authentication.
commandkey 1
重新启动即可