You are not logged in.

#1 2024-10-18 15:04:24

snow1
Member
Registered: 2024-09-07
Posts: 30

[SOLVED] Qemu/Kvm nvme passthrough to Win 11 vm

Hello Arch community,

What do you think is the best way of passing through a whole nvme ssd without losing performance.
The last time I have passed it through by Partuuid, because the UUID of the Partition on the device changed after the windows installation.
It worked well, but the vm broke because something else.
When passing through by ID my partition names change after reboot which causes problems to the vm and my linux system.
In most Forums, docs and yt videos people didn't pass through whole devices, but used virtual discs or passed the device fully by ID.
A virtual disk leads to performance loss though and passing through the whole device, not partition has already caused harm to my arch system.
Is passthough by partuuid the way to go or should I use a different method, maybe by device name?
I just don't want to risk installing windows 100 more times and it ending up unstable, it has already cost me days.
Thanks.

Last edited by snow1 (2024-10-18 15:35:37)

Offline

#2 2024-10-18 15:16:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,301

Re: [SOLVED] Qemu/Kvm nvme passthrough to Win 11 vm

PARTUUIDs should be stable unless you randomly decide to remove the partition. what "by ID" are you referring to exactly? https://wiki.archlinux.org/title/Persis … nd_by-path ? Did you see the note and did you perhaps move partitions around at some point?

Last edited by V1del (2024-10-18 15:17:44)

Offline

#3 2024-10-18 15:21:02

snow1
Member
Registered: 2024-09-07
Posts: 30

Re: [SOLVED] Qemu/Kvm nvme passthrough to Win 11 vm

V1del wrote:

PARTUUIDs should be stable unless you randomly decide to remove the partition. what "by ID" are you referring to exactly? https://wiki.archlinux.org/title/Persis … nd_by-path ? Did you see the note and did you perhaps move partitions around at some point?

I probably wrongly used the term "ID" i mean something like "/dev/nvme0n1"
I first tried it as in the example then after rebooting it changes to nvme1n1.
I then also tried it with a partition: /dev/nvme0n1p1 that also caused it to change though.

And the windows installation created more partitions that was the reason it changed

But i will stick to partuuid then.

Thanks a lot!
Now I won't have to worry too much about it smile

Last edited by snow1 (2024-10-18 15:25:13)

Offline

#4 2024-10-18 15:26:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,301

Re: [SOLVED] Qemu/Kvm nvme passthrough to Win 11 vm

/dev/nvme0n1 is not an ID and explicitly undeterministic, which is the reason the other ways listed in the link I mentioned exist, you might want to read the entire page for your other options

Last edited by V1del (2024-10-18 15:27:51)

Offline

#5 2024-10-18 15:27:48

snow1
Member
Registered: 2024-09-07
Posts: 30

Re: [SOLVED] Qemu/Kvm nvme passthrough to Win 11 vm

V1del wrote:

/dev/nvme0n1 is not an ID and explciitly undeterministic, which is the reason the other ways listed in the link I mentioned exist, you might want to read the entire page for your other options

Good, I will do that.
Thanks again.

Offline

Board footer

Powered by FluxBB