I am running HomeAssistant in a VirtualBox VM. It has 6GB of RAM and 64GB (size on disk is around 32GB so there should be plenty of space) drive underneath but it does not work reliably.
With every update I try to do (right now an update to OS 16.3 from 16.0) the connection to the machine is lost.
I always see the “unable to connect to HomeAssistant” message. I cannot connect to port 4357 as well.
Sometimes I can still ping the VM in that state, sometimes I cannot.
I cannot connect via ssh to the VM.
I also cannot shut it down with vboxmanage controlvm HomeAssistant poweroff as it will get stuck at 20% everytime.
The only thing I can do is kill the process and restart the VM. Then everything works without a problem until I want to install updates.
I do not even know where to look for logs as I did not see anything in the Supervisor logs or anywhere else.
Which logs might be helpful?
What can I do to rule out or at least identify the problem?
EDIT:
After half an hour I killed the task and restarted the VM, the Update went through and HomeAssistant is now at OS version 16.3. Which is interesting but still not a real solution
Updates, especially OS updates, require twice your current used drive size since they are downloaded and run in a separate slot in order to allow you to fall back to the previous OS if the install causes major issues.
Figure out what is taking so much space on your disk & reduce it, or else increase the disk size.
I will have a look then, thank you. But why is that also with relatively small add on updates? is there a complete new HomeAssistant instance run in parallel and the old one is only removed when the updated instance is successfully run?
Okay. I had a look in HomeAssistant only 19.8 of 62.3GB are used. That should be plenty of space if I would need to have so much spare space I would expect it to be written down somewhere. Is that the case and I am just too blind?
But what logs are the ones to look at? Supervisor?
Right now I have the case that I cannot reach the web view but have an existing ssh connection. I tried to restart the core with ha core restart but it just crashed again.
These are the supervisor logs (obtained with ha supervisor logs) which do not look useful to me:
2025-12-26 20:58:11.885 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-samba with version 12.5.4
2025-12-26 20:58:11.961 INFO (SyncWorker_1) [supervisor.docker.manager] Cleaning addon_core_openthread_border_router application
2025-12-26 20:58:12.667 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-otbr with version 2.13.0
2025-12-26 20:58:12.880 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from core_samba
2025-12-26 20:58:13.003 INFO (MainThread) [supervisor.api.middleware.security] /network/interface/enp0s3/info access from core_samba
2025-12-26 20:58:15.349 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from core_openthread_border_router
2025-12-26 20:58:42.633 INFO (MainThread) [supervisor.core] Start Home Assistant Core
2025-12-26 20:58:42.645 INFO (SyncWorker_2) [supervisor.docker.manager] Starting homeassistant
2025-12-26 20:58:42.777 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
2025-12-26 20:58:52.798 ERROR (MainThread) [supervisor.homeassistant.core] Home Assistant has crashed!
2025-12-26 20:58:52.799 ERROR (MainThread) [supervisor.core] Can't start Home Assistant Core - rebuiling
2025-12-26 20:58:52.803 INFO (SyncWorker_3) [supervisor.docker.manager] Cleaning homeassistant application
2025-12-26 20:58:53.460 INFO (MainThread) [supervisor.homeassistant.module] Update pulse/client.config: /data/tmp/homeassistant_pulse
2025-12-26 20:58:53.752 INFO (MainThread) [supervisor.docker.homeassistant] Starting Home Assistant ghcr.io/home-assistant/qemux86-64-homeassistant with version 2025.12.4
2025-12-26 20:58:53.752 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
2025-12-26 20:59:08.136 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state startup
2025-12-26 20:59:08.136 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2025-12-26 20:59:08.777 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
2025-12-26 20:59:08.780 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to APIState(core_state='NOT_RUNNING', offline_db_migration=False)
2025-12-26 21:00:59.409 INFO (MainThread) [supervisor.homeassistant.core] Home Assistant Core state changed to APIState(core_state='RUNNING', offline_db_migration=False)
2025-12-26 21:00:59.409 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
2025-12-26 21:00:59.410 INFO (MainThread) [supervisor.addons.manager] Phase 'application' starting 4 add-ons
2025-12-26 21:00:59.474 INFO (SyncWorker_3) [supervisor.docker.manager] Cleaning addon_core_piper application
2025-12-26 21:01:00.187 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-piper with version 2.1.1
2025-12-26 21:01:00.258 INFO (SyncWorker_4) [supervisor.docker.manager] Cleaning addon_a0d7b954_grocy application
2025-12-26 21:01:01.541 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on ghcr.io/hassio-addons/grocy/amd64 with version 0.24.0
2025-12-26 21:01:01.669 INFO (SyncWorker_5) [supervisor.docker.manager] Cleaning addon_d5369777_music_assistant application
2025-12-26 21:01:02.826 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on ghcr.io/music-assistant/server with version 2.7.2
2025-12-26 21:01:02.921 INFO (SyncWorker_3) [supervisor.docker.manager] Cleaning addon_a0d7b954_nodered application
2025-12-26 21:01:04.436 INFO (MainThread) [supervisor.docker.addon] Starting Docker add-on ghcr.io/hassio-addons/node-red/amd64 with version 20.2.4
2025-12-26 21:01:14.908 WARNING (MainThread) [supervisor.api.middleware.security] No API token provided for /core
2025-12-26 21:01:15.649 INFO (MainThread) [supervisor.discovery] Sending discovery to Home Assistant music_assistant from d5369777_music_assistant
2025-12-26 21:01:15.694 INFO (MainThread) [supervisor.discovery] Discovery 9a75483c78b64a2ca5f3ed9a499566e0 message send
2025-12-26 21:01:18.368 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
2025-12-26 21:01:18.381 INFO (MainThread) [supervisor.api.proxy] WebSocket access from d5369777_music_assistant
2025-12-26 21:01:18.457 INFO (MainThread) [supervisor.api.proxy] [d5369777_music_assistant] Home Assistant WebSocket API proxy running
2025-12-26 21:01:39.987 INFO (MainThread) [supervisor.misc.tasks] All core tasks are scheduled
2025-12-26 21:01:39.987 INFO (MainThread) [supervisor.host.info] Updating local host information
2025-12-26 21:01:39.989 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state running
2025-12-26 21:01:39.990 INFO (MainThread) [supervisor.resolution.checks.base] Run check for disabled_data_disk/system
2025-12-26 21:01:39.990 INFO (MainThread) [supervisor.resolution.checks.base] Run check for multiple_data_disks/system
2025-12-26 21:01:39.990 INFO (MainThread) [supervisor.resolution.checks.base] Run check for ipv4_connection_problem/system
2025-12-26 21:01:39.991 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_ipv6_error/dns_server
2025-12-26 21:01:39.996 INFO (MainThread) [supervisor.core] Supervisor is up and running
2025-12-26 21:01:39.999 INFO (MainThread) [__main__] Running Supervisor
2025-12-26 21:01:40.052 INFO (MainThread) [supervisor.resolution.checks.base] Run check for security/core
2025-12-26 21:01:40.052 INFO (MainThread) [supervisor.resolution.checks.base] Run check for no_current_backup/system
2025-12-26 21:01:40.052 INFO (MainThread) [supervisor.resolution.module] Create new suggestion create_full_backup - system / None
2025-12-26 21:01:40.052 INFO (MainThread) [supervisor.resolution.module] Create new issue no_current_backup - system / None
2025-12-26 21:01:40.052 INFO (MainThread) [supervisor.resolution.checks.base] Run check for dns_server_failed/dns_server
2025-12-26 21:01:40.085 INFO (MainThread) [supervisor.api.proxy] Home Assistant WebSocket API request initialize
2025-12-26 21:01:40.115 INFO (MainThread) [supervisor.resolution.checks.base] Run check for pwned/addon
2025-12-26 21:01:40.138 INFO (MainThread) [supervisor.api.proxy] WebSocket access from a0d7b954_nodered
2025-12-26 21:01:40.146 INFO (MainThread) [supervisor.api.proxy] [a0d7b954_nodered] Home Assistant WebSocket API proxy running
2025-12-26 21:01:40.507 INFO (MainThread) [supervisor.resolution.checks.base] Run check for docker_config/system
2025-12-26 21:01:40.510 INFO (MainThread) [supervisor.resolution.checks.base] Run check for free_space/system
2025-12-26 21:01:40.510 INFO (MainThread) [supervisor.resolution.checks.base] Run check for disk_lifetime/system
2025-12-26 21:01:40.514 INFO (MainThread) [supervisor.resolution.check] System checks complete
2025-12-26 21:01:40.514 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state running
2025-12-26 21:01:40.633 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
2025-12-26 21:01:40.634 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state running
2025-12-26 21:01:40.635 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
2025-12-26 21:01:40.675 INFO (MainThread) [supervisor.host.services] Updating service information
2025-12-26 21:01:40.679 INFO (MainThread) [supervisor.host.network] Updating local network information
2025-12-26 21:01:40.840 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
2025-12-26 21:01:40.846 INFO (MainThread) [supervisor.host.manager] Host information reload completed
2025-12-26 21:07:53.673 INFO (MainThread) [supervisor.api.middleware.security] /network/info access from a0d7b954_ssh
2025-12-26 21:07:53.676 INFO (MainThread) [supervisor.api.middleware.security] /host/info access from a0d7b954_ssh
2025-12-26 21:07:53.682 INFO (MainThread) [supervisor.api.middleware.security] /core/info access from a0d7b954_ssh
2025-12-26 21:11:53.182 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/repair access from a0d7b954_ssh
2025-12-26 21:11:53.182 INFO (MainThread) [supervisor.core] Starting repair of Supervisor Environment
2025-12-26 21:11:53.182 INFO (SyncWorker_4) [supervisor.docker.manager] Prune stale containers
2025-12-26 21:11:53.185 INFO (SyncWorker_4) [supervisor.docker.manager] Prune stale images
2025-12-26 21:11:57.144 INFO (SyncWorker_4) [supervisor.docker.manager] Prune stale builds
2025-12-26 21:11:57.150 INFO (SyncWorker_4) [supervisor.docker.manager] Prune stale volumes
2025-12-26 21:11:57.152 INFO (SyncWorker_4) [supervisor.docker.manager] Prune stale networks
2025-12-26 21:11:57.155 INFO (SyncWorker_4) [supervisor.docker.manager] Fix stale container on hassio network
2025-12-26 21:11:57.172 INFO (SyncWorker_4) [supervisor.docker.manager] Fix stale container on host network
2025-12-26 21:11:57.224 INFO (MainThread) [supervisor.addons.manager] Found 3 add-ons to repair
2025-12-26 21:11:57.224 INFO (MainThread) [supervisor.addons.manager] Repairing for add-on: a0d7b954_grocy
2025-12-26 21:11:57.224 INFO (MainThread) [supervisor.docker.interface] Downloading docker image ghcr.io/hassio-addons/grocy/amd64 with tag 0.24.0.
2025-12-26 21:11:57.885 INFO (MainThread) [supervisor.addons.manager] Repairing for add-on: core_mariadb
2025-12-26 21:11:57.885 INFO (MainThread) [supervisor.docker.interface] Downloading docker image homeassistant/amd64-addon-mariadb with tag 2.7.2.
2025-12-26 21:11:59.130 INFO (MainThread) [supervisor.addons.manager] Repairing for add-on: core_openthread_border_router
2025-12-26 21:11:59.131 INFO (MainThread) [supervisor.docker.interface] Downloading docker image homeassistant/amd64-addon-otbr with tag 2.13.0.
2025-12-26 21:12:00.281 INFO (MainThread) [supervisor.supervisor] Repairing Supervisor 2025.12.3
2025-12-26 21:12:00.314 INFO (MainThread) [supervisor.core] Finished repair of Supervisor Environment
2025-12-26 21:13:25.413 INFO (SyncWorker_1) [supervisor.docker.manager] Restarting homeassistant
2025-12-26 21:13:25.484 INFO (MainThread) [supervisor.api.proxy] [d5369777_music_assistant] Home Assistant WebSocket API closed
2025-12-26 21:13:25.488 INFO (MainThread) [supervisor.api.proxy] [a0d7b954_nodered] Home Assistant WebSocket API closed
2025-12-26 21:15:32.427 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
2025-12-26 21:15:42.441 ERROR (MainThread) [supervisor.homeassistant.core] Home Assistant has crashed!
2025-12-26 21:20:05.731 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from a0d7b954_ssh
2025-12-26 21:23:55.594 INFO (MainThread) [supervisor.api.middleware.security] /resolution/info access from a0d7b954_ssh
2025-12-26 21:25:09.626 INFO (MainThread) [supervisor.api.middleware.security] /core/info access from a0d7b954_ssh
2025-12-26 21:25:17.879 INFO (MainThread) [supervisor.api.middleware.security] /core/restart access from a0d7b954_ssh
2025-12-26 21:25:17.886 INFO (SyncWorker_3) [supervisor.docker.manager] Restarting homeassistant
2025-12-26 21:25:18.051 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
2025-12-26 21:25:28.067 ERROR (MainThread) [supervisor.homeassistant.core] Home Assistant has crashed!
2025-12-26 21:26:09.405 INFO (MainThread) [supervisor.api.middleware.security] /supervisor/logs access from a0d7b954_ssh
I did, it looks like an openai add on might be the probkem. I will restart everything, remove the addon and try again.
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun home-assistant (no readiness notification)
s6-rc: info: service legacy-services successfully started
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/__main__.py", line 229, in <module>
sys.exit(main())
~~~~^^
File "/usr/src/homeassistant/homeassistant/__main__.py", line 188, in main
from . import config, runner # noqa: PLC0415
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/runner.py", line 27, in <module>
from . import bootstrap
File "/usr/src/homeassistant/homeassistant/bootstrap.py", line 41, in <module>
from .components import (
...<22 lines>...
)
File "/usr/src/homeassistant/homeassistant/components/api/__init__.py", line 17, in <module>
from homeassistant.components.http import (
...<4 lines>...
)
File "/usr/src/homeassistant/homeassistant/components/http/__init__.py", line 50, in <module>
from homeassistant.helpers.network import NoURLAvailableError, get_url
File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 10, in <module>
from hass_nabucasa import remote
File "/usr/local/lib/python3.13/site-packages/hass_nabucasa/__init__.py", line 72, in <module>
from .llm import (
...<9 lines>...
)
File "/usr/local/lib/python3.13/site-packages/hass_nabucasa/llm.py", line 18, in <module>
from litellm import (
...<8 lines>...
)
File "/usr/local/lib/python3.13/site-packages/litellm/__init__.py", line 26, in <module>
from litellm.llms.custom_httpx.http_handler import AsyncHTTPHandler, HTTPHandler
File "/usr/local/lib/python3.13/site-packages/litellm/llms/__init__.py", line 6, in <module>
from litellm.types.utils import CallTypes
File "/usr/local/lib/python3.13/site-packages/litellm/types/utils.py", line 10, in <module>
from openai.types.completion_usage import (
...<3 lines>...
)
ImportError: cannot import name 'CompletionTokensDetails' from 'openai.types.completion_usage' (/usr/local/lib/python3.13/site-packages/openai/types/completion_usage.py)
[20:25:20] INFO: Home Assistant Core finish process exit code 1
[20:25:20] INFO: Home Assistant Core service shutdown
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped
Edit: Had a look at my addons and did not find one that might be the problem? Is that something HA internal?
You also have grocy & openthread border router. Stop those too and see if a restart goes smoothly. I’m not gonna tell you to stop mariadb because you need that, but you better hope that’s not your issue.
Okay, I will try that. I did ha core rebuild and was now able to start the core without needing to restart the virtual machine. I will have a look at it then try to do the last updates and do a backup. After that I will have another look on the logs and everything.
EDIT:
My VM crashes when I try to update the open thread border router from version 2.13.0 to 2.15.3. I will look into that.
That still does not explain the general problem with the instability of my VM setup but certainly is one problem.