分页: 2 / 2

Re: 求助:在ubuntu 10.04 desktop中安装虚拟机的问题

发表于 : 2011-08-05 11:19
smallapple
chinafree 写了:
smallapple 写了:装 dkms就可以,不用virtualbox-ose-dkms
我在网上搜到个文章是这样说的
sudo aptitude update
sudo aptitude install dkms
sudo /etc/init.d/vboxdrv setup

是不是这样的
是这样。
VM的话要先安装上你当前使用内核的相应头文件再重新配 置看看

Re: 求助:在ubuntu 10.04 desktop中安装虚拟机的问题

发表于 : 2011-08-05 11:25
chinafree
smallapple 写了:
chinafree 写了:
smallapple 写了:装 dkms就可以,不用virtualbox-ose-dkms
我在网上搜到个文章是这样说的
sudo aptitude update
sudo aptitude install dkms
sudo /etc/init.d/vboxdrv setup

是不是这样的
是这样。
VM的话要先安装上你再重新配 置看看
安装这个当前使用内核的相应头文件,是不是应该这样安装,
sudo apt-get install linux-headers-$(uname -r) build-essential

Re: 求助:在ubuntu 10.04 desktop中安装虚拟机的问题

发表于 : 2011-08-05 11:32
smallapple
好象是这样
sudo apt-get install linux-headers-`uname -r`

Re: 求助:在ubuntu 10.04 desktop中安装虚拟机的问题

发表于 : 2011-08-05 11:38
chinafree
smallapple 写了:好象是这样
sudo apt-get install linux-headers-`uname -r`
安装完是不是要重启服务器
用sudo reboot

Re: 求助:在ubuntu 10.04 desktop中安装虚拟机的问题

发表于 : 2011-08-05 20:11
chinafree
执行这个命令
sudo apt-get install linux-headers-`uname -r`
又得到如下的错误 :

webdown@gh:~$ sudo apt-get install linux-headers-`uname -r`
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package linux-headers-2.6.38.2-grsec-xxxx-grs-ipv6-32

执行sudo /etc/init.d/vboxdrv setup
也是这个错误


webdown@gh:~$ sudo /etc/init.d/vboxdrv setup
* Stopping VirtualBox kernel modules
Opening /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
[ OK ]
* Uninstalling old VirtualBox DKMS kernel modules [ OK ]
* Trying to register the VirtualBox kernel modules using DKMS
Error! Your kernel headers for kernel 2.6.38.2-grsec-xxxx-grs-ipv6-32 cannot be found at
/lib/modules/2.6.38.2-grsec-xxxx-grs-ipv6-32/build or /lib/modules/2.6.38.2-grsec-xxxx-grs-ipv6-32/source.

* Failed, trying without DKMS
* Recompiling VirtualBox kernel modules
* Look at /var/log/vbox-install.log to find out what went wrong

怎么解决啊,这个包 kernel 2.6.38.2-grsec-xxxx-grs-ipv6-32 哪里有下啊

Re: 求助:在ubuntu 10.04 desktop中安装虚拟机的问题

发表于 : 2011-08-08 9:25
chinafree
已经成功解决。可以锁了