Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm running Ubuntu in a VM. How do I disable ntpd?

share|improve this question
    
Out of curiosity, why would you want to? Does it do harm when running on a VM? –  Snekse Dec 19 '12 at 19:04

3 Answers 3

To stop ntpd:

sudo /etc/init.d/ntp stop

or

sudo service ntp stop

To prevent it from starting at boot:

sudo update-rc.d -f ntp remove
share|improve this answer

Uninstall ntpd if it is installed. You will still have ntpdate installed. (It is difficult to remove.) Prevent it from executing by adding exit 0 to /etc/default/ntpdate.

share|improve this answer

Check this out

http://www.linuxquestions.org/questions/linux-newbie-8/disabling-ntpd-service-706580/

or try this:

/sbin/chkconfig ntpd off

share|improve this answer
    
-1 chkconfig it's not in Ubuntu/Debian. It's RedHat (and other rpm based distros) specific. –  Mr Shunz Mar 9 '11 at 15:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.