bfti
V2EX  ›  Vagrant

vagrant 主机关闭后,global-status 显示状态怎么还是 running?

  •  
  •   bfti · Feb 28, 2015 · 3558 views
    This topic created in 4177 days ago, the information mentioned may be changed or developed.
    vagrant ssh进主机后,通过poweroff关闭虚拟机了,
    之后global-status显示的状态怎么还是running?
    1 replies    2015-04-18 17:47:43 +08:00
    raincious
        1
    raincious  
       Apr 18, 2015
    不知道我说的是不是对,但:

    貌似vagrant对虚拟机状态的监控很慢,如果想立即更新,可以用

    vagrant global-status --prune

    如果vagrant的管理进程完全无法响应了(比如虚拟机出了问题之类),只能手动关掉虚拟机然后ps找到对应的ruby进程,然后pkill -9关掉他。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5541 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 01:36 · PVG 09:36 · LAX 18:36 · JFK 21:36
    ♥ Do have faith in what you're doing.