chenjiali 发表于 2015-10-12 12:26:08

Linux上安装VirtualBox的方法

Open the terminal and get into super user mode:

su -

1.) Get the latest VirtualBox package (as of now, 2.2.4) from the Virtualbox Website for Fedora 11 and install it.The following command should download and install the application:
wget http://download.virtualbox.org/virtualbox/2.2.4/VirtualBox-2.2.4_47978_fedora11-1.i586.rpm && rpm -ivh VirtualBox-2.2.4_47978_fedora11-1.i586.rpm

2.) Get the kernel-devel and other needed packages:
yum install make automake autoconf gcc kernel-devel dkms

3.) Run the setup file for VirtualBox:
/etc/init.d/vboxdrv setup

4.) Add yourself to the “vboxusers” group and fix the SELinux Permissions:
usermod -G vboxusers -a username
chcon -t textrel_shlib_t /usr/lib/virtualbox/VirtualBox.so

5.) Run, and enjoy!


6.) To Get USB Support:

    1– locate file usbfs: in my case is /sys/bus/usb/drivers (I suggest to find the file with a usb device inserted;
    2– modify file /etc/fstab inserting a line containing the right path and the number corresponding the “vboxusers” group :
    none /sys/bus/usb/drivers   usbfs   devgid=501,devmode=664      0    0
    3– start VB and try…;

7.) VirtualBox虚拟机访问主机文件:
    1- 分配数据空间, 暂定数据空间名称为:fc11
    2- 在虚拟机中映射网络驱动器, 文件夹为: /vboxsvrfc11
页: [1]
查看完整版本: Linux上安装VirtualBox的方法