Windows VM in LXD is high loaded and slow

Hello there, i know that LXD is out of support here, but maybe we can get the right hint here.

We have seen that the ClusterSize of the VMDK Harddrive is at 4 kb per sektor. That makes it impossible to use this VM when a Windows Service like Defrag is running. So we wanted to edit the YAML File and change the cluster Size to 2 MB. Is someone knowing how to make that?

We have found this: High RAM Usage During Defrag on Windows with KVM/QEMU But this is for Proxmox. So if someone can help, that would be awesome.

Is there no way or why is it still not answered?

LXD questions don’t tend to get a lot of attention around here these days :slight_smile:

Incus has a number of VM options that can be used to mess with those kind of settings, in this case, raw.qemu.scriptlet would likely be the way to go as far as altering QMP properties.

But the first thing I’d probably try is to not use virtio-blk/virtio-scsi at all and just move the disk to the NVME bus as that’s usually led to better behavior from Windows.

Can you gave me a hint how i can convert it to NVME?

Set io.bus=nvme on the root disk