Storage: USB Controller - setextradata
Storage: USB Controller - setextradata
With the new USB Storage Controller, i was wondering if it is possible to set VendorID, ProductID and other parameters using setextradata ? and what would it be the proper device path for that ? something similar to "VBoxInternal/Devices/ahci/0/Config/Port0/ModelNumber" "model" but for USB?
Another question: would it be possible to change the AttachedDevice type to a usb mass storage instead of Harddisk ?
Cheers
Another question: would it be possible to change the AttachedDevice type to a usb mass storage instead of Harddisk ?
Cheers
-
- Site Moderator
- Posts: 39156
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: Storage: USB Controller - setextradata
Why on earth would you want to do that? All you'd succeed in doing was stopping the device from finding its device driver.Meshx86 wrote:With the new USB Storage Controller, i was wondering if it is possible to set VendorID, ProductID and other parameters using setextradata ?
Short answer: no. The vendor ID and Product ID is reported by the device itself. All VirtualBox provides is a virtual controller for it to communicate with. And, that virtual controller is closed source and protected by a certificate, so hacking it is out.
Re: Storage: USB Controller - setextradata
So how you come this can be done for ahci and not USB?
Am not talking about inserted host us devices, I am talking about emulated usb storage functionally added after 5.0
Am not talking about inserted host us devices, I am talking about emulated usb storage functionally added after 5.0
-
- Site Moderator
- Posts: 27330
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Storage: USB Controller - setextradata
My guess? Because a customer had a need for it. No such customer need arose for the USB devices, therefore the amount of time and effort spent on implementing, testing and supporting this feature could not be justified economically. But that's just my guess...Meshx86 wrote:So how you come this can be done for ahci and not USB?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
-
- Oracle Corporation
- Posts: 2973
- Joined: 19. Dec 2007, 15:45
- Primary OS: MS Windows 7
- VBox Version: PUEL
- Guest OSses: Any and all
- Contact:
Re: Storage: USB Controller - setextradata
I honestly don't understand the question. In what context?Meshx86 wrote:Another question: would it be possible to change the AttachedDevice type to a usb mass storage instead of Harddisk ?
USB mass storage is a superset of hard disks, CD-ROMs, floppy drives, and others. The USB MSD standard is really just a relatively thin wrapper around SCSI. VirtualBox currently allows attaching emulated hard disks or CD-ROMs via USB.
Re: Storage: USB Controller - setextradata
i mean to emulate a USB stick rather than HDD
Last edited by socratis on 22. Aug 2017, 16:48, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
Reason: Removed unnecessary verbatim quote of the whole previous message.
-
- Oracle Corporation
- Posts: 2973
- Joined: 19. Dec 2007, 15:45
- Primary OS: MS Windows 7
- VBox Version: PUEL
- Guest OSses: Any and all
- Contact:
Re: Storage: USB Controller - setextradata
Can you explain the difference in technical terms? What exactly do you want the guest OS to see differently, and what difference do you expect it would make?Meshx86 wrote:i mean to emulate a USB stick rather than HDD
-
- Site Moderator
- Posts: 27330
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Storage: USB Controller - setextradata
A USB stick? Some apps require a USB stick instead of a USB HD. I don't know how they can tell, but they do. Even the Disk Manager in Windows does...michaln wrote:What exactly do you want the guest OS to see differently
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Re: Storage: USB Controller - setextradata
insert a USB stick into your computer, user USBDeview.exe you'll know what i meanmichaln wrote:Can you explain the difference in technical terms? What exactly do you want the guest OS to see differently, and what difference do you expect it would make?Meshx86 wrote:i mean to emulate a USB stick rather than HDD
-
- Site Moderator
- Posts: 27330
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Storage: USB Controller - setextradata
I created a USB controller and a added a USB HD. I also inserted a real USB stick via a USB filter. Guest: Win10x64 with XHCI. Both USBDeview and USBTreeView report a common difference in the "Capabilities" of the two devices. Both are reported as being "Removable" and "SurpriseRemovalOK", while the stick has an extra one: "UniqueID".
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
-
- Oracle Corporation
- Posts: 2973
- Joined: 19. Dec 2007, 15:45
- Primary OS: MS Windows 7
- VBox Version: PUEL
- Guest OSses: Any and all
- Contact:
Re: Storage: USB Controller - setextradata
That doesn't really answer either of my questions. Most importantly it doesn't answer why we should make it configurable.Meshx86 wrote:insert a USB stick into your computer, user USBDeview.exe you'll know what i mean
Are you talking about the Removable bit (RMB) in the SCSI INQUIRY response?