找回密码
 立即注册

微信扫码登录

搜索
查看: 33531|回复: 42

[快速入门] 安装 Home Assistant OS

  [复制链接]

2

主题

7

回帖

234

积分

版主

积分
234
金钱
215
HASS币
20
发表于 2022-10-13 00:34:43 | 显示全部楼层 |阅读模式
本帖最后由 ssapiel001 于 2022-10-13 00:34 编辑

Virtual Machine虚拟机方法 (x86_64/UEFI)
Home Assistant OS和其他Home Assistant版本的区别;
可以看一下@ XCray写的 【新手必读】入门->精通:HA安装方式、基本概念及来龙去脉可以了解一下各个版本之间的区别。建立一下基本的概念

大部分哥们装的虚拟机(Virtual Machine、VM随你怎么叫)基本上是下面这几大类:

l  VMware系列(Station、ESXi、vSphere之类的);镜像文件后缀是.vmdk格式的镜像。
l  KVM、Proxmox系列;镜像文件后缀是.qcow2格式的镜像。
l  VirtualBox系列;镜像文件后缀是.vdi格式的镜像。
l  MacOS环境 Parallel Desktop接受后缀<待完善>格式的镜像。
l  Synology群晖环境自带的Virtual Machine Manager接受后缀是.ova格式的镜像。

OPP((5CNYXI_[8L[A92`E.png

l  ……

你需要在你的宿主机系统(可能是群晖,可能是Windows。可能是macOS,可能是Linux)管理你的虚拟机管理平台(VMware/KVM/OVA……),后期的新增联网端口或者导入硬件设备也要通过虚拟机管理平台操作。虚拟机内环境看到开端口设置好了之后没效果先别急,去检查平台设置。

镜像文件下载
一般没有特殊情况就下第一个最新版本的镜像

*/重要/*

先弄清楚你的虚拟机接受什么样的镜像文件导入再下载。

下载完了之后呢?在虚拟机里导入镜像
这里用VMware Workstation演示
[O]P03]VXSM1`DO0FAEWSNY.png 3F`69Y)WY2H((L1KBF2PQJY.png 5A8ZZXTK13]19JET6V1P~PH.png

如果提示这个 8MYBVTT0W%A@4ZV$PK{F}PJ.png ,解压你下载的.ova文件,删除目录下的home-assistant.mf文件 NI]]YL436C3IKMHH(2~@JTC.png 再次点击 打开虚拟机 选择home-assistant.ovf文件 GXHDNXIC{DN}CP(Q)HD049R.png ,一路确定
导入完成之后会变成这样 A6A80BD)LKT5RU3ETJ6PV0I.png (可以看到内存 核心数量 存储 网络设置已经提前为你配置好了,所以可以直接运行)点击开启此虚拟机打开它。
一路跑代码,别急。等他跑完。成功了之后长这样 (]5O(J$J%IO5BAFUYO4CU3U.png

两个黄框;
第一个黄框是告诉你能访问到这个HAOS的ipv4和ipv6地址;
第二个黄框写的是URL

怎么访问呢?

打开ipv4地址:8123就可以访问到你刚打开的HA了(打不开的话检查网络环境状况能不能访问到能不能tcping通)
然后是经典初始化流程

*更正* 给这个HA取名字→给你创建的这个用户取个名字
O_5PI57JJ}DM~KX]XJP@74C.png

接下来需要设置家的信息,分别输入

Home Assistant 名称
地点信息 点击自动检测,通常可以定位到大概位置(当然浏览器的位置权限要打开),然后拖动地图,定位准确的家位置,HomeAssistant地图对国内支持较差,有些建筑不能显示)
时区(国内通常为Asia/Shanghai)
海拔(不知道自己城市海拔是多少,百度)
单位制(默认:公制)
BKLF4C0]5]H{VEA[FP}0@NW.png
接着勾选是否匿名共享安装信息,默认即可。

不想分享的话可以全关掉 没有任何影响

JM7R]7H]B0IY[{9J1SF1_U3.png

集成配置页面,HAOS会搜索局域网的物联网设备,现在不用管,晚点慢慢弄。
OBLWV50}ID1@TZT4L}1RO]G.png

到此 初始化完毕

安装基础组件先进入用户信息,language更更改为中文,然后打开高级模式,有些supervisor基础组件需要打开高级模式才能安装。
B8)J16H`RU$U9MG8U5V[D{S.png
不用选chinese了 选简体中文
下面的高级选项打开 就差不多了



后记


虚拟机方法相比你在互联网上能搜到的大部分docker容器(docker container)方法来说,虚拟机镜像的功能更全面;因为你没法在docker内再开个容器(好像是不行 要行也很麻烦 之后还要配置 别去踩这个雷
这玩意和你物理机直接刷一个HAOS镜像进去是一模一样的。


其他方法会抽空继续测试 测试好会继续更新
END



O3)C6H3TJ%IL[4AB`}OB(ZN.png
Z8Q]5U1QG%@T5%2P%FOCH[8.png
P30(}P~Y_23@%)V(3(A}H72.png

评分

参与人数 3金钱 +15 收起 理由
cym9007 + 5
yk0yk + 2 感谢楼主分享!
sorrypqa + 8 论坛有你更精彩!

查看全部评分

回复

使用道具 举报

0

主题

19

回帖

52

积分

注册会员

积分
52
金钱
33
HASS币
0
发表于 2025-2-16 15:00:29 | 显示全部楼层
感谢分享
回复

使用道具 举报

0

主题

49

回帖

395

积分

中级会员

积分
395
金钱
346
HASS币
0
发表于 2025-2-15 00:38:46 | 显示全部楼层
谢谢楼主分享
回复

使用道具 举报

0

主题

1

回帖

14

积分

新手上路

积分
14
金钱
13
HASS币
0
发表于 2025-1-15 13:22:15 | 显示全部楼层
谢谢楼主
回复

使用道具 举报

0

主题

4

回帖

38

积分

新手上路

积分
38
金钱
34
HASS币
0
发表于 2024-12-20 20:15:51 | 显示全部楼层
感谢楼主分享
回复

使用道具 举报

yc21 

0

主题

34

回帖

118

积分

注册会员

积分
118
金钱
84
HASS币
0
发表于 2024-12-13 03:37:31 | 显示全部楼层
好教程,开始使用束手无策,不知从哪里下手哈,谢谢楼主
回复

使用道具 举报

0

主题

5

回帖

53

积分

注册会员

积分
53
金钱
48
HASS币
0
发表于 2024-11-23 23:11:44 | 显示全部楼层
谢谢 学习了
回复

使用道具 举报

0

主题

2

回帖

18

积分

新手上路

积分
18
金钱
16
HASS币
0
发表于 2024-6-10 13:11:29 | 显示全部楼层
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
cont-init: info: running /etc/cont-init.d/udev.sh
INFO: Using udev information from host
cont-init: info: /etc/cont-init.d/udev.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun supervisor (no readiness notification)
services-up: info: copying legacy longrun watchdog (no readiness notification)
INFO: Starting local supervisor watchdog...
s6-rc: info: service legacy-services successfully started
[__main__] Initializing Supervisor setup
[supervisor.docker.network] Can't find Supervisor network, creating a new network
[supervisor.bootstrap] Setting up coresys for machine: qemux86-64
[supervisor.docker.supervisor] Attaching to Supervisor ghcr.io/home-assistant/amd64-hassio-supervisor with version 2024.05.1
[supervisor.docker.supervisor] Connecting Supervisor to hassio-network
[supervisor.resolution.evaluate] Starting system evaluation with state initialize
[supervisor.resolution.evaluate] System evaluation complete
[__main__] Setting up Supervisor
[supervisor.api] Starting API on 172.30.32.2
[supervisor.hardware.monitor] Started Supervisor hardware monitor
[supervisor.dbus.manager] Connected to system D-Bus.
[supervisor.dbus.agent] Load dbus interface io.hass.os
[supervisor.dbus.hostname] Load dbus interface org.freedesktop.hostname1
[supervisor.dbus.logind] Load dbus interface org.freedesktop.login1
[supervisor.dbus.network] Load dbus interface org.freedesktop.NetworkManager
[supervisor.dbus.rauc] Load dbus interface de.pengutronix.rauc
[supervisor.dbus.resolved] Load dbus interface org.freedesktop.resolve1
[supervisor.dbus.systemd] Load dbus interface org.freedesktop.systemd1
[supervisor.dbus.timedate] Load dbus interface org.freedesktop.timedate1
[supervisor.host.services] Updating service information
[supervisor.host.sound] Updating PulseAudio information
[supervisor.host.sound] Can't update PulseAudio data: Failed to connect to pulseaudio server
[supervisor.host.network] Updating local network information
[supervisor.host.apparmor] Loading AppArmor Profiles: {'hassio-supervisor'}
[supervisor.docker.monitor] Started docker events monitor
[supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
[supervisor.docker.interface] Found ghcr.io/home-assistant/amd64-hassio-cli versions: []
[supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-cli with version 2024.05.0
[supervisor.plugins.cli] Starting CLI plugin
[supervisor.docker.cli] Starting CLI ghcr.io/home-assistant/amd64-hassio-cli with version 2024.05.0 - 172.30.32.5
[supervisor.docker.interface] Found ghcr.io/home-assistant/amd64-hassio-dns versions: []
[supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-dns with version 2024.04.0
[supervisor.plugins.dns] Starting CoreDNS plugin
[supervisor.docker.dns] Starting DNS ghcr.io/home-assistant/amd64-hassio-dns with version 2024.04.0 - 172.30.32.3
[supervisor.plugins.dns] Updated /etc/resolv.conf
[supervisor.docker.interface] Found ghcr.io/home-assistant/amd64-hassio-audio versions: []
[supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-audio with version 2023.12.0
[supervisor.plugins.audio] Starting Audio plugin
[supervisor.docker.audio] Starting Audio ghcr.io/home-assistant/amd64-hassio-audio with version 2023.12.0 - 172.30.32.4
[supervisor.docker.interface] Found ghcr.io/home-assistant/amd64-hassio-observer versions: []
[supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-observer with version 2023.06.0
[supervisor.plugins.observer] Starting observer plugin
[supervisor.docker.observer] Starting Observer ghcr.io/home-assistant/amd64-hassio-observer with version 2023.06.0 - 172.30.32.6
[supervisor.docker.interface] Found ghcr.io/home-assistant/amd64-hassio-multicast versions: []
[supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-multicast with version 2024.03.0
[supervisor.plugins.multicast] Starting Multicast plugin
[supervisor.docker.multicast] Starting Multicast ghcr.io/home-assistant/amd64-hassio-multicast with version 2024.03.0 - Host
[supervisor.homeassistant.secrets] Loaded 0 Home Assistant secrets
[supervisor.docker.interface] No version found for ghcr.io/home-assistant/qemux86-64-homeassistant
[supervisor.homeassistant.core] No Home Assistant Docker image ghcr.io/home-assistant/qemux86-64-homeassistant found.
[supervisor.docker.interface] Attaching to ghcr.io/home-assistant/qemux86-64-homeassistant with version landingpage
[supervisor.homeassistant.core] Using preinstalled landingpage
[supervisor.homeassistant.core] Starting HomeAssistant landingpage
[supervisor.homeassistant.module] Update pulse/client.config: /data/tmp/homeassistant_pulse
[supervisor.docker.homeassistant] Starting Home Assistant ghcr.io/home-assistant/qemux86-64-homeassistant with version landingpage
[supervisor.os.manager] Detect Home Assistant Operating System 12.3 / BootSlot A
[supervisor.store.git] Cloning add-on https://github.com/esphome/home-assistant-addon repository
[supervisor.store.git] Cloning add-on https://github.com/home-assistant/addons repository
[supervisor.store.git] Cloning add-on https://github.com/hassio-addons/repository repository
[supervisor.store.git] Can't clone https://github.com/hassio-addons/repository repository: Cmd('git') failed due to: exit code(128)
cmdline: git clone -v --recursive --depth=1 --shallow-submodules -- https://github.com/hassio-addons/repository /data/addons/git/a0d7b954
stderr: 'Cloning into '/data/addons/git/a0d7b954'...
fatal: unable to access 'https://github.com/hassio-addons/repository/': Failure when receiving data from the peer
'.
[supervisor.store] Can't retrieve data from https://github.com/hassio-addons/repository due to
[supervisor.resolution.module] Create new suggestion execute_remove - store / a0d7b954
[supervisor.resolution.module] Create new issue fatal_error - store / a0d7b954
[supervisor.store.git] Can't clone https://github.com/esphome/home-assistant-addon repository: Cmd('git') failed due to: exit code(128)
cmdline: git clone -v --recursive --depth=1 --shallow-submodules -- https://github.com/esphome/home-assistant-addon /data/addons/git/5c53de3b
stderr: 'Cloning into '/data/addons/git/5c53de3b'...
fatal: unable to access 'https://github.com/esphome/home-assistant-addon/': Failure when receiving data from the peer
'.
[supervisor.store] Can't retrieve data from https://github.com/esphome/home-assistant-addon due to
[supervisor.resolution.module] Create new suggestion execute_remove - store / 5c53de3b
[supervisor.resolution.module] Create new issue fatal_error - store / 5c53de3b


也是打开WEB页面进不去报错
回复

使用道具 举报

0

主题

13

回帖

116

积分

注册会员

积分
116
金钱
103
HASS币
0
发表于 2024-6-6 23:15:48 | 显示全部楼层
assistant/addons repository[supervisor,store,git] Cloning add-on https://github, con/hassioaddons/repository repository[supervisor, store.
克隆附加组件https://github, con/hassioaddons/repository repository[supervisor,store . git]
git] Can't clone https://github.
不能克隆https://github。
com/honeassistant/addons repository: Cndgit') failed due to: exit code(128)cndline: git clone-y--recursive-depth-l --shallow-subnoduleshttps://github.
com/honeassistant/addons repository: cndit ')失败,原因是:退出代码(128)cndline: git clone-y——recursive-depth-l——shallow_subnoduleshttps://github。
com/hone-assistant/addons /data/addons/corestderr: 'Cloning into '/data/addons/core'..
/ home -assistant/addons /data/addons/corestderr: '克隆到'/data/addons/core'..
fatal: unable to access https://github, con/hone-assistant/addons/:Failure when receiving data fron the peersupervisor, store] Can' t retrieve data fron core due to [supervisor,resolution,nodule] Create nev suggestion execute_renove store/ core[supervisor,resolution.
致命:无法访问https://github, con/ home -assistant/addons/:从peersupervisor, store接收数据失败]无法从core中检索数据,原因是[supervisor,resolution,nodule]创建新建议execute_remove store/ core[supervisor,resolution]。
nodule] Create nev issue fatal_error - store /[supervisor.store.
创建新问题fatal_error - store /[supervisor.store.]
git] Can't clone https://github.com/hassioaddons/repository repository: Cnd('git') failed due to: exit code(128)l cndline: git clone -v --recursive-depth-l -shallow-subnoduleshttps://github.
无法克隆https://github.com/hassioaddons/repository repository: Cnd('git')失败,原因是:exit code(128)l cndline: git clone -v——recursive-depth-l -shallow- subnodeshttps://github。
com/hassio-addons/repository /data/addons/git/a0d7b954stderr: Cloning into/data/addons/git/a0d7b954...
/hassio-addons/repository /data/addons/git/a0d7b954stderr:克隆到/data/addons/git/a0d7b954…
fatal: unable to access 'https://github.con/hassio-addons/repository/':
致命:无法访问“https://github.con/hassio-addons/repository/”:卡在登录页面了怎么办
回复

使用道具 举报

0

主题

13

回帖

116

积分

注册会员

积分
116
金钱
103
HASS币
0
发表于 2024-6-6 23:14:13 | 显示全部楼层
C:\Users\Administrator\Desktop
回复

使用道具 举报

0

主题

17

回帖

67

积分

注册会员

积分
67
金钱
50
HASS币
0
发表于 2024-6-1 17:04:32 | 显示全部楼层
这个是第一步啊,学习了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-9-26 03:19 , Processed in 0.158844 second(s), 15 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表