LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-25-2007, 05:54 AM   #1
rob33n
Member
 
Registered: May 2007
Location: Turkey
Distribution: Debian, Windows
Posts: 134

Rep: Reputation: 16
VirtualBox question


I'm using VirtualBox and I cant use usb ports. when I plug my usb hdd nothing happened.
and I downloaded some music files with limewire in Windows XP on VB. I want to copy or move them all in my home directory. How can I do that?
 
Old 11-25-2007, 05:13 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
One way would be to use Samba.
 
Old 11-25-2007, 08:36 PM   #3
rob33n
Member
 
Registered: May 2007
Location: Turkey
Distribution: Debian, Windows
Posts: 134

Original Poster
Rep: Reputation: 16
hmm, I got that I think
thanks for advice.
I found some tutorials about sharing. thanks.
 
Old 11-27-2007, 01:52 AM   #4
pliqui
Member
 
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Rep: Reputation: 17
And what happened if is a USB Printer?
 
Old 11-27-2007, 05:54 AM   #5
rob33n
Member
 
Registered: May 2007
Location: Turkey
Distribution: Debian, Windows
Posts: 134

Original Poster
Rep: Reputation: 16
I found this.
http://www.virtualbox.org/wiki/User_HOWTOS
really helpful documentation.
 
Old 11-27-2007, 09:12 PM   #6
pliqui
Member
 
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Rep: Reputation: 17
Well. i was kinda desperate this morning cuz i need to print my grade thesis for today, i was working with xp and office 2007 cuz my partner and me use groove to work on it.

And after searching a lot of inet i was sloppy, tired + flu and then voila (at 6:00 am lol)
Code:
pliqui@debian:~$ su
Password: 
debian:/home/pliqui# VirtualBox &
And boom ! got full acces to usb devices. I do not recommend it, because root should be for command line and for maintenance and administrating the system. But i was in a hurry.

Now doing a little thinking, try adding your user to the virtualbox group, it's called vboxusers... i will kill myself if that works lol

Last edited by pliqui; 11-27-2007 at 09:14 PM.
 
Old 11-28-2007, 04:05 PM   #7
rob33n
Member
 
Registered: May 2007
Location: Turkey
Distribution: Debian, Windows
Posts: 134

Original Poster
Rep: Reputation: 16
when I was root, there is no OS in Vbox.
as you see in the picture: http://img139.imageshack.us/img139/4193/vboxrootcw9.png
 
Old 11-28-2007, 07:25 PM   #8
pliqui
Member
 
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Rep: Reputation: 17
You need to add the OS again, just simply follow this instructions

1.- Click New
2.- Choose a name and the OS type
3.- Get your memory size
4.- When you are in the Virtual Disk windows, choose existing instead of new, the click add and go to you user (not the root) virtual box folder and select the .vdi. By default Virtual box store the drive inside that folder, but you can place it in any folder.

in my case

Code:
debian:~# ls -lA /home/pliqui/.VirtualBox/
total 7524744
-rw-r--r-- 1 pliqui pliqui       1091 2007-11-26 00:39 compreg.dat
drwxr-xr-x 3 pliqui pliqui       4096 2007-11-26 04:03 Machines
-rw------- 1 pliqui pliqui       1278 2007-11-26 13:16 VirtualBox.xml
-rwxr--r-- 1 pliqui pliqui 7706067456 2007-11-28 21:00 Windows Xp Sp2.vdi
-rw-r--r-- 1 pliqui pliqui      15355 2007-11-26 00:39 xpti.dat
then Start Virtual Box normally.
 
Old 11-28-2007, 08:29 PM   #9
rob33n
Member
 
Registered: May 2007
Location: Turkey
Distribution: Debian, Windows
Posts: 134

Original Poster
Rep: Reputation: 16
oh, sorry.
my fault. I didnt think existing one. thanks.
 
Old 11-28-2007, 10:34 PM   #10
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
You can also set up a shared folder.


Select your virtual computer, click on General to your right.

Open "Shared folders".

On the right, press the "new" button, select what folder you want to be shared and name it "shared" (or whatever)

Start your virtual computer.

Go to Devices->Mount Vbox Additions (something like that)

In XP, go to my computer, and double-click the cd drive. It will take you through setup.

Then, open command prompt and enter:

Quote:
net use x: \\vboxsvr\shared
It should say "command completed successfully"

Then, you can copy files and folders in and out of your shared folder at any time and XP will see them (whether on or off).
 
Old 11-29-2007, 04:27 PM   #11
rob33n
Member
 
Registered: May 2007
Location: Turkey
Distribution: Debian, Windows
Posts: 134

Original Poster
Rep: Reputation: 16
I found something and it is very easy. Maybe I didnt see this before.
just enable usb. and start your system on virtual box.
and do it things like picture: http://img508.imageshack.us/img508/3553/usbsi1.png

My usb is kingston. when I press left button on mouse, this is ok. I can use usb and I can use my external harddrive
well, we dont need to be root!

and I try your advice phantom_cyph and it is also working for me. thanks.

Last edited by rob33n; 11-29-2007 at 04:30 PM.
 
Old 11-29-2007, 07:14 PM   #12
phantom_cyph
Senior Member
 
Registered: Feb 2007
Location: The Tropics
Distribution: Slackware & Derivatives
Posts: 2,472
Blog Entries: 1

Rep: Reputation: 128Reputation: 128
No problem. Glad to help :-D
 
Old 11-29-2007, 08:29 PM   #13
pliqui
Member
 
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Rep: Reputation: 17
Did you enabled the USB with or without filters?
 
Old 11-30-2007, 12:48 AM   #14
rob33n
Member
 
Registered: May 2007
Location: Turkey
Distribution: Debian, Windows
Posts: 134

Original Poster
Rep: Reputation: 16
there is no filter. I just enabled it.
 
Old 07-26-2009, 07:54 PM   #15
randomx
Member
 
Registered: Feb 2003
Location: Hawaii
Distribution: Debian
Posts: 130

Rep: Reputation: 16
Post VirtualBox USB devices not showing in virtualmachine

Distro: debian lenny
kernel: 2.6.26-2-686
VirtualBox: 3.0 (PUEL version)

It's 2009.

I fiddled so much with this, going from forum to forum, and finally got it solved. I just put all posts together and this is the final result; at least it worked for me. I don't wish anybody to go through that hassle so here it is. Enjoy.


1. Make a "usersusb" group (or whatever suits you) and put yourself there
groupadd usersusb
usermod -a -G usersusb <username> #useradd -G usbusers <username>


2. Edit /etc/init.d/mountdevsubfs.sh
add these lines a little before the do_start()
#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb

3. Change around line 37 /etc/udev/rules.d/91-permissions.rules for Lenny. Make look like this:
# usbfs-like devices
SUBSYSTEM=="usb_device", MODE="0664"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="usersusb", MODE="0664"

4. Edit /etc/fstab to include:
none /proc/bus/usb usbfs devgid=1002,devmode=664 0 0
#devgid --> is 1002--> grep usersusb /etc/group
#output: usersusb:x:1002:<username>

5. Create a filter in the USB devices list in sun vbox.
(plug in your device, add the filter, Ok, Exit application)

6. Reboot, start virtualbox, plug in your device. Your guest os should be able to see it.

7. from the host's console:
$VBoxManage list usbhost

UUID: 222222-1111-422f-b57e-b9c43dbce64d
VendorId: 0x01da (01DA)
ProductId: 0x0110 (0110)
Revision: 1.0 (0100)
Manufacturer: Sony
Product: DVD Cam-MassStorage
SerialNumber: 1234D11111111
Address: /proc/bus/usb/005/005
Current State: Captured

#now it says "Captured" whereas before all devices would say "Unavailable" and grayed out from the vbox guest os.

Side effect: /sys/kernel/debug/usbmon/ may be gone
To fix it, just do:
mount -t debugfs none_debugs /sys/kernel/debug
modprobe usbmon
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VirtualBox on Slackware: How? gargamel Slackware 94 04-26-2008 07:42 AM
virtualbox j d Linux - Software 22 11-05-2007 01:16 AM
virtualbox j d Linux - Software 1 10-23-2007 07:57 PM
VirtualBox barn63 Fedora 2 10-03-2007 06:41 PM
VirtualBox jestinjoy Linux - Newbie 5 09-08-2007 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration