vmware里的linux有eth0,也有ip,但不能通信

hh9net
vmware里的linux有eth0,也有ip,但不能通信

Hello all,
My virtual machine hangs up and becomes unreachable on my storage network periodically and its happening quite frequent now. It seems like the only way to get around would be to restart the VM. Below is the error message i get in the VM's /var/log/messages file. This is a production VM and we have no support ( i.e lack of funds) and it really is a one man show.
june 20 10:27:19 host0001 kernel: vmxnet_close: failed to finish all pending tx.
june 20 10:27:19 host0001 kernel: This virtual machine may be in an inconsistent state.



this is the related code

  if (lp->numTxPending > 0) {
      //Wait absurdly long (2sec) for all the pending packets to be returned.
      printk(KERN_DEBUG "vmxnet_close: Pending tx = %d/n", lp->numTxPending);
      for (i = 0; i < 200 && lp->numTxPending > 0; i++) {
         outl(VMXNET_CMD_CHECK_TX_DONE, dev->base_addr + VMXNET_COMMAND_ADDR);
         udelay(10000);
         check_tx_queue(dev);
      }

      //This can happen when the related vmxnet device is disabled or when
      //something's wrong with the pNIC, or even both.
      //Will go ahead and free these skb's anyways (possibly dangerous,
      //but seems to work in practice)
      if (lp->numTxPending > 0) {
         printk(KERN_EMERG "vmxnet_close: Failed to finish all pending tx./n"
                "Is the related vmxnet device disabled?/n"
                "This virtual machine may be in an inconsistent state./n");
         lp->numTxPending = 0;
      }
   }

[[i] 本帖最后由 hh9net 于 2008-6-21 00:04 编辑 [/i]]

Largem
你可以试一下卸掉vmxnet驱动,在重新加载vmxnet驱动。当然你要先down掉你所有的网络接口。

hh9net
你也碰到过吗?请问如何卸载
rmmod vmxnet?

ipaddr
VMWare要设置成网桥的模式。

yu_er
我现在的系统也装了vm,网络连接用bridge, NAT都可以的,不过有时候网络时断时续,这时候在网络配置里面删除这个连接,然后新建一个就可以了 !

polokus
vmware里面设置成bridge模式,这样访问应该就没有问题了吧