Files
virtuality/image/autoinstall.yaml
T
Claude d92b1b9bda Сборка установочного ISO-образа Virtuality была добавлена
image/build-iso.sh пересобирает официальный Ubuntu Server 24.04
live-server ISO (amd64/arm64) в установщик Virtuality:
- /autoinstall.yaml: установщик спрашивает только сеть, диск и
  пользователя, остальное автоматически; есть полностью
  автоматический режим --unattended;
- исходники Virtuality (git-репозиторий, чтобы работал центр
  обновлений) и Python-колёса для офлайн-установки панели;
- virtuality-firstboot.service при первой загрузке ставит KVM,
  libvirt, Cockpit, web-панель, vhealth и консольный dashboard,
  повторяя попытку до успеха.

Также: зависимости панели закреплены полностью, установщики работают
неинтерактивно и учитывают VIRTUALITY_USER, bootstrap.sh стал обёрткой
над install.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019LEUXMcdZo7b87mjkUsPgg
2026-09-25 06:31:55 +00:00

32 строки
1.1 KiB
YAML

#cloud-config
# Virtuality installer configuration for Ubuntu Server 24.04 (subiquity autoinstall).
# build-iso.sh puts this file at /autoinstall.yaml on the ISO.
# @@VARIABLES@@ are substituted at build time.
autoinstall:
version: 1
# The installer asks only for these screens; everything else is automated.
interactive-sections:
@@INTERACTIVE_SECTIONS@@
locale: @@LOCALE@@
keyboard:
layout: @@KEYBOARD@@
timezone: @@TIMEZONE@@
source:
id: ubuntu-server
ssh:
install-server: true
allow-pw: true
@@IDENTITY@@
storage:
layout:
name: lvm
sizing-policy: all
late-commands:
- mkdir -p /target/opt/virtuality /target/etc/virtuality
- cp -a /cdrom/virtuality/source /target/opt/virtuality/source
- chown -R root:root /target/opt/virtuality
- chmod -R u+w /target/opt/virtuality/source
- cp /cdrom/virtuality/image.env /target/etc/virtuality/image.env
- cp /cdrom/virtuality/virtuality-firstboot.service /target/etc/systemd/system/virtuality-firstboot.service
- curtin in-target --target=/target -- systemctl enable virtuality-firstboot.service