Wednesday, July 02, 2025

Re: OpenBSD VM not cleanly shutting down in time

SmartOS host on the bhyve hypervisor. Yes, it will do this and pull the
plug.
The guest gets quite a bit of time to poweroff. For some reason, it
seems that
only my Vaultwarden guest wants to take long. I also have a more complex
synapse server and OpenBao server running which shut down in time. I don't
know if there is a way to extend that timeout on the host, but I also
don't like
that solution as much if it does exist.

On 7/2/25 10:38 AM, Dave Voutila wrote:
> Courtney <courtney@courtnix.systems> writes:
>
>> I have a VM running OpenBSD -current that runs Vaultwarden. For some
>> reason, it
>> is the only VM that doesn't seem to respond in time to host shutdowns,
>> so the
>> poweroff is unclean and leaves the VM in single user mode where I have to
>> console in and fsck it. My assumption has been that perhaps Vaultwarden is
>> taking too long to stop, but I am unsure. I don't see anything in the logs.
>>
>> Any suggestions where I can start to look to see why this VM is being
>> a problem?
>> I have multiple other OpenBSD 7.7 and -current VMs running on this host.
> What's the host? What mechanism is being used to shutdown the vm?
>
> It sounds like the host/hypervisor has a timeout and it pulls the plug
> on the vm if it fails to stop itself within that timeout. I know vmd(8)
> does this.
>
>> Courtney

No comments:

Post a Comment