Can't attach partition to Windows VM

Hi Qubes community!

Recently, I’ve installed Windows 11 + QVM tools.
Now I can connect to the internet, mount a USB drive, but…

I am unable to mount a standard block device.

My command in Dom0 is:

qvm-block attach my-win11 my-storage:dm-0 --ro

Dom0 reports everything is fine, and the device is marked as connected.
But inside Windows, I see nothing.

I’ve checked all the QVM tools - they are installed correctly, I mean “Xen PV drivers” from the Qubes Windows Tools package qubes-windows-tools-4.1.69.

In Device Manager, I see some Xen PV devices, and some drives exist as well, but the new one is not being shown.

Please help.
How do you attach drives to your Windows qubes?
OK, the drive has an ext4 system (later on I’ll install drivers for it), but at least I should see a physical device in “diskmgmt.exe” with an unknown/unformatted FS, shouldn’t I?

1 Like

Can you try attaching an NTFS/FAT* drive to Windows to see whether the ext4 part isn’t causing issues? Windows is stupid like that and I wouldn’t be surprised if that was still the culprit.

2 Likes

Atrate,

Thanks for the answer.

I had time to play with Qubes OS more and discovered that after rebooting Qubes OS, the Windows 11 qube now sees every partition - EXT4 or NTFS.

However, it sees all of them as unformatted. Even NTFS one.

What version of Windows do you use?
What version of Windows does everybody use with Qubes?
Does anybody use Windows + Qubes? :slight_smile:

There are so few docs, such a tricky process, and such low stability that I just wonder, is this pair viable for editing photos in Lightroom? Or it is just a forever alpha like Wine and nothing works in practice? No irony, actually, I’m very interesting in using Qubes+Windows+Lightroom.

1 Like

I think it’s a problem with --ro flag.
It works fine for me without --ro using QWT from qubes-windows-tools-4.2.1-1.fc41.noarch.rpm in Windows 11.

1 Like

Actually, it has started working for no apparent reason. Probably I had to restart Qubes OS. I restarted the VM many times without any result, so the difference is in restarting Qubes OS.

Also, I couldn’t use the whole volume under Windows 11 as an NTFS partition. It REQUIRED me to create an NTFS subpartition inside it and use that.

Later on, I’ll try to configure ext4 as well, I really need it. I’m not sure how it will work if Windows can’t use the whole virtual physical device as a partition…