Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Window VM with disk partition passthrough having issues
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Wadewilson
n00b
n00b


Joined: 09 Nov 2022
Posts: 54

PostPosted: Sat Jul 27, 2024 10:36 am    Post subject: Window VM with disk partition passthrough having issues Reply with quote

I have created a win 11 vm on gentoo linux host.

I have passed through a disk partition from HDD to the VM using virtio drivers.

Disk is always at a 100% in the VM, and opening file manager takes more than 10 mins. The VM is very unresponsive. This is very unusual performance for virtio drivers on HDD.

Disk layout on the host,

NVME - linux host
HDD Part 1 - linux host
HDD Part 2 - win 11 vm (using virtio and installed the relevant drivers on windows)

How do I fix this?

Code:

    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source dev='/dev/disk/by-partuuid/9303a54f-de85-49d3-a3ba-9da8397120c7'/>
      <target dev='vdb' bus='virtio'/>
      <boot order='1'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </disk>


Attaching the full xml here
Back to top
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3695
Location: Rasi, Finland

PostPosted: Wed Aug 07, 2024 5:36 pm    Post subject: Reply with quote

I think Windows 11 expects an SSD as a OS drive, so that might be problem.
Also just by guessing
Code:
<driver name='qemu' type='raw' cache='none'/>
... is propably why it's slow. By enabling cache you might get better performance, especially on HDD.
_________________
..: Zucca :..

My gentoo installs:
init=/sbin/openrc-init
-systemd -logind -elogind seatd

Quote:
I am NaN! I am a man!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum