为什么使用Vagrant的虚拟Box vboxheadless进程会占用我100%的CPU? [英] Why does virtual box vboxheadless process using Vagrant use 100% of my cpu?

查看:1451
本文介绍了为什么使用Vagrant的虚拟Box vboxheadless进程会占用我100%的CPU?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我使用了几个无用的盒子,当我拿起它们时,有时/随机地"开始在OS X机器上占用100%的CPU,我不知道是什么原因造成的.我可以ssh到vmachine中并检查负载,它的负载为0,不是盒子里正在运行的东西.

So I'm using a couple vagrant boxes and when i have them up, "sometimes/randomly" it starts to take up 100% cpu on my OS X machine and i have no idea whats causing it. I can ssh into the vmachine and check the load and it's at 0 sot its not something thats running in the box.

我可以解决此问题的唯一方法是,如果我暂停并恢复它,那么它就会消失,直到随机地再次发生.有时数小时后,有时数天后.

The only way I can fix this is if i suspend it and resume it, then it goes away until randomly it starts to happen again. Sometimes hours later, sometimes days later.

我唯一能想到的可能是因为我正在虚拟机中使用nfs挂载来访问我的项目,但是我不确定.有任何想法吗?

The only thing I can think of is it might be because i'm using nfs mounts within my virtual machine to access my projects, but i'm not sure yet. Any ideas?

推荐答案

EngineerCoder的答案仅在使用CoreOS时适用.

EngineerCoder's answer only applies if you're using CoreOS.

如果VirtualBox Extensions软件包的版本与VirtualBox的版本不同,我就会遇到问题.另外,安装Vagrant VirtualBox来宾插件:

I've run into problems if the VirtualBox Extensions pack version differs from the version of VirtualBox. Also, install the Vagrant VirtualBox guest plugin:

vagrant plugin install vagrant-vbguest

并确保在更新Virtualbox和扩展包时更新插件:

And make sure to update the plugin when you update Virtualbox and the extension pack:

vagrant plugin update vagrant-vbguest

这篇关于为什么使用Vagrant的虚拟Box vboxheadless进程会占用我100%的CPU?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆