[Ubuntu 12.10] install VirtualBox-4.2 and start
来源:互联网 发布:java中list 编辑:程序博客网 时间:2024/06/05 09:30
[Install]
$ sudo apt-get install virtualbox
Setting up virtualbox (4.1.18-dfsg-1ubuntu1.1) ...
* Stopping VirtualBox kernel modules [ OK ]
* Starting VirtualBox kernel modules
* No suitable module for running kernel found [fail]
invoke-rc.d: initscript virtualbox, action "restart" failed.
Setting up dkms (2.2.0.3-1.1ubuntu1.1) ...
Setting up fakeroot (1.18.4-2) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Processing triggers for ureadahead ...
Setting up virtualbox-dkms (4.1.18-dfsg-1ubuntu1.1) ...
Loading new virtualbox-4.1.18 DKMS files...
First Installation: checking all kernels...
Building only for 3.5.0-17-generic
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.
* Stopping VirtualBox kernel modules [ OK ]
* Starting VirtualBox kernel modules
* No suitable module for running kernel found [fail]
invoke-rc.d: initscript virtualbox, action "restart" failed.
Setting up virtualbox-qt (4.1.18-dfsg-1ubuntu1.1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
[Start]
Ubuntu 升级VisualBox后无法启动 Kernel driver not installed (rc=-1908)
VisualBox之所以在Linux上比传统的VMware快得多,关键一点就是它和Linux内核的结合比较紧密,这也是开源的优点。
不过Linux内核更新很频繁,每次更新内核后启动VirtualBox都会提示:
VirtualBox kernel driver not installed. The vboxdrv kernel module was either not loaded or /dev/vboxdrv was not created for some reason. Re-setup the kernel module by executing ‘/etc/init.d/vboxdrv setup’ as root.
所以需要重新编译VirtualBox的内核,Ubuntu下执行如下命令:
sudo /etc/init.d/vboxdrv setup
如果提示
* Stopping VirtualBox kernel modules [ OK ]
* Uninstalling old VirtualBox DKMS kernel modules [ OK ]
* Trying to register the VirtualBox kernel modules using DKMS
* Failed, trying without DKMS
* Recompiling VirtualBox kernel modules
* Look at /var/log/vbox-install.log to find out what went wrong
找到/var/log/vbox-install.log文件,内容大致为:
Makefile:172: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
所以需要安装当前Linux内核的源文件,编译VirtualBox内核的时候需要它,Ubuntu下执行如下命令安装当前Linux内核的源文件:
sudo apt-get install linux-headers-`uname -r`
注意括起uname -r的不是单引号,而是Esc键下面的那个符号。
然后再编译VirtualBox内核执行如下命令:
sudo /etc/init.d/vboxdrv setup
- [Ubuntu 12.10] install VirtualBox-4.2 and start
- Install VirtualBox on Ubuntu 12.10
- VirtualBox Guest Additions install on Ubuntu and RHEL
- kibana install and start
- Torch - 1 -- Install and Get Start on Ubuntu 12
- TensorFlow - 1 - Install and get start on Ubuntu 12
- ubuntu install virtualbox, cannot open
- Ubuntu 16 Install virtualbox-5.1
- [Ruby] Install vagrant and virtualbox-4.2 on ububtu
- how to install VirtualBox and install XP in VirtualBox
- How to Install Oracle VirtualBox 5.1 on Ubuntu 16.04 & 15.10 and Debian 8/7
- How To Install VirtualBox 4.0 In Ubuntu
- Ubuntu Virtualbox fileshare and USB
- ubuntu QT install and configure
- Ubuntu and Centos Puppet Install
- virtualbox install
- How to Install VirtualBox and Windows on your Mac
- Ubuntu 12.10安装VirtualBox
- 活动图
- 关于网站到ASP,PHP,NET源码
- PostgreSQL数据库(入门)
- HDU 2844 Coins(多重背包)
- Linux系统使用time计算命令执行的时间
- [Ubuntu 12.10] install VirtualBox-4.2 and start
- WebRTC研究之peerconnection_client与peerconnection_server
- android编译全过程
- 如何修改Eclipse默认打开路径
- 输入一个单向链表,输出该链表中倒数第k个结点。链表的倒数第0个结点为链表 的尾指针
- java 常见的异常大集合
- 实例:在 javascript 中访问数据库方法
- IBM小型机的补丁安装
- Property and Outlet