1. 程式人生 > >虛擬機器linux上路由器啟動問題分析

虛擬機器linux上路由器啟動問題分析

虛擬機器linux上路由器啟動問題分析

根據個人碰到的問題,和網路文件整理而成。

出現的問題:啟動的時候停止在進度條,進入控制檯(ctrl+alt+t)提示如下:

vmsvc [warning] [guestinfo] RecordRoutingInfo: Unable to collect IPv4 routing table

如果卸掉網路,系統時可以進入的。

. Cause(出現的原因)

This issue occurs when the Linux iputils package causes a delay in the boot process. A warning message appears when the guestinfo plug-in tool fails to parse the content from the /proc/net/route file. The guest operating system's clock is ahead of the host on which it is running, causing the arping process to become unresponsive during boot. This results in the delayed boot times.

When a virtual machine is affected this issue occurs every time it boots, but it does not happen on every Linux virtual machine.

Resolution

To resolve this issue, see the RedHat Advisory RHBA-2013:1290.

Note: The preceding link was correct as of December 11, 2013. If you find the link is broken, provide feedback and a VMware employee will update the link.

.Resolve (解決的方法1:已採用)

To work around this issue, add rtc.diffFromUTC=0 to the .vmx file of the affected virtual machine. This forces a time sync, which enables the arping process to complete as expected leading to normal boot times.

To add rtc.diffFromUTC=0 to the .vmx file:

1.Power off the virtual machine.

2.Log in to the ESXi/ESX host on which the virtual machine is located with a secure shell session.

3.Change to the virtual machine's .vmx file location (located at /vmfs/volumes/datastore_name/vm_name).

4.Create a backup of the .vmx file. 

5.Open and edit the original .vmx file with a text editor.

6.Add this entry to the end of the .vmx file:

rtc.diffFromUTC=0

7.Close and save the .vmx file.

8.Power on the virtual machine.

. Resolve (解決的方法2:該方法未驗證)

1 # locate libtimeSync.so 

2 /root/vmware-tools-distrib/lib/plugins32/vmsvc/libtimeSync.so 

3 /root/vmware-tools-distrib/lib/plugins64/vmsvc/libtimeSync.so 

4 /usr/lib/vmware-tools/plugins32/vmsvc/libtimeSync.so 

5 /usr/lib/vmware-tools/plugins64/vmsvc/libtimeSync.so 

重新命名 /usr/lib/ 下的 libtimeSync.so libtimeSync.so.bak

兩種方法都是與時間相關的配置修改

.本人的機器上還需檢查

在啟動問題解決後,能ping通外部閘道器,但是還是不能上網,檢查resolv.conf,

cat /etc/resolv.conf

修改resolv.conf中的DNS配置

 nameserver 192.160.113.199