Tools to manager life cycle of Exordos projects.
Project description
Exordos cli
The tools to manage life cycle of Exordos projects
Installation of binary
To install the exordos binary, follow this step:
curl -fsSL https://repository.genesis-core.tech/install.sh | sudo sh
Requirements
Before you can install and use exordos you need to install several requirements:
Ubuntu
Install packages
sudo apt update
sudo apt install qemu-kvm qemu-utils libvirt-daemon-system libvirt-dev mkisofs
curl -LsSf https://astral.sh/uv/install.sh | sh
source "$HOME"/.local/bin/env
uv tool install tox --with tox-uv
Add user to group
sudo adduser $USER libvirt
sudo adduser $USER kvm
Install packer like described in this article
Install
To install the exordos package, follow these steps:
-
Clone the repository:
git clone https://github.com/exordos/exordos.git
-
Navigate to the project directory:
cd exordos
-
Initialize virtual environment:
tox -e develop source .tox/develop/bin/activate
Quickstart
Build
Firstly you need to build the Exordos project. Navigate to your project directory and run the exordos build command, specifying the path to your project root directory as an argument. This will build the project according to the configuration defined in the exordos.yaml file.
Here are some examples of how to use the build command:
exordos build /path/to/my/project
There are some useful options for the exordos build command.
- Build a Exordos project with a custom developer key path:
exordos build -i /path/to/my/developer/key /path/to/my/project
- Build a Exordos project with the --force option to rebuild if the output already exists:
exordos build -f /path/to/my/project
Look at the exordos build --help command for more options.
Bootstrap
To bootstrap a Exordos installation locally, use the exordos bootstrap command. This command creates and boots a virtual machine with the specified Exordos image.
One of the key options for the bootstrap command is --launch-mode, which allows you to specify the launch mode for the application. There are three available modes:
element: This is the default mode, which launches the installation as a single element.core: This mode launches the installation as a core.custom: This mode allows you to launch the installation with a custom configuration.
Here are some examples of how to use the --launch-mode option:
exordos bootstrap -i output/exordos-element.raw
Launch the installation in core mode:
exordos bootstrap -i output/exordos-core.raw -m core
Usage
The package provides a command line interface for building Exordos projects, managing Exordos installations and covers many other useful aspects. To use the command line interface, run the exordos command from the command line. For full documentation about CLI commands, run exordos --help.
For every Exordos project the directory exordos should exist in the project root. The project configuration file should be named exordos.yaml in this directory. For example my project structure looks like this:
.
├── my_project
│ └── main.py
├── project_settings.json
├── pyproject.toml
└── README.md
The project should be extended as follows:
.
├── my_project
│ └── main.py
├── exordos
│ └── exordos.yaml
├── README.md
├── project_settings.json
├── pyproject.toml
└── README.md
Exordos configuration file
The exordos.yaml file contains the configuration for the Exordos project. It should be placed in the exordos directory. It consists of several sections such as build, deploy, etc.
Example of the exordos.yaml file:
# Build section. It describes the build process of the project.
build:
# Dependencies of the project
# This section is used to specify build dependencies
# for the project
deps:
# Target path in the image
- dst: /opt/exordos_core
# Local path of the build machine
path:
src: ../../exordos_core
# This section describes elements of the project.
# Images, artifacts and manifests for every element.
elements:
# List of images in the element
- images:
- name: exordos-core
format: raw
# OS profile for the image
profile: ubuntu_24
# Provisioning script
script: images/install.sh
# Override image build parameters, for instance Packer parameters
override:
disk_size: "10G"
manifest: manifests/exordos-core.yaml
# List of artifacts in the element
artifacts:
- configs/my-cofig.yaml
- templates/my-template.yaml
Build project
The exordos build command builds the project. The build process is described in the build section of the exordos.yaml file. The mandatory argument is path to the project root directory.
Build a Exordos project.
exordos build my_project
This will build the Exordos project in the my_project directory using the default configuration file will be located in my_project/exordos/exordos.yaml.
After build the project output artifacts will be stored in the output directory.
For detailed information about the exordos build command run exordos build --help.
Manage Exordos installation locally
To bootstrap Exordos installation locally, run the exordos bootstrap command. The mandatory argument is path to the exordos image. For instance,
exordos bootstrap output/exordos-core.raw
This command will create and boot a virtual machine with the specified Exordos image output/exordos-core.raw. The default name of the installation is exordos-core. For detailed information about the exordos bootstrap command run exordos bootstrap --help.
To connect to the Exordos installation, run the exordos ssh command. For instance,
exordos ssh
To list exordos installations, run the exordos ps command. For instance,
exordos ps
To delete Exordos installation, run the exordos delete command. For instance,
exordos delete exordos-core
Stand specification
For more complicated cases when you need to start an installation with several nodes (that are treated as baremetal nodes) you may use stand specification. The stand specification is a YAML file describes the Exordos installation. it specifies how many bootstrap nodes, how many baremetal nodes, their characteristics and other parameters. For instance, it may look like this:
Use option --stand-spec or -s for the bootstrap command to specify file with stand description. For instance,
exordos bootstrap -i output/exordos-core.raw -f -m core -s data/stands/stand-small.yaml
Versions
Semver is used for project versioning. There are three types of versions:
- stable version - format
X.Y.Z - release candidate version - format
X.Y.Z-rc+YYYYMMDDHHMMSS.commit_hash[:8] - development version - format
X.Y.Z-dev+YYYYMMDDHHMMSS.commit_hash[:8]
Stable version looks like 1.0.0, only three digits. Release candidate version looks like 0.0.1-rc+20250224092842.e11604e9. Development version looks like 0.0.1-dev+20250223180245.fb195339.
To get project version, run the exordos get-version with path to the project root directory as an argument to the command. For instance,
exordos get-version /path/to/my_project
Backups
The backup command is used to backup the current installation. This guide provides a brief overview of the command and its usage, along with several examples to get you started.
The basic syntax of the backup command is as follows:
exordos backup -d /path/to/backup/directory
Run the above command to backup the current installation to the specified directory. The command will create a subdirectory for each domain and copy its disks to the specified directory. The backup will repeat every 24 hours by default.
To configure period of backup, run the following command:
exordos backup -d /path/to/backup/directory -p 1h
The above command will backup the current installation to the specified directory every hour.
There is an option to do a backup once and exit:
exordos backup -d /path/to/backup/directory -oneshot
The above command will backup the current installation to the specified directory once and exit.
Basic Backup
Run backup periodically of all libvirt domains and store it in the current directory:
exordos backup
Backup Specific Domain
Run backup periodically of a specific libvirt domain and store it in the current directory:
exordos backup -n domain-name
Exclude Specific Domains
Use --exclude-name (or --no) to skip specific domains or patterns. --name and --exclude-name/--no cannot be used together.
For example:
exordos backup --exclude-name domain-foo --exclude-name domain-bar --exclude-name "domain-stand-*"
Custom Periodic Backup
Run backup periodically of all libvirt domains and store it in the current directory:
exordos backup -p 1h
Available periods are: 1m, 5m, 15m, 30m, 1h, 3h, 6h, 12h, 1d, 3d, 7d
OneShot Backup
Run backup of all libvirt domains and store it in the current directory:
exordos backup -oneshot
This command will backup the current installation to the specified directory once and exit.
Compressed Backup
Run backup of all libvirt domains and store a compressed archive of the backup in the current directory:
exordos backup --compress
Encrypted Backup
Run backup of all libvirt domains and store an encrypted archive of the backup in the current directory:
NOTE: It works only with --compress flag
You need to set the environment variables GEN_DEV_BACKUP_KEY and GEN_DEV_BACKUP_IV to encrypt the backup. The key and IV must be greater or equal to 6 bytes and less or equal to 16 bytes.
export GEN_DEV_BACKUP_KEY=secret_key
export GEN_DEV_BACKUP_IV=secret_iv
exordos backup --compress --encrypt
For decryption, use the exordos backup-decrypt command.
exordos backup-decrypt backup.tar.gz.encrypted
Restore backups
Look at the wiki page backups for information on how to restore backups.
Rotation
For the periodic backup, you can set the number of backups to keep(rotation number). The default value is 5. Use the --rotate option to set the number of backups to keep:
exordos backup --rotate 10
Prevent disk overflow
Backups can take a lot of disk space and it can be a reason to crash the whole system if a disk will be full. To prevent such a situation you can set a threshold for disk space that should be free. If during a backup process this threshold will be reached, the backup process will stop. Use the --min-free-space option to set the threshold in GB.
exordos backup --min-free-space 50
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file exordos-2.0.2.tar.gz.
File metadata
- Download URL: exordos-2.0.2.tar.gz
- Upload date:
- Size: 304.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3372cafc1ff321b807df76031529c82b1766d43f138c12d1922398ba5c2cd8c9
|
|
| MD5 |
bfec17fb6dc731c315ae6581e71ed99e
|
|
| BLAKE2b-256 |
3f1d6ebdd6d3c5a1e44ee18735688ec3ab862b5cd4d3c960df78bc8a20032286
|
Provenance
The following attestation bundles were made for exordos-2.0.2.tar.gz:
Publisher:
publish-to-pypi.yml on exordos/exordos
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
exordos-2.0.2.tar.gz -
Subject digest:
3372cafc1ff321b807df76031529c82b1766d43f138c12d1922398ba5c2cd8c9 - Sigstore transparency entry: 1461442532
- Sigstore integration time:
-
Permalink:
exordos/exordos@3ddfb545c9bcd31bbd54b4929ad8a835f3607860 -
Branch / Tag:
refs/tags/2.0.2 - Owner: https://github.com/exordos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@3ddfb545c9bcd31bbd54b4929ad8a835f3607860 -
Trigger Event:
push
-
Statement type:
File details
Details for the file exordos-2.0.2-py3-none-any.whl.
File metadata
- Download URL: exordos-2.0.2-py3-none-any.whl
- Upload date:
- Size: 369.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c144bfcfc9c04ff7bf711a9a14cefa57637b1833f556282e54a0bf46cdf216f
|
|
| MD5 |
a444b6a092a900236378e54afe763d5b
|
|
| BLAKE2b-256 |
e650656344540eaa5eb184d22ba3c4661be47271a19a6006d0fc091914d7717b
|
Provenance
The following attestation bundles were made for exordos-2.0.2-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on exordos/exordos
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
exordos-2.0.2-py3-none-any.whl -
Subject digest:
7c144bfcfc9c04ff7bf711a9a14cefa57637b1833f556282e54a0bf46cdf216f - Sigstore transparency entry: 1461443137
- Sigstore integration time:
-
Permalink:
exordos/exordos@3ddfb545c9bcd31bbd54b4929ad8a835f3607860 -
Branch / Tag:
refs/tags/2.0.2 - Owner: https://github.com/exordos
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@3ddfb545c9bcd31bbd54b4929ad8a835f3607860 -
Trigger Event:
push
-
Statement type: