From b6d8a6649b3e8ae80aea0a7b5828e04b2560c6d3 Mon Sep 17 00:00:00 2001 From: vasilito Date: Tue, 30 Jun 2026 14:30:52 +0300 Subject: [PATCH] Add config examples: hiperiso.json.example with all 16 plugin sections --- config/hiperiso.json.example | 162 ++++++++++++++++++++++++++++ config/iso_overrides/windows11.json | 20 ++++ 2 files changed, 182 insertions(+) create mode 100644 config/hiperiso.json.example create mode 100644 config/iso_overrides/windows11.json diff --git a/config/hiperiso.json.example b/config/hiperiso.json.example new file mode 100644 index 0000000..623a256 --- /dev/null +++ b/config/hiperiso.json.example @@ -0,0 +1,162 @@ +{ + "_comment": "hiperiso global configuration. Copy to :/hiperiso/hiperiso.json", + + "control": [ + { + "HISO_DEFAULT_MENU_MODE": "0", + "HISO_FILT_DOT_UNDERSCORE_FILE": "1", + "HISO_SORT_CASE_SENSITIVE": "0", + "HISO_MAX_SEARCH_LEVEL": "-1", + "HISO_FILE_FLT_ISO": "0", + "HISO_FILE_FLT_WIM": "0", + "HISO_FILE_FLT_VHD": "0", + "HISO_WIN11_BYPASS_CHECK": "1", + "HISO_WIN11_BYPASS_NRO": "1", + "HISO_SECONDARY_BOOT_MENU": "1", + "HISO_MENU_TIMEOUT": "0", + "HISO_SECURE_BOOT_POLICY": "0", + "HISO_DEFAULT_SEARCH_ROOT": "", + "HISO_DEFAULT_IMAGE": "", + "HISO_DEFAULT_KBD_LAYOUT": "QWERTY_USA", + "HISO_MENU_LANGUAGE": "en_US" + } + ], + + "control_ext": { + "default_ram": 2048, + "default_cpus": 2, + "default_trace_level": "standard", + "default_display": "none", + "default_vga": "none", + "fallback_no_kvm": true, + "net_dump": false, + "timeout": 10 + }, + + "theme": { + "file": "/hiperiso/themes/hiperiso/theme.txt", + "gfxmode": "1024x768", + "gfxpayload": "keep", + "hiperiso_left": "5%", + "hiperiso_top": "95%", + "hiperiso_color": "#0000ff" + }, + + "menu_alias": [ + { "iso": "/ISOs/ubuntu-24.04-desktop-amd64.iso", "alias": "Ubuntu 24.04 LTS" }, + { "dir": "/ISOs/Windows", "alias": "Windows ISOs" } + ], + + "menu_tip": { + "left": "10%", + "top": "81%", + "color": "blue", + "tips": [ + { "iso": "/ISOs/windows11_23h2_x64.iso", "tip": "Requires TPM + Secure Boot; uses 4 GB RAM" } + ] + }, + + "menu_class": [ + { "key": "ubuntu", "class": "ubuntu" }, + { "key": "debian", "class": "debian" }, + { "key": "windows", "class": "windows" }, + { "key": "fedora", "class": "fedora" }, + { "key": "arch", "class": "arch" }, + { "key": "kali", "class": "kali" }, + { "key": "freebsd", "class": "freebsd" } + ], + + "auto_install": [ + { + "image": "/ISOs/ubuntu-24.04-desktop-amd64.iso", + "template": ["/hiperiso/auto/ubuntu.seed"], + "autosel": 1, + "timeout": 0 + }, + { + "parent": "/ISOs/RHEL", + "template": ["/hiperiso/auto/rhel.ks"], + "autosel": 0 + } + ], + + "persistence": [ + { + "image": "/ISOs/ubuntu-24.04-desktop-amd64.iso", + "backend": ["/hiperiso/persistence/ubuntu.dat"], + "autosel": 1 + } + ], + + "dud": [ + { + "image": "/ISOs/rhel-9.iso", + "dud": ["/hiperiso/dud/megaraid.dd.gz"] + } + ], + + "injection": [ + { + "image": "/ISOs/windows11.iso", + "archive": "/hiperiso/injection/win11_drivers.tar.gz" + } + ], + + "auto_memdisk": [ + "/ISOs/small_legacy_iso/*.iso" + ], + + "image_list": [], + + "image_blacklist": [ + "/ISOs/broken.iso" + ], + + "conf_replace": [ + { + "iso": "/ISOs/custom_distro.iso", + "org": "/boot/grub/grub.cfg", + "new": "/hiperiso/conf_replace/custom_grub.cfg" + } + ], + + "password": { + "bootpwd": "", + "isopwd": "", + "menupwd": [ + { "file": "/ISOs/secret.iso", "pwd": "txt#mypassword" } + ] + }, + + "custom_boot": [ + { + "file": "/ISOs/special.iso", + "vcfg": "/hiperiso/custom_boot/special.vcfg" + } + ], + + "iso_overrides": { + "*./windows11*.iso": { + "ram": 4096, + "cpus": 4, + "tpm": true, + "secure_boot": true, + "cpu_features": ["vmx"], + "trace_level": "detailed" + }, + "*./freebsd*.iso": { + "ram": 2048, + "cpu_features": ["vmx"], + "net_dump": true + }, + "*./kali*.iso": { + "ram": 4096, + "trace_level": "standard" + }, + "*./memtest*.img": { + "ram": 512, + "cpus": 1, + "trace_level": "none" + } + } +} diff --git a/config/iso_overrides/windows11.json b/config/iso_overrides/windows11.json new file mode 100644 index 0000000..88b15c8 --- /dev/null +++ b/config/iso_overrides/windows11.json @@ -0,0 +1,20 @@ +{ + "_comment": "Standalone per-ISO override for Windows 11. Windows 11 requires a virtual TPM (swtpm) and Secure Boot, more RAM, and nested-virtualization CPU flags. This can be merged into hiperiso.json under iso_overrides or kept as a separate override file under config/iso_overrides/.", + + "match": "*./windows11*.iso", + + "override": { + "ram": 4096, + "cpus": 4, + "tpm": true, + "secure_boot": true, + "cpu_features": ["vmx"], + "trace_level": "detailed", + + "qemu_extra_args": [ + "-chardev", "socket,id=chrtpm,path=/run/swtpm.sock", + "-tpmdev", "emulator,id=tpm0,chardev=chrtpm", + "-device", "tpm-tis,tpmdev=tpm0" + ] + } +}