Re: About the time sync for linux guest under vmware of windows xp host
On 1 Sep 2013, at 15:05, TAO Zhijiang wrote: > I will frequently change my kernel, so everytime I may reinstall the > vmware-tools, which will > really make me mad. How extensive are the changes? If they're minor, you should be able to use these (make sure I guessed the version correctly!): http://packages.vmware.com/tools/esx/latest/rhel6/x86_64/index.html Install the yum repo from: http://packages.vmware.com/tools/esx/latest/repos/index.html vmware-tools-esx-nox is the headless server version. The packages say "ESX", but I'm ~95% certain (haven't tested specifically) they'll work flawlessly under fusion/workstation/player. If you make major changes, or use a non-stock kernel, VMware supply SRPM's - I've never used them myself so I don't know if they are complete. You could add them to your build process (assuming you're using something like Koji). Your other option is something like chef/puppet/ansible to automate the deployment of the packages, or look at open-vm-tools which contains most of the functionality of the VMware packages. More recent builds of VMware tools should also have the ability to recompile themselves automatically on boot - again, I haven't tested this functionality personally - in my environment I use a combination of puppet and the official repo's). Hope something in this email helps! Regards, Adam Bishop gpg: 0x6609D460 Janet, the UK's research and education network. Janet(UK) is a trading name of Jisc Collections and Janet Limited, a not-for-profit company which is registered in England under No. 2881024 and whose Registered Office is at Lumen House, Library Avenue, Harwell Oxford, Didcot, Oxfordshire. OX11 0SG. VAT No. 614944238
Re: About the time sync for linux guest under vmware of windows xp host
OK, I just found the problem. It is my local host windows xp firewall, which blocked the communicate between the host and guest. disabled the windows's firewall, all goes well! [user@workstation ~]$ ntpdate -d 192.168.17.1 2 Sep 21:02:18 ntpdate[1243]: ntpdate 4.2.4p8@1.1612-o Fri Feb 22 03:55:28 UTC 2013 (1) Looking for host 192.168.17.1 and service ntp host found : 192.168.17.1 transmit(192.168.17.1) receive(192.168.17.1) transmit(192.168.17.1)
Re: About the time sync for linux guest under vmware of windows xp host
On 01/09/13 16:05, TAO Zhijiang wrote: > 于 2013-9-1 21:35, Akemi Yagi 写道: >> On Sun, Sep 1, 2013 at 6:26 AM, Paul Robert Marino >> wrote: >> >>> Also you should always use VMware tools to sync your time instead of >>> NTP on >>> VMware virtual machines. >>> VMWare hypervisor plays games with the clock on purpose and can cause >>> a VM >>> with NTP enabled to behave erratically. >> Please have a look at the vmware article I quoted earlier (Timekeeping >> best practices for Linux guests). It says: >> >> "VMware recommends you to use NTP instead of VMware Tools periodic >> time synchronization. NTP is an industry standard and ensures accurate >> timekeeping in your guest."In >> >> Akemi > > > Well, tell you the trueth. > I will frequently change my kernel, so everytime I may reinstall the > vmware-tools, which will > really make me mad. > > In effect, I can do it with contrab through some public internet ntp > time server, for example update > the time and write to hwclock every minute, it really works fine. > > But sometime I may not have access to the internet, so when offline, the > guest time will not be updated > correctly, and when next time update time with outside ntp time server, > everything will go wrong. > > I really want the vmware guest will fellow the time of host,. > > > Any idea? I am so tired and out of hand ;-( NTP. If you run NTP on all your local boxes, you can even make them point at each other in addition to public NTP servers. And the local NTP daemons will connect to the ones which have a reasonable and available clock. And NTP is kernel independent. So no need to fiddle with kernel depended tools at all. At minimum, it just needs access to a local NTP server if no public is available. kind regards, David Sommerseth
Re: About the time sync for linux guest under vmware of windows xp host
于 2013-9-1 21:35, Akemi Yagi 写道: On Sun, Sep 1, 2013 at 6:26 AM, Paul Robert Marino wrote: Also you should always use VMware tools to sync your time instead of NTP on VMware virtual machines. VMWare hypervisor plays games with the clock on purpose and can cause a VM with NTP enabled to behave erratically. Please have a look at the vmware article I quoted earlier (Timekeeping best practices for Linux guests). It says: "VMware recommends you to use NTP instead of VMware Tools periodic time synchronization. NTP is an industry standard and ensures accurate timekeeping in your guest."In Akemi Well, tell you the trueth. I will frequently change my kernel, so everytime I may reinstall the vmware-tools, which will really make me mad. In effect, I can do it with contrab through some public internet ntp time server, for example update the time and write to hwclock every minute, it really works fine. But sometime I may not have access to the internet, so when offline, the guest time will not be updated correctly, and when next time update time with outside ntp time server, everything will go wrong. I really want the vmware guest will fellow the time of host,. Any idea? I am so tired and out of hand ;-(
Re: About the time sync for linux guest under vmware of windows xp host
On Sun, Sep 1, 2013 at 6:26 AM, Paul Robert Marino wrote: > Also you should always use VMware tools to sync your time instead of NTP on > VMware virtual machines. > VMWare hypervisor plays games with the clock on purpose and can cause a VM > with NTP enabled to behave erratically. Please have a look at the vmware article I quoted earlier (Timekeeping best practices for Linux guests). It says: "VMware recommends you to use NTP instead of VMware Tools periodic time synchronization. NTP is an industry standard and ensures accurate timekeeping in your guest." Akemi
Re: About the time sync for linux guest under vmware of windows xp host
It sounds like your network on the VMware side isn't configured correctly.Also you should always use VMware tools to sync your time instead of NTP on VMware virtual machines.VMWare hypervisor plays games with the clock on purpose and can cause a VM with NTP enabled to behave erratically. -- Sent from my HP Pre3On Sep 1, 2013 8:44, taozhijiang wrote: Hello, I just install my SL carbon 6.4 under vmware environment for kernel study, but found the system time runs much faster than the host. I want the kernel to be pure, so I do not take account of vmware-tools. I setup a ntpd in my host windows xp, but when guest SL update the time, it complains like this: [user@workstation ~]$ sudo ntpdate -dv 192.168.17.1 1 Sep 20:31:55 ntpdate[1479]: ntpdate 4.2.4p8@1.1612-o Fri Feb 22 03:55:28 UTC 2013 (1) Looking for host 192.168.17.1 and service ntp host found : 192.168.17.1 transmit(192.168.17.1) transmit(192.168.17.1) transmit(192.168.17.1) transmit(192.168.17.1) transmit(192.168.17.1) 192.168.17.1: Server dropped: no data server 192.168.17.1, port 123 stratum 0, precision 0, leap 00, trust 000 ... 1 Sep 20:32:00 ntpdate[1479]: no server suitable for synchronization found [user@workstation ~]$ I am wired, and do not know how to handle it. Anyone anyidea would be much much appreciated!!!
Re: About the time sync for linux guest under vmware of windows xp host
On Sun, Sep 1, 2013 at 5:43 AM, taozhijiang wrote: > Hello, I just install my SL carbon 6.4 under vmware environment for > kernel study, but found the system time runs much faster than the host. > I want the kernel to be pure, so I do not take account of vmware-tools. > I setup a ntpd in my host windows xp, but when guest SL update the time, > it complains like this: > > I am wired, and do not know how to handle it. > Anyone anyidea would be much much appreciated!!! This article will help you: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1006427 Scroll down to the section "NTP Recommendations". Akemi