Xen の Domain U の時計合わせ。

ゲストOS「Domain-U」は ntpdate しても時間が同期されない。

勝手に「Domain-0」に「Domain-U」が同期される。

ただし!!「Domain-0」「Domain-U」どちらにも ntp がインストールされていて「Domain-0」で ntpd が動いていること。( ほんとは違うけど → If domain 0 runs ntpdate, ntpd, etc. then the synchronised time will automatically be pushed down to Xen every minute (and written to the RTC every 11 minutes, just as normal x86 Linux does). etc って何だ?)

「Domain-U」のみ ntpd 動かしたい場合は、(レアケースだよなぁ? ntpdate を Cron で動かしても同期するはずだし。)


# echo 1 >/proc/sys/xeno/independent_wallclock


参照→Linux、クラスタ、1Uサーバのクラスターコンピューティング(株) – Xen ntpdate

起動時有効にするには。
/etc/sysctl.conf に追記。( linux ルータ の時の設定の感じ。)


#Enable ntp in XenDomU.
xen.independent_wallclock = 1