Open vAIR
🌍 Translations
📖 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 -y
Important: 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:
# GitHub git clone https://github.com/Aerodisk/openvair.git # GitFlic git clone https://gitflic.ru/project/aerodisk_open_vair/openvair.git # GitVerse git clone https://gitverse.ru/Aerodisk/openvair.git # GitLab git clone https://git.aerodisk.ru/openvair/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 /opt/aero/openvair/project_config.toml
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 /docs/build/index.html
file, which will be created after the project installation. Documentation is also available at the /docs/
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 http://127.0.0.1:8000
.
- 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 <module_name>-service-layer.service
.
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 <module_name>-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.
🔗 Useful Links
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 is a virtualization platform designed to make the process of creating and managing virtual machines as simple and flexible as possible. It allows users to easily deploy, configure, manage, and integrate virtual environments into their existing IT infrastructure.