Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jul 2020 18:34:52 +1000
From:      Peter Grehan <grehan@freebsd.org>
To:        Andrea Venturoli <ml@netfence.it>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: bhyve, Windows guest and trim support
Message-ID:  <60d2169d-e6e5-7c87-6f75-d128904be90a@freebsd.org>
In-Reply-To: <2cd7021a-daac-dad8-9fa3-27dc9fc38181@netfence.it>
References:  <e15ba239-9a73-2821-1f42-1700d74d031b@netfence.it> <4e0c7427-8bb4-37d6-b717-181d5c9b66d3@freebsd.org> <20200707154025.wm6u4abbrz5tesha@nexus.home.palmen-it.de> <75f28176-c22a-8742-e86c-d73609cd5463@netfence.it> <20200712131347.cjvr4cpbo3rsgnik@nexus.home.palmen-it.de> <2cd7021a-daac-dad8-9fa3-27dc9fc38181@netfence.it>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Andrea,

>> Thanks for this hint, I can now confirm this also works with virtio-blk
>> (applied Allan's patch to 12.1). REFER for the zvol backing my Windows
>> Server 2016 dropped from 315G to 72.5G.
> 
> Hmm...
> I applied the same patch and, still using virtio-blk, when trying to 
> retrim, Windows says "Optimize-Volume : The volume optimization 
> operation requested is not supported by the hardware backing the volume."
> Seems like the guest doesn't think TRIM support is available.
> Do I have to set anything?
> 
> I have the following in the machine config (I'm using vm-bhyve):
> disk0_type="virtio-blk"
> disk0_name="disk0"
> disk0_dev="zvol"
> disk0_opts="sectorsize=512"

  You may need a recent Windows viostor driver. A working configuration 
was reported in
     https://github.com/virtio-win/kvm-guest-drivers-windows/issues/392

later,

Peter.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?60d2169d-e6e5-7c87-6f75-d128904be90a>