I'm experiencing something that I'm finding very confusing: I have a 256gb nvme as an unassigned device which is passed to a Windows 10 VM as a manual vdisk using its path i.e.
/dev/disk/by-id/nvme-PM991_NVMe_Samsung_256GB_S50ANF1N283258
vDisk Bus: SCSI
This is great, and it works very well for a single VM. However, I would also like to pass the same drive through to a second Windows 10 VM (note both are never running at the same time). Then things get weird. Files I create on the drive via VM 1 are not visible on VM 2, and vice versa. When I shut down the VM and mount the device via Unassigned Devices, some of the files are there, but only ones created by one of the VMs.
I then tried repartitioning and formatting the drive via Unassigned Devices (tried both NTFS and exFat), and when booting the VM the old files are *still* there. The drive is definitely reformatted, and in the case of formatting it as exFat it shows exFat in Unraid (and empty) but shows as NTFS in Windows (containing files). The file I tried during testing was a 3gb video file, and I'm able to play it in Windows despite having repartitioned and formatted the drive with a different filesystem and unraid (and the other VM) both showing it as empty.
I guess there are two issues
1) Why are files created by VM 1 not visible to VM 2 and vice versa?
2) Why are files still visible to the VM that created them even after a repartition and format in Unraid?
Am I missing something fundamental about how disks work? My hunch is it is something to do with file allocation tables being created separately by Windows but if I'm honest I don't really understand how that works so it could be nonsense.
As a side note, the reason I'm trying to set up two VMs this way is so I can have two separate gaming VMs that have shared storage for Steam/other launcher libraries.
Any help would be appreciated, even if it's advice about how I could achieve my goals via some other method