您的位置:首页 > 其它

Installing VirtualBox OSE on Ubuntu 7.10 Gutsy Gibbon

2008-05-09 22:14 477 查看
VirtualBox is a powerfulvirtual machine software. The VirtualBox OSE is open source edition ofVirtualBox. It is functionally equivalent to the full VirtualBox,except for a few features that primarily target enterprise customers.Currently, VirtualBox OSE was already in the Ubuntu 7.10 Gutsy Gibbonrepositories.

1. To enable universe repository, you can click System → Administration → Software Sources and check Community-maintained Open Source software (universe) option in Ubuntu Software tab.

2. Now you need to update sources, run this command in your terminal:

sudo apt-get update


3. Install VirtualBox OSE:

sudo apt-get install virtualbox-ose virtualbox-ose-source


4. Install VirtualBox OSE kernel module:
sudo apt-get install module-assistant
sudo m-a prepare
sudo m-a a-i virtualbox-ose
sudo modprobe vboxdrv


5. Automatically load the kernel module:

sudo gedit /etc/modules


Then add:

vboxdrv


6. Add your username to “vboxusers” group:

sudo adduser [your username] vboxusers


To run VirtualBox OSE, you can click Applications → System Tools → InnoTek VirtualBox menu item.





Track:http://phorolinux.com/installing-virtualbox-ose-on-ubuntu-710-gutsy-gibbon.html

Some Problems:

1.

代码:
TheVirtualBox kernel driver is not accessible to the current user. Makesure that the user has write permissions for /dev/vboxdrv by addingthem to the vboxusers groups. You will need to logout for the change totake effect..
VBox status code: -1909 (VERR_VM_DRIVER_NOT_ACCESSIBLE).

Result Code:0x80004005
我用这个命令就解决了

代码:
sudo chmod ugo+rw /dev/vboxdrv
参考 http://forum.ubuntu.org.cn/about64995.html&sid=09c1c2f28edf4c1cc3988fc30517e204 四楼

2.
代码:
VirtualBoxkernel driver not installed. The vboxdrv kernel module was either notloaded or /dev/vboxdrv was not created for some reason. Re-setup thekernel module by executing '/etc/init.d/vboxdrv setup' as root.
VBox status code: -1908 (VERR_VM_DRIVER_NOT_INSTALLED).
代码:
sudo /etc/init.d/vboxdrv setup
后log里显示

代码:
/etc/init.d/vboxdrv: line 150: /usr/share/virtualbox/src/build_in_tmp: No such f
ile or directory
代码:
sudo apt-get install virtualbox-ose virtualbox-source-ose
sudo m-a prepare
sudo m-a auto-install virtualbox-ose
然后

代码:
sudo adduser <user> vboxusers
<user>是你的用户名

参考 http://ubuntuforums.org/showthread.php?t=557077 (英文)7楼

3. 共享文件夹

新版的vbox里有共享文件夹设置,设备->共享文件夹
设定好共享的文件夹后打开客户机,我的是deepinXP系统

打开 我的电脑->工具->映射网络驱动器
选择驱动器名,文件夹名是前一步设的共享文件夹名,确定,在我的电脑下就会出现一个网络驱动器了

参考 http://linuxtoy.org/archives/configuring-virtualbox.html

4. use连接问题

增加用户组usbfs

代码:
sudo groupadd usbfs
查看usbfs的gid

代码:
cat /etc/group | grep usbfs
我的系统上输出

代码:
usbfs:x:1002:
把自己所用的用户增加到usbfs组

代码:
sudo adduser <user> usbfs
<user>是你的用户名

编辑/etc/fstab文件,添加下面两行,

代码:
# 1002 is the USB group ID
none /proc/bus/usb usbfs devgid=1002,devmode=664 0 0
注意:你的gid可能不是1002,如果不介意所有用户使用及安全问题,可将664改为666

重新起动后,应该就可以在客户机中使用USB设备了。在客户机里使用USB设备前要先在主机里卸载。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: