Fun with VirtualBox

  • Be sure to checkout “Tips & Tricks”
    Dear Guest Visitor → Once you register and log-in:

    This forum does not automatically send notices of new content. So if, for example, you would like to be notified by mail when Steve posts an update to his blog (or of any other specific activity anywhere else), you need to tell the system what to “Watch” for you. Please checkout the “Tips & Tricks” page for details about that... and other tips!

    /Steve.
  • Larger Font Styles
    Guest:

    Just a quick heads-up that I've implemented larger font variants of our forum's light and dark page styles. You can select the style of your choice by scrolling to the footer of any page here. This might be more comfortable (it is for me) for those with high-resolution displays where the standard fonts, while permitting a lot of text to fit on the screen, might be uncomfortably small.

    (You can permanently dismiss this notification with the “X” at the upper right.)

    /Steve.

Dagannoth

Member
Dec 26, 2020
17
3
I followed this article to attach USB drives to VirtualBox. This allowed me to boot ReadSpeed in VirtualBox, and test USB drives with it. The numbers were higher than I expected, but CrystalDiskMark reports 180 MB/s for Drive #1, so maybe my expectations were just too low :)

Drive #1 is a 16 GB Team Color TG016GE902C3 USB drive I use for running ReadSpeed.
Drive #2 is a 1.2 GB VirtualBox disk image on my Samsung 970 EVO SSD. It's fun to see how fast the bar goes on this one :D
Drive #3 is a 32 GB Patriot Supersonic PEF32GSUSB USB drive I bought in 2011.

I don't have the log file because it wasn't able to write it, for some reason.

2020-12-30_00-55-17.png



I did another run where I swapped the Patriot USB drive for a 2 TB Seagate SRD00F1 portable HDD (2.5"). I had to re-create the VMDK, then remove and re-add it to VirtualBox before it showed up correctly.

2020-12-30_01-05-27.png
 
Last edited:

DarkwinX

Well-known member
Sep 17, 2020
51
6
Melbourne, Australia
@Dagannoth it looks like that 970 Evo is an NVME SSD. If so that's one nice way to get some indicative NVME testing done. Will be nice to revisit when the native NVME ReadSpeed is available to see what kind of overhead VirtualBox has.

Do you have any other virtual storage controller choices? I wonder which one is most efficient.
 

Dagannoth

Member
Dec 26, 2020
17
3
it looks like that 970 Evo is an NVME SSD.
That is correct.
If so that's one nice way to get some indicative NVME testing done. Will be nice to revisit when the native NVME ReadSpeed is available to see what kind of overhead VirtualBox has.
I'm excited for NVMe support too. One of the things I noticed is that the results for this drive fluctuate a lot. They're usually around 2600, but for the run in my first screenshot they were around 3200. There's a couple things I think could be going on though.
  • I used a virtual disk instead of attaching the whole disk. I think I would need to boot another OS to attach the raw disk.
  • This is my boot drive, and it's running VeraCrypt full disk encryption. Frankly, I'm surprised the numbers are as high as they are.
Do you have any other virtual storage controller choices? I wonder which one is most efficient.
There's a bunch of possible controller choices, but I want to boot a different OS before I try them so I can eliminate the variables above.

I started this adventure because I wanted to see if ReadSpeed works on drives smaller than 1 GB (someone tested a real 1.2 GB drive), and it doesn't 😄
2020-12-30_00-35-54.png

I think the numbers for Drive #1 are low in this one because I had the Execution Cap set to 10%, which turned out to be unnecessary.
 

RobAllen

Chief Adm., Dept. of Garrulous Redundancy
Sep 17, 2020
6
1
Kentucky, USA
In my experience, booting from a USB disk via a virtual drive file does not allow writing, perhaps because of how the volume is virtualized in RAM. There seems to be no write-back capability. Attaching the DOS environment to a virtual network should allow writing via the network, but I haven't tried this.

It can be a pain to create virtual disks in this manner as I tend to forget the commands over time, though I do have the instructions copied locally and readily searchable. I've meant to make some sort of script that would create these files from a list of available volumes, but have never quite gotten around to it :rolleyes:.

Thanks for the experiment. I've tried this a couple of time with my USB drives during development, but never made a log or screenshot to show. SpinRite will need to support these interfaces natively anyway.
 

Dagannoth

Member
Dec 26, 2020
17
3
I had a little more fun with VirtualBox. I created a 900 TB virtual disk, and ReadSpeed handled it like a champ! I tried to create a 1 PB disk, but VBoxManage errored out. It shows up as 989 TB because drives are almost always base 1000 (TiB, 1000^4) instead of TB (1024^4).
1609379678407.png

I have no idea why my USB drive was so slow this time, or why the virtual disk was so fast.

Here's the PowerShell command I used:
.\VBoxManage.exe createmedium disk --filename C:\huge.vdi --sizebyte $(900TB) --format VDI --variant Standard
 

millQ

Member
Oct 20, 2020
22
7
I used imdisk Ramdisk and put the virtual harddisk there :) ..but I never came close to 9200

Speed.PNG