1. Install Extension Pack
also see: How do I install the VirtualBox version from Oracle to install an Extension Pack?
USB 1.0 is supported in the version installed from the Ubuntu repositories (from VirtualBox > 4.x).
For USB 2.0 and USB 3.0 we need to install the free (but closed source) VirtualBox Extension Pack (NOT the "platform packages") from the VirtualBox download page. If you had installed VirtualBox from the repositories you have to make sure to choose the extension pack for the right version of VirtualBox. You can see the version of your installed VirtualBox in the help > About VirtualBox
menu. For regular updates and bug fixes, it is recommended to install the most recent VirtualBox version from the Oracle repository.
All virtual machines need to be powered off before installing the extension.
2. Become a "vboxuser" in Host machine (local machine)
To be able to get access to an attached USB device, the Ubuntu host user needs to be in the vboxusers
group. Add your user to this group by running the following command
sudo usermod -aG vboxusers <username>
and reboot or logout/login.
3. Activate USB support in VirtualBox Manager
Shut down your virtual machine and open USB settings in the VirtualBox Manager. Tick Enable USB Controller
and USB 2.0 (EHCI) Controller
or USB 3.0 (xHCI) Controller
.
If these settings are greyed out, you need to shut down the virtual machine.
4. Select host USB device for access from the guest
To grant access to USB devices we need to select a device to disable in the host and to enable in the guest (this is a precaution to avoid simultaneous access from host and guest). This can be done from the panel Devices menu or by right mouse click in the bottom panel of the VirtualBox Manager on the USB icon:
Tick the device you need in the guest, untick it if you need it in the host. If you can't see your USB device in that list, it means that VirtualBox cannot access your host USB devices. Make sure your user is added to the vboxusers
group and that you restarted your host.
The selected device will immediately be accessible from the guest. A Windows guest may need additional drivers.
- Windows 7 needs an additional driver for USB 3.0 support.
- Windows 10 does not accept an NTFS formatted USB pen drive.
[optional] Use USB filters for permanent access in the guest
By defining USB filters we can define USB devices that will automatically be presented to the guest when booting the guest OS.
Click on the green + symbol on the right to add a known device.
Note, that some devices may lead to a boot failure of the guest. We can not use these devices for filters.
Read more on USB support in the VirtualBox User Manual.
Also see: what are the proper values for usb device in virtual box
As per my answer here:
How to create a bootable USB with multiple ISO images in it
This is what i did to run Xubuntu From a SD card it applies to USB sticks too it's really simple actually.
First we need 2 USB sticks, one for the liveCD's and the other to install the OS.
Ok, so now first make a liveUSB bootable drive, I recommend you to use UNetbootiN, to do this, pick the iso and create the liveUSB.
Now, that you have the bootable USB, reboot your PC and start the liveUSB, once you're in there start the live session.
Once you're in connect the second USB to the PC and format it to EXT4, then simply point the installer to the USB drive and that's it ( i went a little on the extreme side, and disconnected all of my Hard drives to avoid grub being insalled on them or messing the existing installations).
And now you only need to set the BIOS of your PC to boot the USB device where you installed the System.
Best Answer
You cannot run 2 different operating systems at the same time on the same computer, however an alternative would be to install a virtual machine program like VirtualBox or VMware Player on Windows and then run Ubuntu in a virtual machine.
Virtual machine softwares are basically a program that pretends to be a computer, allowing you to run multiple operating systems at the same time. Keep in mind that virtual machines require a decent computer, and they don't get great performance so it depends what you plan to do as to whether it will be viable. In order to access your files you will need to enable a shared folder between the virtual machine guest and the Windows host, because the virtual machine has it's own virtual hard drive.
Just install a virtual machine program, create a new virtual machine, and then install Ubuntu like normal within the virtual machine. If you need help figuring out how to do that check out this posting for VirtualBox [ How to install Ubuntu on VirtualBox? ] or this posting for VMware Player [ Can I run ubuntu with VMware? ].
VirtualBox: https://www.virtualbox.org/wiki/Downloads
VMware Player: https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_player/6_0