Choose style:

Author Topic: How to have USB Harddisks & sticks work under VirtualBox?  (Read 5029 times)

0 Members and 1 Guest are viewing this topic.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25725
  • Karma: 2822
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
When entering your password in a terminal nothing will be echoed to screen (not even *******) but it *IS* going in, so just type your password and hit enter.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline jozefmw

  • Member
  • ***
  • Posts: 279
  • Karma: 6
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 9
Thank you again!

Now I am that far as to scroll down the Groups settings to vboxusers.
This time they are not available on the system ....

So I have to wait for further help to solve this ...

Offline jozefmw

  • Member
  • ***
  • Posts: 279
  • Karma: 6
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 9
By the way,
Rebooting doesn't help.
Sill no vmusergroup ...

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25725
  • Karma: 2822
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Try reinstalling
Code: [Select]
sudo apt reinstall virtualbox-4.3
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline jozefmw

  • Member
  • ***
  • Posts: 279
  • Karma: 6
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 9
Reinstalling VirtualBox worked and I found the vboxusers group.
Checked and indeed I am  vboxuser.
Then I downloaded using this link:
http://download.virtualbox.org/virtualbox/4.3.14/Oracle_VM_VirtualBox_Extension_Pack-4.3.14-95030.vbox-extpack
Installed it and to my surprise I found myself back at the point where I started:
Windows 7 with all the programs I had installed in it.
And again the USB Harddisks and sticks marked in the VirtualBox menu, but not available within Windows.

So, It definitely was not deinstalled or purged properly.

Quite an adventure ....   :D :D


Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25725
  • Karma: 2822
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Start virtualbox, but don't start the VM yet.

With your USB devices attached, right click on your VM and select "Settings", then "USB"

Now click the "Add" button (+) and select a USB device.
(do this for all your USB deviceds)

Now boot your VM
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline jozefmw

  • Member
  • ***
  • Posts: 279
  • Karma: 6
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 9
By clicking the (+) button no USB devices were listed.

What I did next was to click right inside the empty window.
Another small window appeared.
By clicking left on 'add filter from Device' the available USB devices were listed.

Clicking on each of them listed them inside the window.

Now I got following situation:
Tick 'Enable USB Controller
Don't tick 'Enable USB 2 2.0 (EHCI) Controller , because this would block the process.
All listed USB devices were ticked.
O.K. Button

Started Windows 7,
But again the same situation: USB Devices listed in VB menu  under 'Devices'
But they don't show up under Windows.

What about starting it all over again?
What I mean is to  remove first of all Windows from VirtualBox.
Then removing VirtualBoxc using the command:
sudo apt purge virtualbox*

and starting again  by:
sudo apt install build-essential linux-headers-generic 
etc.

What do you think?

Anyway, thank you very much for your patience !!!
 
« Last Edit: August 01, 2014, 05:19:54 pm by jozefmw »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25725
  • Karma: 2822
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Up to you .. eventually I'll get around to trying it myself, but just a bit bust ATM.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline jozefmw

  • Member
  • ***
  • Posts: 279
  • Karma: 6
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 9
It got quite complicated having at last a small result. The printer works.
But still no USB harddisks. or sticks.

So I removed windows 7 from VirtualBox.
Removed Virtualbox and reinstalled Virtualbox.
In the middle of the outcome I saw this:


Setting up virtualbox-4.3 (4.3.14-95030~Ubuntu~raring) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.

Stopping VirtualBox kernel modules ...done.    ...  - I thought virtualbox was removed by: sudo apt purge virtualbox*   ?
Uninstalling old VirtualBox DKMS kernel modules ...done.   ............................................................................................   - I thought virtualbox was removed by: sudo apt purge virtualbox*   ?



I checked and saw I still was vboxuser.

http://download.virtualbox.org/virtualbox/4.3.14/Oracle_VM_VirtualBox_Extension_Pack-4.3.14-95030.vbox-extpack
and double click it to to install it .. virtualbox will start


and offer to install it, clcik the "Install" button, then scroll to the bottom of the license and click the "I Agree" button, and enter your password when prompted.
It installed on its own behalf

By double clicking on it  Oracle VM VirtualBox Manager appears showing the option: 'New'

Then, you have to give the new virtual machine a name, choosing the type (like Windows, for instance) and the Version (like Windows 7 32 bit
Next: The machine installs
and I went through the process I described in my last post to have acces to the printer,  harddrives and sticks.
Only the printer was recognized. At leat I can print now.

In windows I had a look at the installed hardware
The printer was present and all the harddisks and sticks. Only the printer was ticked green.
All the HD's and sticks had the well known yellow note of interrogation.
I clicked right on each of them trying to have windows find and load the missing drivers.
Windows tried, but did not succeed.

So how to install the missing drivers for harddisks an USB sticks under Windows,
or is there another solution to succeed through VirtualBox itself?

Another possibility came to my mind to use the alternative you mentioned in the beginning of all this:

Install : VMware and see what happens.
I try this one, leaving VirtualBox as it is.
Just hope it will install easily ...... :D
« Last Edit: August 02, 2014, 06:59:16 am by jozefmw »

Offline jozefmw

  • Member
  • ***
  • Posts: 279
  • Karma: 6
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 9
Re: How to have USB Harddisks & sticks work under VirtualBox?
« Reply #24 on: August 05, 2014, 12:03:00 pm »
I kept trying to find myself a solution to my problem.

I resume:
In groups settings I am a member of vboxusers

By putting in the command: VBoxManage list usbhost
All my HD en sticks are listed.

In a German computer magazine they mentioned this problem and proposed this solution.
I guess to repair an eventual problem in this VBox group membership:
/usr/sbin/usermod -a -G virtualbox [Username]

So i put in: /usr/sbin/usermod -a -G virtualbox [Elias]
Outcome:
usermod: group 'virtualbox' does not exist

Then I changed 'virtualbox' into 'vboxusers', so I put:
/usr/sbin/usermod -a -G vboxusers [Elias]
Outcome:
user '[Elias]' does not exist

So, why do I not find my harddisks and USBsticks in the virtual machine (Windows 7)
In the virtual machine under 'Devices', they are listed, but not available in Windows 7.



Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1779
  • Karma: 470
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: How to have USB Harddisks & sticks work under VirtualBox?
« Reply #25 on: August 05, 2014, 01:50:49 pm »
Hi,

I really don't know much of anything about VMs and using VirtualBox, but for some reason I looked at your posting and noticed this (note the word using the bold font):

So I removed windows 7 from VirtualBox.
Removed Virtualbox and reinstalled Virtualbox.

In the middle of the outcome I saw this:

Setting up virtualbox-4.3 (4.3.14-95030~Ubuntu~raring) ...


But according to your profile, you are using Peppermint 5, which uses the "trusty" repositories and not the "raring" ones. Did I overlook somewhere that you are doing this installation on something other than Version 5 of Peppermint? This could be the source of your problems...

Regards,
-- Slim
« Last Edit: August 05, 2014, 01:52:45 pm by Slim.Fatz »
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline jozefmw

  • Member
  • ***
  • Posts: 279
  • Karma: 6
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 9
Re: How to have USB Harddisks & sticks work under VirtualBox?
« Reply #26 on: August 05, 2014, 02:40:42 pm »
Thank you very much for your answer.
It is Peppermint 5, I am running VMBox on.

I used the command, proposed by PCNetSpek.
As I am not familiar at all with the Terminal and commands,
what would you propose to do. remove and reinstall VMBox using the same command but
changing 'raring' for 'trusty'?

Offline Slim.Fatz

  • Trusted User
  • Veteran
  • *****
  • Posts: 1779
  • Karma: 470
  • Where's the mouse?
    • View Profile
  • Peppermint version(s): Peppermint 7, 8.5 & 10 - 64bit
Re: How to have USB Harddisks & sticks work under VirtualBox?
« Reply #27 on: August 05, 2014, 04:28:17 pm »
As I said, I do not know anything about VMs or VMBox or VirtualBox. However, the proper repository for Peppermint 5 is normally "trusty" and not "raring". I mentioned this in my post hoping that PCNetSpec will see it (in case he overlooked this in your previous post).


So it is probably best to wait for him to reply (or someone who knows something about VMs, VMBox or VirtualBox).


Good luck and be patient, someone with more knowledge than I will surely help you,


-- Slim
"Life first -- Peppermint a close 2nd!" -- Zeb

Tread lightly: Fluxbox, JWM, i3, Openbox, awesome

Offline jozefmw

  • Member
  • ***
  • Posts: 279
  • Karma: 6
  • New Forum User
    • View Profile
  • Peppermint version(s): 8 & 9
Re: How to have USB Harddisks & sticks work under VirtualBox?
« Reply #28 on: August 05, 2014, 05:00:02 pm »
Thank you very much Slim !

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25725
  • Karma: 2822
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: How to have USB Harddisks & sticks work under VirtualBox?
« Reply #29 on: August 10, 2014, 02:33:15 pm »
OK, figured it out....

Fire up VirtualBox (VirtualBox Manager), but do not start the Windows VM yet

Go to:-
File > Preferences > Extensions
and make sure
Oracle_VM_VirtualBox_Extension_Pack-4.3.14-95030
is installed (green tick next to name)

if not .. click the "Add Package" button and point it at the
Oracle_VM_VirtualBox_Extension_Pack-4.3.14-95030.vbox-extpack
file you downloaded earlier from the Oracle site.
step through the install process

When done, in the main Virtualbox Manager window, click the "Settings" button and select
USB
and tick the
Enable USB 2.0 (EHCI) Controller
Click OK

Start the Windows VM

Then right-click the little USB plug symbol bottom right of the VM screen (indicated by the red arrow in the picture below) and select the USB stick so it has a tick next to it .. Windows should load the drivers and offer to open the USB stick.

« Last Edit: August 10, 2014, 02:37:27 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec