Recently I started noticing ntp crashing in ubuntu virtual machine, installed on virtual box Virtual machine. In turns out that virtual box can synchronize the time in guest OS with host OS. For Ubuntu following need to be done.

  • Install some pre-requisites
  • aptitude install build-essential linux-headers-$(uname -r) -y
  • Install Guest Additions with Devices -> Install Guest Additions…
  • Mount virtual CDROM
  • sudo mkdir -p /media/cdrom
    sudo mount /dev/cdrom /media/cdrom
  • Run the installer script. This will take several minutes to build and install.
  • cd /media/cdrom
    sudo ./
  • Unmount the cdrom
  • cd
    sudo umount /media/cdrom