SolveVMwarebelowCentOSa problem with a slow or too fast clockIn a VMware virtual machine, because the time is not synchronized with the real clock, there are many problems in development, such as Makefile files that cause unnecessary duplication, and even some programs refuse to compile. I tried to run ntpd to sync the clock, but often because of the error too much, resulting in a rejection of synchronization. Of course, you can also use ntpdate to regularly access external servers to synchronize, but always feel awkward. There is no better way. So Google search for a half-day, but also looked at the help of VMware documents, the need to install Vmware-tools, the installation steps are as follows:
First, installationVmware-tools1. VM-> setting in the VMware Window menu, choose CD-ROM image ISO to point to:
C:/Program Files/vmware/vmware Workstation/linux.iso 2. In the Linux terminal, execute the following command: [Root] #cd/media
[Root] #mount cdrom
Mount:block DEVICE/DEV/HDC is write-protected, mounting read-only
[Root] #cd cdrom
[Root] #ls
[Root] #rpm-ivh vmwaretools-5.5.1-19175.i386.rpm I usually like to use the RPM installation, the advantage is that the uninstall program is very convenient. It is also easy to see the details of the installation.
Then run/usr/bin/vmware-config-tools.pl and note that the command cannot be run in a remote terminal. Next, the run Vmware-toolbox is configured. However, the program needs to xwin the environment, so it cannot be run for the time being.
Second, inWindows XPinstalled inxming xserver for WindowsThis step a lot of friends care about the problem, like everyone else, because Linux runs in the server mode, generally does not install xwindows components,
The solution is to install Xserver on your own work machine.
Xming is an open source Xserver, easy to use, download address is:
Http://sourceforge.net/projects/xming
If you simply need to run a simple program such as Vmware-toolbox, you only need to download and install Xming-6-9-0-21-setup.exe, and other fonts and client are not necessary. Xming installation is very simple, the first time to run the attention of the use of Xlaunch configuration Xserver parameters, special attention to check the No Access control, otherwise remote clients can not connect Xserver.
third, the OperationVmware-toolbox
Set up export display=192.168.1.100:0 in the Linux terminal, where 192.168.1.100 is my xserver address, which is my Windows XP worker address. [Root] #export display=192.168.1.100:0
[Root] #vmware-toolbox & OK. If it goes well, Vmware-toolbox's window pops up on the machine, isn't it cool, ^_^ Note Check option synchrononiation between the virtual machine and the host Operating system. Can.
Four, set upGrubStartup Parameters At the end of the kernel row of Grub boot configuration, add Clock=pit, as follows [Root@mail grub]# cat/boot/grub/grub.conf # grub.conf generated by Anaconda # # You don't have to rerun grub on making changes to this file # notice: you don't have a/boot part Ition. 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/SDA default=0 timeout=5 splashimage= (hd0,0)/boot/grub/splash.xpm.gz Hiddenmenu title 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 If the guest OS cannot install VMware Tools, or VMware guest OS is SuSE SLES9 performance time is too fast, replace with CLOCK=PMTMR. If the virtual is a single CPU guest OS, add the NOSMP noapic nolapic These three parameters to grub's kernel parameters, as follows:
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.