No description
  • Python 87.7%
  • Shell 11.6%
  • Dockerfile 0.7%
Find a file
Oliver Kurth 59a011da9f
Merge pull request #42 from dcasota/patch-1
Include btrfs-progs for btrfs filesystem support
2026-06-09 13:51:13 -07:00
.github/workflows test ISO image with bios boot mode 2026-06-04 23:29:29 +00:00
docker Merge pull request #38 from dcasota/fix/dockerfile-copy-syntax 2026-06-05 16:20:27 -07:00
docs add services configuration for the ks config. 2026-04-28 19:32:19 +00:00
examples test ISO image with bios boot mode 2026-06-04 23:29:29 +00:00
photon_installer Merge pull request #42 from dcasota/patch-1 2026-06-09 13:51:13 -07:00
sample_ks remove ostree support 2026-02-17 21:21:38 +00:00
tests license: fix to use Apache 2.0 OR GPL 2.0 2026-01-13 01:50:07 +00:00
.gitignore add example files 2023-06-12 12:08:56 -07:00
.shellcheckrc Address shellcheck issues 2025-09-05 03:01:40 +05:30
CODE-OF-CONDUCT.md Updated CODE-OF-CONDUCT and added .gitignore (#4) 2020-12-04 18:11:49 +05:30
CONTRIBUTING.md Photon OS Installer: (#1) 2020-12-02 11:26:30 +05:30
create-image-util Address shellcheck issues 2025-09-05 03:01:40 +05:30
LICENSE-Apachev2 Photon OS Installer: (#1) 2020-12-02 11:26:30 +05:30
LICENSE-GPL2.0 Photon OS Installer: (#1) 2020-12-02 11:26:30 +05:30
lint-checks.sh Add lint check script 2025-09-04 09:49:13 +05:30
MANIFEST.in python package improvements 2023-02-08 10:10:07 -08:00
NOTICE-Apachev2 Photon OS Installer: (#1) 2020-12-02 11:26:30 +05:30
NOTICE-GPL2.0 Photon OS Installer: (#1) 2020-12-02 11:26:30 +05:30
photon-installer.spec python package improvements 2023-02-08 10:10:07 -08:00
photon-os-installer.spec replace cdrkit (mkisofs) with xorriso 2026-06-05 19:10:08 +00:00
README.md Photon OS Installer: (#1) 2020-12-02 11:26:30 +05:30
requirements.txt use jc for manifest info 2023-11-30 16:24:18 -08:00
setup.cfg suport check-config and add-defaults hooks in plugins 2026-04-28 19:57:54 +00:00
setup.py add an example plugin 2026-04-28 19:57:54 +00:00
version.py Address flake8 warnings and errors. 2025-09-04 09:49:12 +05:30

Photon OS Installer

What is Photon Installer

Photon OS Installer Project aims to seperate out installer source code from Photon project and use it as a python library. This Project can be used to create a photon-installer binary that can be used to install Photon OS when invoked with appropriate arguments.

Features

  • Generates Photon Installer executable.
  • Creates Photon Images(ISO, GCE, AMI, AZURE, OVA...).
  • Makes Photon Installer Source code installable through pip interface and use it as a python library.

Dependencies

python3, python3-pyinstaller, python3-setuptools

Building from source.

Building Photon Installer Executable on Photon OS

➜  ~ tdnf install -y python3 python3-setuptools python3-pyinstaller
➜  ~ git clone https://github.com/vmware/photon-os-installer.git
➜  ~ cd photon-os-installer
➜  ~ pyinstaller --onefile photon-installer.spec

Building Photon Installer Executable on Other distros

➜  ~ pip3 install setuptools pyinstaller
➜  ~ git clone https://github.com/vmware/photon-os-installer.git
➜  ~ cd photon-os-installer
➜  ~ pyinstaller --onefile photon-installer.spec

The executable generated can be found inside dist directory created.

Currently following images can be built based on architecture mentioned in table.

x86_64 arm64
iso iso
ova ova
ova_uefi ova_uefi
minimal-iso
rt-iso
ami
gce
azure
rpi3

Building Photon Cloud images using Photon OS Installer

➜  ~ pip3 install git+https://github.com/vmware/photon-os-installer.git
➜  ~ git clone https://github.com/vmware/photon.git
➜  ~ cd photon
➜  ~ make image IMG_NAME=ami

Using Photon OS Installer as python library
install config mentioned below can be referred from Photon Project

import photon_installer
from photon_installer.installer import Installer
import json
with open('path_to_file/config.json') as f:
    install_config = json.load(f)
installer = Installer(working_directory='/root/photon/stage/ova', rpm_path='/root/photon/stage/RPMS', log_path='/root/photon/stage/LOGS')
installer.configure(install_config)
installer.execute()

Contributing

The Photon OS Installer project team welcomes contributions from the community. If you wish to contribute code and you have not signed our contributor license agreement (CLA), our bot will update the issue when you open a Pull Request. For any questions about the CLA process, please refer to our FAQ.

License

Apache-2.0 GPL-2.0