Re: bhyve and controlled errors

From: Chuck Tuffli <chuck_at_tuffli.net>
Date: Thu, 26 Mar 2026 15:17:38 UTC

On Thu, Mar 26, 2026, at 7:56 AM, Sean Eric Fagan wrote:
> I’d asked Mark about this and he suggested I bring it up on the list:
> 
> Has anyone thought about implementing controls / tunables to bhyve to introduce errors? I am, most specifically right now, thinking about causing disk I/O errors, or having requests dropped by the "hardware," to test error handling.
> 
> Last time I looked at the bhyve source code, it scared me, so if someone else has looked at this, I’m love to know.

I prototyped something like this a few years back

https://papers.freebsd.org/2019/bsdcan/tuffli-frankensteins_disk_drive/

Happy to discuss it more if you are interested. 

—chuck