用了这么长时间的virtualbox 第一次遇到这个情况,不管是新建还是打开一个原有的虚拟机都报这个错误:The virtual machine 'xp' has terminated unexpectedly during startup with exit code 1。
解决方案:
[root@localhost ~]# vboxmanage list vms
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (2.6.32-358.el6.x86_64) or it failed to
load. Please recompile the kernel module and install it by
sudo /etc/init.d/vboxdrv setup
You will not be able to start VMs until this problem is fixed.
"xp" {7fa24b13-df38-49f8-90cc-4a5fc017a1e0}
[root@localhost ~]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules [确定]
Recompiling VirtualBox kernel modules [确定]
Starting VirtualBox kernel modules [确定]
再次运行就正常了,不知道是何原因。