Vmwarevm clock inaccuracy (Linux graphical interface projection to Windows configuration reference)-slightly modified

Source: Internet
Author: User

The clock on the vmwarevm is inaccurate, causing many problems in development. For example, the MAKEFILE file may cause unnecessary repeated compilation, and some programs may even refuse to compile. I tried to run ntpd to synchronize the clock, but every time the error was too large, synchronization was rejected. Of course, you can also use ntpdate to regularly access external servers for synchronization, but it always feels awkward. Is there a better way?

After searching for a long time on Google, I also read the help documentation of VMware and learned that to solve the clock problem of vmwarevm, We need to install vmware-tools. The installation steps are as follows:

Solve the clock problem of vmwarevm 1. Install vmware-Tools

1. In the VMware Window Menu VM-> setting, select CD-ROM image ISO to point:
C: \ Program Files \ VMware Workstation \ Linux. ISO
2. On a Linux terminal, run the following command:

[Root] # cd/Media
[Root] # Mount/dev/CDROM/Media/
[Root] # ls
[Root] # rpm-IVH VMwareTools-5.5.3-34685.i386.rpm
I generally like to use rpm for installation. The advantage is that it is very convenient to uninstall the program. It is easy to view the installation details. Then run/usr/bin/vmware-config-tools.pl, note that this command cannot be run on a remote terminal.

Next, run vmware-Toolbox for configuration. However, this program requires an xwin environment, so it cannot be run yet.

Solve vmwarevm clock problem 2. Install xming xserver for windows in Windows XP

In this step, many friends are concerned about the same issue. Because Linux runs in the server mode and generally does not install xwindows components, the solution is to install xserver on your work machine. Xming is an open-source xserver, which is easy to use. The download address is:

Http://sourceforge.net/projects/xming

If you only need to remotely run simple programs such as vmware-toolbox, you just need to download and install the Xming-6-9-0-21-setup.exe, and other fonts and clients are not necessary. The installation of xming is very simple. When you first run xlaunch, you must use xlaunch to configure xserver parameters. In particular, you must check no access control. Otherwise, remote customers cannot connect to xserver.

Solve vmwarevm clock problem 3. Run vmware-toolbox

Set export display = 192.168.1.100: 0 on the Linux terminal. Here, 192.168.1.100 is my xserver address, that is, the address of my WindowsXP work machine.

[Root] # export display = 192.168.1.100: 0
[Root] # vmware-Toolbox &

OK. If it succeeds, the vmware-Toolbox window will pop up on the working machine. Is it nice? ^ _ ^
Check time synchrononiation between the virtual machine and the host operating system in option.

Solve vmwarevm clock Problem 4. Set grub startup parameters

The line in which the grub starts and configures the kernel ends with clock = pit. The example is as follows:

[Pre]
[Root @ mail grub] # Cat/boot/GRUB/grub. conf
# Grub. conf generated by Anaconda #
# Note that you do not have to rerun grub after making changes to this file
# Notice: you do not have a/boot partition. This means that
# All kernel and initrd paths are relative to/, eg.
# Root (hd0, 0)
# Kernel/boot/vmlinuz-version Ro root =/dev/sda1
# Initrd/boot/initrd-version.img
# Boot =/dev/sdadefault = 0 timeout = 5 splashimage = (hd0, 0)/boot/GRUB/splash.xpm.gz hiddenmenutitle
Centos_servercd (2.6.9-42.el)
Root (hd0, 0) kernel/boot/vmlinuz-2.6.9-42.EL Ro
Root = label =/clock = pit initrd/boot/initrd-2.6.9-42.EL.img.
[/PRE]

If VMware Tools cannot be installed on Guest OS, or the performance of VMware Guest OS is SuSE sles9 is too fast, use clock = pmtmr instead. If it is a single-CPU Guest OS, add the three parameters nosmp noapic nolapic to the final Kernel Parameter of grub. The example is as follows:
[Pre]
Title centos_servercd (2.6.9-42.el) root (hd0, 0)
Kernel/boot/vmlinuz-2.6.9-42.EL Ro root = label =/clock = pit nosmp noapic nolapic
Initrd/boot/initrd-2.6.9-42.EL.img
[/PRE]

========================================================== ======================

Disable the UTC method:

The UTC time is selected by default when Linux is installed. After the system is installed, the time difference is several hours !!

VI/etc/sysconfig/clock

Zone = "Asia/Shanghai"
UTC = true
Arc = false

Change UTC = true to false and restart. ========================================================== ===================== Network verification time:

# Check the time through the network. "0.fedora.pool.ntp.org" is the time server of Fedora.
# Other time servers include:
# "1.fedora.pool.ntp.org"
# "2.fedora.pool.ntp.org"
Ntpdate 0.fedora.pool.ntp.org

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.