You are on page 1of 2

Installing Virtual box in ubuntu 12.

04 and enabling USB in virtual machines: Install virtual box through command line #sudo apt-get install virtualbox or through ubuntu software center or download the source from www.virtualbox.org In the virtualbox manager click new ==> next and type VM name and OS type ==> enter memory size ==> next create virtual hard disk ==> select VDI next ==> select dynamically allocated next ==> entr virtual disk file location and size next ==> create ==> create ==> before installing guest os install the packages #sudo apt-get update #sudo apt-get upgrade #sudo apt-get install gcc dkms and configure the kernel by run the command #/etc/init.d/vboxdrv/ setup select created VM centos for example ==> click start ==> will be prompted for first run wizard click next ==> select the installation media or the iso image location ==> start the installation starts normally To enable the usb download and install virtualbox extension pacakage which is available in www.virtualbox.org add the user to vboxuser group by click administration ==>users and groups ==> manage groups ==> vboxusers ==> properties ==> enable the user and note the groupid in the file /etc/fstab put the entry dev group gid permission level of devmode to 664 'none 0 0' /proc/bus/usb usbfs devgid=123, devmode=664

restart the host machine now go to settings in virtual box manager select usb enable usb controllers and in the filter box add filters or ALT+ insert it shows the available usb devices add it to filters install the guest os automatically usb device is shown in guest os

You might also like