PVE는 Proxmox VE, HAOS 는 Home Assistant OS 줄임말.
VM Template로 만들어야 테라폼에서 쉽게 활용이 가능하기 때문에 수동으로 작업을 해줄 예정이다.
PVE는 이미 구성되어 있고, HAOS는 https://www.home-assistant.io/installation/alternative 에서 이미지를 다운로드 받을 수 있다.

proxmox shell 에서 아래 명령어로 다운로드 받아 압축 해제하고 vm으로 생성할 수 있다.
# 다운로드 후 압축 해제
wget https://github.com/home-assistant/operating-system/releases/download/17.1/haos_ova-17.1.qcow2.xz
xz -d haos_ova-17.1.qcow2.xz
# 1. VM을 생성
qm create 9001 --name "haos-template" --memory 4096 --cores 2 --net0 virtio,bridge=vmbr0

VM 생성되면 아래 명령어 이어서 진행
# 2. VM에 importdisk
qm importdisk 9001 haos_ova-17.1.qcow2 local-lvm
# 3. BIOS/Machine 설정
qm set 9001 --bios ovmf --machine q35
# 4. EFI 디스크
qm set 9001 --efidisk0 local-lvm:0,efitype=4m
# 5. import된 디스크 연결 (unused0 확인 후)
qm config 9001 # unused0: local-lvm:vm-9001-disk-X 확인
qm set 9001 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-9001-disk-0
# 6. 부팅 순서
qm set 9001 --boot order=scsi0
# 7. 템플릿 변환
qm template 9001
Shell 출력 및 결과
root@pve:~# qm create 9001 --name "haos-template" --memory 4096 --cores 2 --net0 virtio,bridge=vmbr0
root@pve:~# qm importdisk 9001 haos_ova-17.1.qcow2 local-lvm
importing disk 'haos_ova-17.1.qcow2' to VM 9001 ...
WARNING: You have not turned on protection against thin pools running out of space.
WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
Logical volume "vm-9001-disk-0" created.
WARNING: Sum of all thin volume sizes (<2.29 TiB) exceeds the size of thin pool pve/data and the size of whole volume group (<930.51 GiB).
transferred 0.0 B of 32.0 GiB (0.00%)
transferred 363.7 MiB of 32.0 GiB (1.11%)
transferred 720.9 MiB of 32.0 GiB (2.20%)
...
transferred 32.0 GiB of 32.0 GiB (100.00%)
unused0: successfully imported disk 'local-lvm:vm-9001-disk-0'
root@pve:~# qm set 9001 --bios ovmf --machine q35
update VM 9001: -bios ovmf -machine q35
root@pve:~# qm set 9001 --efidisk0 local-lvm:0,efitype=4m
update VM 9001: -efidisk0 local-lvm:0,efitype=4m
Rounding up size to full physical extent 4.00 MiB
WARNING: You have not turned on protection against thin pools running out of space.
WARNING: Set activation/thin_pool_autoextend_threshold below 100 to trigger automatic extension of thin pools before they get full.
Logical volume "vm-9001-disk-1" created.
WARNING: Sum of all thin volume sizes (<2.29 TiB) exceeds the size of thin pool pve/data and the size of whole volume group (<930.51 GiB).
transferred 0.0 B of 528.0 KiB (0.00%)
transferred 528.0 KiB of 528.0 KiB (100.00%)
transferred 528.0 KiB of 528.0 KiB (100.00%)
efidisk0: successfully created disk 'local-lvm:vm-9001-disk-1,efitype=4m,size=4M'
root@pve:~# qm config 9001
bios: ovmf
boot: order=net0
cores: 2
efidisk0: local-lvm:vm-9001-disk-1,efitype=4m,size=4M
machine: q35
memory: 4096
meta: creation-qemu=9.2.0,ctime=1773036144
name: haos-template
net0: virtio=...,bridge=vmbr0
smbios1: uuid=...
unused0: local-lvm:vm-9001-disk-0
vmgenid: ...
root@pve:~# qm set 9001 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-9001-disk-0
update VM 9001: -scsi0 local-lvm:vm-9001-disk-0 -scsihw virtio-scsi-pci
root@pve:~# qm set 9001 --boot order=scsi0
update VM 9001: -boot order=scsi0
root@pve:~# qm template 9001
Renamed "vm-9001-disk-0" to "base-9001-disk-0" in volume group "pve"
Logical volume pve/base-9001-disk-0 changed.
WARNING: Combining activation change with other commands is not advised.
Renamed "vm-9001-disk-1" to "base-9001-disk-1" in volume group "pve"
Logical volume pve/base-9001-disk-1 changed.
WARNING: Combining activation change with other commands is not advised.

| HAOS 웹 페이지에서 Terminal 사용하기 (0) | 2026.03.11 |
|---|---|
| HAOS 앱(애드온)으로 Vaultwarden 사용하기 (0) | 2026.03.09 |
| HAOS 외부에서 접속하기 (0) | 2026.03.09 |