Windows VM very slow


Recommended Posts

I recently created a Windows Server 2016 VM to serve as a secondary Domain Controller and DNS. I hadn't previously created any Windows VMs (I have an ESXi host I use for that), but this one is extremely slow, to the point of being unresponsive. My linux based VMs don't do this. I'm using SeaBios, Machine is set to i440fx-3.0, Memory is set to 4-8 GB, and it has 6 CPUs attached. Any suggestions for what to change?

Link to comment
56 minutes ago, vagrantprodigy said:

 

I've got in on the array, just like my Linux VMs. vDisk type is Sata.

I didn't follow a specific guide.

I've tried both.

 

Thats your problem. Windows uses more disk i/o than linux, so hosting it in the array is going to lead to dreadful performance. 

 

Move the disk img to either an independent disk mounted via unassigned devices (preferably an ssd) or a cache device (again, preferably an ssd.)

 

Link to comment
1 hour ago, 1812 said:

 

Thats your problem. Windows uses more disk i/o than linux, so hosting it in the array is going to lead to dreadful performance. 

 

Move the disk img to either an independent disk mounted via unassigned devices (preferably an ssd) or a cache device (again, preferably an ssd.)

 

Why is it that I can use the array as a datastore for ESXi, and run my Windows VMs on it with no issues, but I can't run VMs locally on the array? I don't have any independent drives, my only unassigned device is actually an a USB drive plugged into my router that I use for backups.

Link to comment
2 minutes ago, vagrantprodigy said:

Why is it that I can use the array as a datastore for ESXi, and run my Windows VMs on it with no issues, but I can't run VMs locally on the array? I don't have any independent drives, my only unassigned device is actually an a USB drive plugged into my router that I use for backups.

 

array write speeds are 35-45MB/s..... so.... that's why. But if the performance is otherwise ok with a different virtualization method, then you have to look at how the vm was setup. Look on youtube for the guides by space invader.

Link to comment
6 minutes ago, vagrantprodigy said:

Why is it that I can use the array as a datastore for ESXi, and run my Windows VMs on it with no issues, but I can't run VMs locally on the array? I don't have any independent drives, my only unassigned device is actually an a USB drive plugged into my router that I use for backups.

The problem is that the architecture of Unraid means that each ‘write’ operation is actually 4 I/O actions (a read on the data drive and parity drive p a disk rotation; followed by writes of the updated data to the parity and data drives).   This adversely affects the performance of Windows VMs as they do frequent writes.

Edited by itimpi
Link to comment

In the absence of anywhere more suitable to store your virtual disks you could enable "turbo write" to speed up writes to the array a little. Settings -> Disk Settings then change Tunable (md_write_method) to reconstruct write. The disadvantage is that all your disks will spin all the time your VM is running.

Link to comment
  • 2 months later...
On 1/24/2019 at 11:13 PM, jonathanm said:

What model SSD? Vdisk? Passthrough?

Describe your setup a little more.

 

 

Outside the array = Unassigned Devices. 

4NOLUfj.png

 

unRAID system:unRAID server Plus, version 6.6.6

Model:Custom

Motherboard:Gigabyte Technology Co., Ltd. - B85M-DS3H

Processor:Intel® Core™ i5-4690K CPU @ 3.50GHz

HVM:Enabled

IOMMU:Enabled

Memory:16 GB 

 

Virtual Machine

 

iEx3kMG.png

 

And got this on my two Windows 10 VM:

 

 

 

Edited by stormense
Video
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.