Hi, my host OS, unlike the guest, has not an antivirus, I want to use the guest OS to "check" the USB pen drives so I need, like in vmware, that when I plug an USB pen drive it is detected only by the guest OS. Is that possible with virtual box and how?
Thank you.
Using usb Pen drive on guest OS only
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: Using usb Pen drive on guest OS only
That would not be reliable - even ignoring the fact that it could only even start to work when you have the appropriate VM running. Personally I would just turn off autoplay on the host for all drives. That way no program runs without you knowing about it, and since the only programs you knowingly run are trusted programs from trusted sources, you will have no virus problem.
-
mugnaio
- Posts: 6
- Joined: 25. Nov 2010, 11:15
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: XP
Re: Using usb Pen drive on guest OS only
Of course I would insert a usb drive only with a VM started. Simply turining off the autoplay on the host is not the best solution for me, but if is the only one, I will do. Better would be a way to turn off the "automount", i mean install drivers when the usb is plugged but not mount the device on a drive, but i don't think this is possible with windows.mpack wrote: it could only even start to work when you have the appropriate VM running.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Using usb Pen drive on guest OS only
Tell me, what happens when you plug the device in when no virtual machine is running? The host loads it right?Better would be a way to turn off the "automount", i mean install drivers when the usb is plugged but not mount the device on a drive, but i don't think this is possible with windows.
That's what mpack was trying to tell you. Turning off autorun on the Windows host is the only safe way to use it. In fact Windows went through a series of security updates this year to try to fix their issue with viruses and their autorun. Still not sure that they have it totally fixed.
You can do the same thing in VirtualBox as you do in VMware. You simply need to create a blank filter in the USB section of the guest.
-
mugnaio
- Posts: 6
- Joined: 25. Nov 2010, 11:15
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: XP
Re: Using usb Pen drive on guest OS only
I know what autorun is (like the name says it RUNs a MOUNTED disk) and i have disabled it, when i say i would like to disable the MOUNT on a windows i mean a diffrent thing (not assing a drive letter on a usb device), but this is not important now.
Sorry my english is very bad I'm not sure if it is clear what I want to say.
can you explain me this? In VMware i can redirect the USB on the guest machine, so when i plug a USB device (on the host of course) the host doesn't load it, but the guest does and this is I would like to do on virtualbox. Sounds like vmware shares the "USB interface" so the guest install itself the drivers but virtual box share a USB device already installed on the host. could be?Perryg wrote: You can do the same thing in VirtualBox as you do in VMware. You simply need to create a blank filter in the USB section of the guest.
Sorry my english is very bad I'm not sure if it is clear what I want to say.
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Using usb Pen drive on guest OS only
Yes and I told you how to do it.
Create a blank filter in the guests USB settings. Then when the guest is running and you plug in a USB device the guest will capture it.
The host will not see it as you can not assign a USB device to the host and the guest at the same time, except the mouse and keyboard which are shared resources.
Create a blank filter in the guests USB settings. Then when the guest is running and you plug in a USB device the guest will capture it.
The host will not see it as you can not assign a USB device to the host and the guest at the same time, except the mouse and keyboard which are shared resources.
-
mugnaio
- Posts: 6
- Joined: 25. Nov 2010, 11:15
- Primary OS: MS Windows XP
- VBox Version: OSE other
- Guest OSses: XP
Re: Using usb Pen drive on guest OS only
ok this works, thank you very much, solved.