mrgeneral
V2EX  ›  问与答

VM 下 CentOS 7 断网,如何是好?

  •  
  •   mrgeneral · Aug 8, 2016 · 3487 views
    This topic created in 3657 days ago, the information mentioned may be changed or developed.
    VM 下 CentOS7 mini CentOS 3.10.0-327.28.2.el7.x86_64 。

    SSH 连接后,一俩分钟就会自动断开连接,开始以为是 SSH 连接超时,系统设置了 60 秒超时, 3 次重试, SecureCRT 也设置了 60 秒发送 NO-OP 信号,还是断网!

    想到虚拟机设置的是桥接,独立 IP ,于是用手机登到路由,发现没有虚拟机连接了!然后电脑重新 SSH 连接,路由又出现了虚拟机连接。

    现在基本确定了是虚拟机网络的问题,查到资料说的是“网卡休眠”,在 grub.cfg 追加 pcie_aspm=off ,在 /boot/grub2/grub.cfg 后面追加了,并没有什么暖用,这就很尴尬了。

    大家有没有遇到类似的情况?如何解决?虽然不影响虚拟机跑业务,但是不能 SSH ,要到 VM 里面去操作,很麻烦呀。
    2 replies    2016-08-10 22:09:26 +08:00
    HughRyu
        1
    HughRyu  
       Aug 9, 2016
    是你是用 VMware WorkStation?看看 VMware NAT service 是否正常呢?
    mkeith
        2
    mkeith  
       Aug 10, 2016
    不要用 vm 的 nat 网络 直接桥接吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1006 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 19:09 · PVG 03:09 · LAX 12:09 · JFK 15:09
    ♥ Do have faith in what you're doing.