openvair
Open vAir
Translations
Contents
- Preparation for Project Installation
- Project Configuration
- Application Tunneling
- Starting the Installation
- Uninstallation
- Documentation
- Daemons
- Links
- Contribution
Project Description
Open vAir is a lightweight solution based on the vAir project, designed for use as a development environment and virtualization system. The program operates in interactive mode, providing a flexible and convenient tool for managing virtual infrastructure.
Technologies:
Installation
To install Open vAir on a clean Linux system, follow these steps. It is recommended to use Ubuntu 20.04, which is the most tested version. Ubuntu 22.04 is also supported.
Preparation for Project Installation
-
Ensure all system packages are up to date. Execute the following commands:
sudo apt update && sudo apt upgrade -yImportant: Don't forget to restart the system after executing these commands to apply all changes.
-
Execute the following commands to create and configure a user:
-
Create a user:
sudo useradd -s /bin/bash -d /opt/aero -m aero -
Assign necessary permissions:
sudo chmod +x /opt/aero -
Add the user to the superuser list:
echo "aero ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/aero -
Switch to the new user:
sudo -u aero -i
-
-
Download the project repository:
git clone https://gitverse.ru/Aerodisk/openvair.git -
Configure the configuration file:
vi ~/openvair/project_config.toml
Project Configuration
Before installing Open vAir, you need to set the login and password in
the
file. This data is required for
system authorization and access to all application functions.
Configuration example:
[default_user]login = ''password = ''
Note: The login and password fields must be filled in by the user. Otherwise, the installation will be aborted.
Application Tunneling
If the application needs to be run on a separate host as a server, configure tunneling to the virtual network. Determine the local IP address of the host by executing the command:
ip a
Specify the obtained IP address in the configuration file:
[web_app]host = '192.168.1.2'port = 8000
Starting the Installation
- Run the installation script:
./openvair/install.sh
Upon completion of the installation, you will receive a message with the current application address, login, and password for working with the system.
Uninstallation
To remove Open vAir, run the uninstallation script:
./openvair/uninstall.sh
Documentation
Documentation can be found in the
file, which will be
created after the project installation. Documentation is also available at
the
endpoint after installation is complete.
Daemons
web-app Daemon
The web-app daemon ensures automatic startup and restart of the main FastAPI
based application, which is responsible for API and GUI operations. The
application is accessible at the address specified in the web_app section of
the config.toml file. By default, this is
.
- Check daemon status:
sudo systemctl status web-app.service
- Restart daemon:
sudo systemctl restart web-app.service
- Stop daemon:
sudo systemctl stop web-app.service
- View daemon logs:
sudo journalctl -fu web-app.service
service-layer Daemon
Service-layer daemons perform remote function calls of the service layer.
Each module has its own service-layer daemon. To check the status and view
logs, use similar commands, changing the service name to
.
For example:
sudo systemctl status storage-service-layer.service
domain Daemon
ДDomain daemons perform remote function calls of the domain layer. Each module has its own domain daemon. To check the status and view logs, use similar commands, changing the service name to <имя_предметной_области>-domain.service.
sudo systemctl status storage-domain.service
Documentation Links
- Project introduction: on-boarding.
- How to contribute to the project: howto-contribute.
- Code of conduct: code-of-conduct.
- Code convention: code-convention.
Frontend of the project
- To work with the user interface (Frontend), use the repository Open vAir UI.
Documentation of the project
- To work with the documentation, use the repository Open vAIR docs.
Statistics (including documentation and frontend projects)
Contribution
Instructions for contributing to the project:
- Fork the repository
- Create a new branch (git checkout -b feature/your-feature)
- Make changes and commit (git commit -m 'Added new feature')
- Push changes (git push origin feature/your-feature)
- Create a Pull Request
Описание
Open vAIR — это платформа виртуализации, разработанная для того, чтобы сделать процесс создания и управления виртуальными машинами максимально простым и гибким. Она позволяет пользователям легко развертывать, настраивать, управлять и интегрировать виртуальные среды в существующую ИТ-инфраструктуру.
Языки
Python
- Mako
- Jinja
- Shell