Zend certified PHP/Magento developer

Using a file as a USB device in VirtualBox

I’m aware that, in Linux, a loop device is a pseudo-device that makes a computer file accessible as a block device. I need something very similar (or the same thing?) to use a file as a VirtualBox USB device.

I have a Linux host and a Linux guest. My goal is to test, inside a virtual machine, tools like Easy2Boot, UNetbootin, Ventoy, and the similar.

The simplest case is to connect a real USB device to the host machine and use it as a USB device in the guest machine. It would certainly work.

My problem, however, is that since I have to do dozens of tests with a slow real USB, I would prefer to do the same tests with a fast fake USB.

The fast fake USB would be nothing more than a file in my computer’s internal SSD drive. On this fast SSD disk, the virtual machine is also located.