Closed nazar-pc closed 1 year ago
The generic-x86-64
images are meant for actual x86-64 hardware. We had issues where accidental power button press would shutdown the HA instance, hence we set it to long-press only.
For virtual machines, please use the ova
images. In those, ACPI shutdown is configured to be immediate.
Hm... Home Assistant OS is the first OS (from those I used) that behaves like this and cares whether it is physical or virtual installation. Is there a way to upgrade from "bare metal" to "KVM" version for me? I wasn't able to find it in the docs.
Hm... Home Assistant OS is the first OS (from those I used) that behaves like this and cares whether it is physical or virtual installation.
Our build system allows that rather easily, so we decided to go that route at the beginning. It avoids guest agents to be installed unnecessarily on the generic-x86-64
images. Creating a single image would be possible too, but at this point it would mean a lot of migration works to merge it.
Is there a way to upgrade from "bare metal" to "KVM" version for me? I wasn't able to find it in the docs.
No, there is no support to cross-upgrade the image. However, you can rather easily create a full backup, download that and restore it on a new installation.
It avoids guest agents to be installed unnecessarily on the generic-x86-64 images.
At least for KVM I don't think any guest agent is necessary. In fact systemd-logind
already caught the event, but chose to ignore it.
However, you can rather easily create a full backup, download that and restore it on a new installation.
Annoying, but at least not starting from scratch, thanks! BTW installation guide could benefit from warning that in case of VM user might want to prefer a different version of the base image.
Annoying, but at least not starting from scratch, thanks! BTW installation guide could benefit from warning that in case of VM user might want to prefer a different version of the base image.
The guides should link the appropriate images (see https://www.home-assistant.io/installation/linux#install-home-assistant-operating-system). At what site/place did you end up choosing the wrong image?
I clicked on "Generic x86-64 (e.g. Intel NUC)". In every other case before with KVM (libvirt) I used generic x86-64 OS images. It genuinely didn't occur to me that I need to click "Linux" because I don't install it under Linux (as a container with Docker/Podman/Systemd or directly), I dedicate the whole machine, even though virtual, for this purpose, hence I chose "Generic x86-64".
Yeah I see what you are saying and agree that this can be misunderstood. We should be more explicit that this is meant for bare metal only. We plan on revamp getting started guides soon.
Describe the issue you are experiencing
ACPI shutdown in VM doesn't work
What operating system image do you use?
generic-x86-64 (Generic UEFI capable x86-64 systems)
What version of Home Assistant Operating System is installed?
9.4
Did you upgrade the Operating System.
No
Steps to reproduce the issue
Anything in the Supervisor logs that might be useful for us?
Anything in the Host logs that might be useful for us?
Yes, I clicked twice. But nothing happens after that.
System information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4992 Installed Version | 1.29.1 Stage | running Available Repositories | 1196 Downloaded Repositories | 1Home Assistant Cloud
logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome Assistant Supervisor
host_os | Home Assistant OS 9.4 -- | -- update_channel | stable supervisor_version | supervisor-2022.12.1 agent_version | 1.4.1 docker_version | 20.10.19 disk_total | 5.2 GB disk_used | 3.0 GB healthy | true supported | true board | generic-x86-64 supervisor_api | ok version_api | ok installed_addons | SSH & Web Terminal (13.0.1), File editor (5.4.2), SQLite Web (3.6.1)Dashboards
dashboards | 1 -- | -- resources | 0 views | 1 mode | storageRecorder
oldest_recorder_run | 15 січня 2023 р. о 01:30 -- | -- current_recorder_run | 15 січня 2023 р. о 03:30 estimated_db_size | 20.55 MiB database_engine | sqlite database_version | 3.38.5 ### Additional information _No response_