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

Kvm、VMware、Virtualbox、Xen、Qemu 等
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

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

#16

帖子 smallapple » 2011-08-05 11:19

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

是不是这样的
是这样。
VM的话要先安装上你当前使用内核的相应头文件再重新配 置看看
chinafree
帖子: 18
注册时间: 2008-10-19 14:54

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

#17

帖子 chinafree » 2011-08-05 11:25

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
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

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

#18

帖子 smallapple » 2011-08-05 11:32

好象是这样
sudo apt-get install linux-headers-`uname -r`
chinafree
帖子: 18
注册时间: 2008-10-19 14:54

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

#19

帖子 chinafree » 2011-08-05 11:38

smallapple 写了:好象是这样
sudo apt-get install linux-headers-`uname -r`
安装完是不是要重启服务器
用sudo reboot
chinafree
帖子: 18
注册时间: 2008-10-19 14:54

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

#20

帖子 chinafree » 2011-08-05 20:11

执行这个命令
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 哪里有下啊
chinafree
帖子: 18
注册时间: 2008-10-19 14:54

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

#21

帖子 chinafree » 2011-08-08 9:25

已经成功解决。可以锁了
回复