分页: 1 / 1

[转帖]Ubuntu 7.04 安装运行 VirtualBox 出错的解决办法

发表于 : 2007-11-28 15:35
tipfoo
Ubuntu 7.04 安装运行 VirtualBox 出错的解决办法
(整理自CSDN:Enchanter's Blog)
_____________________________________________________
安装时出错 ATAL: Error inserting vboxdrv (/lib/modules/2.6.20-15-generic/kernel/ubuntu/misc/vbox/vboxdrv.ko): Invalid argument
* Modprobe vboxdrv failed. Please use 'dmesg' to find out why.

代码: 全选

sudo gedit /boot/grub/menu.lst
禁止 NMI watchdog,在 kernel 命令行加上 nmi_watchdog=0

我的menu.lst

代码: 全选

......
kernel        /boot/vmlinuz-2.6.20-15-generic root=UUID=5bc0c3bc-6b8b-41a5-93fb-1348396c3d1a ro quiet splash nmi_watchdog=0 locale=zh_CN
......
然后保存 退出 重启!

_____________________________________________________
运行时遇到 VirtualBox kernal driver not accessible,permission problem.

按照VirtualBox的安全设置,如果要使用VirtualBox需要将您的使用的用户添加到vboxusers组中:

代码: 全选

sudo usermod -G vboxusers -a your_account
如若提示vboxusers组还未建立,则

代码: 全选

sudo dpkg-reconfigure virtualbox
_____________________________________________________
使用usb设备出现:Not permitted to open the USB device, check usbfs options.

首先建立usbfs组

代码: 全选

sudo addgroup usbfs
查看usbfs组的id号,下面是 1002

代码: 全选

$ cat /etc/group | grep usbfs
usbfs:x:1002:
然后修改/etc/fstab

代码: 全选

sudo gedit /etc/fstab
添加一行

代码: 全选

none /proc/bus/usb usbfs devgid=1002,devmode=664 0 0
把当前帐号加入到usbfs组中

代码: 全选

sudo usermod -G usbfs -a your_account
重启X(好像得重启系统?)

发表于 : 2007-12-28 15:23
渔风
这样的好帖竟然没有人顶,使劲顶。

好多朋友都出错了的。

谢谢楼主。

发表于 : 2008-01-01 2:10
edelweiss
多谢楼主!!!

发表于 : 2008-01-01 11:30
mech
为什么 usermod 后面有 -a 参数?
man usermod的说明里面没有 -a 参数啊?

发表于 : 2008-01-02 12:04
tipfoo
不知LS用的什么Linux,我的 Ubuntu 7.04 (Feisty)

代码: 全选

$ usermod --help
Usage: usermod [options] LOGIN

Options:
  -c, --comment COMMENT         new value of the GECOS field
  -d, --home HOME_DIR           new home directory for the user account
  -e, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
  -f, --inactive INACTIVE       set password inactive after expiration
                                to INACTIVE
  -g, --gid GROUP               force use GROUP as new primary group
  -G, --groups GROUPS           new list of supplementary GROUPS
  -a, --append          append the user to the supplemental GROUPS
                                mentioned by the -G option without removing
                                him/her from other groups
  -h, --help                    display this help message and exit
  -l, --login NEW_LOGIN         new value of the login name
  -L, --lock                    lock the user account
  -m, --move-home               move contents of the home directory to the new
                                location (use only with -d)
  -o, --non-unique              allow using duplicate (non-unique) UID
  -p, --password PASSWORD       use encrypted password for the new password
  -s, --shell SHELL             new login shell for the user account
  -u, --uid UID                 new UID for the user account
  -U, --unlock                  unlock the user account

发表于 : 2008-01-03 13:30
mech
ubuntu 7.10
真的很奇怪啊

发表于 : 2008-04-27 12:36
剩疯
不错 支持一下``````````