Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    TSA Allows You To Add Your Passport To This Apple Wallet Alternative

    OpenAI taps Tata for 100MW AI data center capacity in India, eyes 1GW

    OpenAI deepens India push with Pine Labs fintech partnership

    Facebook X (Twitter) Instagram
    • Artificial Intelligence
    • Business Technology
    • Cryptocurrency
    • Gadgets
    • Gaming
    • Health
    • Software and Apps
    • Technology
    Facebook X (Twitter) Instagram Pinterest Vimeo
    Tech AI Verse
    • Home
    • Artificial Intelligence

      Read the extended transcript: President Donald Trump interviewed by ‘NBC Nightly News’ anchor Tom Llamas

      February 6, 2026

      Stocks and bitcoin sink as investors dump software company shares

      February 4, 2026

      AI, crypto and Trump super PACs stash millions to spend on the midterms

      February 2, 2026

      To avoid accusations of AI cheating, college students are turning to AI

      January 29, 2026

      ChatGPT can embrace authoritarian ideas after just one prompt, researchers say

      January 24, 2026
    • Business

      The HDD brand that brought you the 1.8-inch, 2.5-inch, and 3.5-inch hard drives is now back with a $19 pocket-sized personal cloud for your smartphones

      February 12, 2026

      New VoidLink malware framework targets Linux cloud servers

      January 14, 2026

      Nvidia Rubin’s rack-scale encryption signals a turning point for enterprise AI security

      January 13, 2026

      How KPMG is redefining the future of SAP consulting on a global scale

      January 10, 2026

      Top 10 cloud computing stories of 2025

      December 22, 2025
    • Crypto

      Wall Street Moves Into Prediction Markets With Election-Contract ETF Filings

      February 18, 2026

      Tectonic to Host Inaugural Quantum Summit at ETHDenver 2026 Focused on Post-Quantum Cryptography Readiness for Web3

      February 18, 2026

      Ki Young Ju Says Bitcoin May Need to Hit $55K Before True Recovery Begins

      February 18, 2026

      MYX Finance Is Oversold For The First Time Ever, Yet No Relief In Sight

      February 18, 2026

      Everyone is Talking about the SaaSpocalypse, But Why Does it matter for Crypto?

      February 18, 2026
    • Technology

      TSA Allows You To Add Your Passport To This Apple Wallet Alternative

      February 19, 2026

      OpenAI taps Tata for 100MW AI data center capacity in India, eyes 1GW

      February 19, 2026

      OpenAI deepens India push with Pine Labs fintech partnership

      February 19, 2026

      Etsy sells secondhand clothing marketplace Depop to eBay for $1.2B

      February 19, 2026

      Hacking conference Def Con bans three people linked to Epstein

      February 19, 2026
    • Others
      • Gadgets
      • Gaming
      • Health
      • Software and Apps
    Check BMI
    Tech AI Verse
    You are at:Home»Technology»Infinibay LXD Container
    Technology

    Infinibay LXD Container

    TechAiVerseBy TechAiVerseNovember 22, 2025No Comments7 Mins Read7 Views
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr Email Reddit
    Infinibay LXD Container
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp Email

    Infinibay LXD Container

    Infinibay LXD Deployment

    LXD-based containerization for the Infinibay VDI management platform.

    Status

    ✅ Production Ready – Automated provisioning with intelligent orchestration and multi-distro support

    Quick Links

    • INSTALL.md – ⭐ Complete installation and deployment guide
    • Project Root: ../
    • Installer Reference: ../installer/

    Why LXD?

    LXD provides native support for KVM/libvirt, making it ideal for running VMs inside containers without privileged mode or complex workarounds.

    Key advantages:

    • ✅ Native KVM device access – no --privileged mode needed
    • ✅ Full systemd support inside containers
    • ✅ Designed for nested virtualization
    • ✅ YAML-based configuration (lxd-compose)
    • ✅ Better security isolation for VM workloads
    • ✅ Minimal performance overhead (~5%)

    Supported Operating Systems

    Infinibay’s LXD deployment supports multiple Linux distributions with automatic package manager detection:

    • Debian/Ubuntu – Uses apt-get (auto-detected)
    • RHEL/CentOS/Fedora/Rocky/AlmaLinux – Uses dnf or yum (auto-detected)
    • openSUSE/SLES – Uses zypper (auto-detected)
    • Arch/Manjaro/EndeavourOS – Uses pacman (auto-detected)

    The setup script automatically detects your distribution and uses the appropriate package manager. LXD installation path (snap vs native package) is also auto-detected.

    Overview

    This directory contains LXD-based containerization for Infinibay using lxd-compose.

    Structure:

    lxd/
    ├── run.sh                         # Main management script ⭐
    ├── .lxd-compose.yml               # Main lxd-compose config
    ├── envs/
    │   └── infinibay.yml              # Infinibay project definition
    ├── profiles/
    │   └── templates/                 # LXD profile templates
    ├── values.yml.example             # Configuration template
    ├── setup.sh                       # Automated installation
    ├── INSTALL.md                     # Complete guide
    └── README.md                      # This file
    

    Note: lxd-compose uses a different structure than docker-compose:

    • Main config: .lxd-compose.yml
    • Projects: envs/*.yml files
    • Commands: apply infinibay, destroy infinibay, stop infinibay

    Architecture

    The deployment creates 4 LXD containers:

    1. infinibay-postgres – PostgreSQL database
    2. infinibay-redis – Redis cache
    3. infinibay-backend – Node.js API + libvirt-node + infiniservice + KVM access
    4. infinibay-frontend – Next.js web interface

    Quick Start

    What happens:

    • setup.sh – Installs LXD, lxd-compose, detects your distro and package manager, auto-detects LXD path, generates .env with secure passwords
    • newgrp lxd – ⚠️ REQUIRED – Activates lxd group permissions
    • .env configuration – ⚠️ IMPORTANT – Review and change ADMIN_PASSWORD (auto-generated passwords should be personalized!)
    • ./run.sh – Intelligent orchestration: creates containers, provisions software, starts everything
      • Checks if environment exists → creates if not
      • Checks if containers are running → starts if stopped
      • Checks if provisioned → provisions if not (tracked via LXD metadata)
      • Skips already-completed steps automatically
    • Containers have shared /opt/infinibay directory (your code)
    • Data persists in /data directories even if containers are destroyed

    Important: Group Membership

    After running setup.sh, you may need to activate the lxd group:

    Option 1 (Quick – current session only):

    Option 2 (Permanent – requires re-login):

    logout
    # Then login again

    How to check if you’re in the group:

    groups | grep lxd
    # Should show 'lxd' in the output

    Common Operations

    Recommended Workflow (Smart Default)

    # One command does everything - creates, provisions, and starts
    ./run.sh              # Smart default - handles everything automatically
    
    # Fresh start - destroy and recreate everything
    ./run.sh redo         # or: ./run.sh rd
    
    # Quick status check
    ./run.sh status       # or: ./run.sh s

    Using run.sh (All Commands)

    # Smart default workflow (recommended)
    ./run.sh              # Does everything: create → provision → start
    
    # Manual step-by-step (if you prefer explicit control)
    ./run.sh apply        # Shortcuts: a, ap - Create containers
    ./run.sh provision    # Shortcuts: p, pr - Install software
    
    # Container management
    ./run.sh status       # Shortcuts: s, st - Check status
    ./run.sh destroy      # Shortcuts: d, de - Remove containers
    ./run.sh redo         # Shortcut: rd - Destroy and recreate (fresh start)
    ./run.sh restart      # Shortcuts: r, re - Legacy alias for redo
    
    # Execute commands in containers
    ./run.sh exec backend bash      # Shortcuts: e, ex
    ./run.sh exec postgres psql -U infinibay
    ./run.sh exec frontend npm run dev
    
    # Follow container logs
    ./run.sh logs backend           # Shortcuts: l, lo
    ./run.sh logs postgres
    
    # Update profiles only (after modifying templates)
    ./run.sh setup-profiles         # Shortcut: sp
    
    # Show help with all shortcuts
    ./run.sh help

    Complete shortcut reference:

    Command Shortcuts Description
    apply a, ap Create and start containers
    provision p, pr Install software in containers
    redo rd Destroy and recreate everything
    destroy d, de Stop and remove all containers
    restart r, re Legacy alias for redo
    status s, st Show container status
    setup-profiles sp Update LXD profiles only
    exec e, ex Execute command in container
    logs l, lo Follow container logs

    Direct LXC Commands

    # View container status
    sg lxd -c "lxc list"
    
    # Execute commands
    sg lxd -c "lxc exec infinibay-backend -- bash"
    
    # Create snapshot
    sg lxd -c "lxc snapshot infinibay-backend backup-$(date +%Y%m%d)"
    
    # List snapshots
    lxc info infinibay-backend

    Current Status

    Implemented and Working:

    • ✅ Creates 4 Ubuntu containers with resource limits
    • ✅ Mounts shared /opt/infinibay directory (your code)
    • ✅ Persistent /data directories for each service
    • ✅ Automated provisioning scripts for all containers
    • ✅ PostgreSQL installation and configuration
    • ✅ Redis installation and configuration
    • ✅ Node.js 20.x LTS + npm
    • ✅ Rust toolchain (for libvirt-node native modules)
    • ✅ libvirt + KVM with /dev/kvm device access
    • ✅ Systemd services ready for backend/frontend
    • ✅ Network connectivity between containers
    • ✅ Universal package manager support (apt/dnf/zypper/pacman)
    • ✅ Automatic LXD path detection (snap vs native)
    • ✅ Smart default orchestration with state tracking
    • ✅ Provisioning state persistence via LXD metadata

    Still Manual:

    • ⏳ npm install in backend/frontend
    • ⏳ Database migrations
    • ⏳ Starting Infinibay services
    • ⏳ Application configuration

    After provisioning, you need to:

    1. Install npm dependencies in backend/frontend
    2. Run database migrations
    3. Configure and start Infinibay services

    See INSTALL.md for detailed instructions.

    Troubleshooting

    “No project selected” error

    # Make sure you specify the project name
    lxd-compose apply infinibay  # ✓ Correct
    lxd-compose apply             # ✗ Wrong

    “Unable to read the configuration file” error

    # You need to be in the lxd group
    newgrp lxd
    # Or logout/login

    “Permission denied” on LXD socket

    # Check if you're in lxd group
    groups | grep lxd
    
    # If not, the setup script should have added you
    # Just run:
    newgrp lxd

    Smart default fails at provisioning step

    # Check individual container status
    ./run.sh status
    
    # Use redo to start fresh (destroys and recreates everything)
    ./run.sh redo

    Want to force re-provisioning

    # Option 1: Use redo command (destroys and recreates everything)
    ./run.sh redo
    
    # Option 2: Manually clear provisioning state for specific container
    lxc config unset infinibay-backend user.provisioned
    lxc config unset infinibay-frontend user.provisioned
    lxc config unset infinibay-postgres user.provisioned
    lxc config unset infinibay-redis user.provisioned
    # Then run: ./run.sh

    vs Native Installer

    Aspect LXD (Current) Native Installer
    Status 🚧 In Development ✅ Production Ready
    Provisioning Manual for now ✅ Fully automated
    Isolation ✅ Full container isolation ❌ System-wide
    Rollback ✅ Snapshots ❌ Manual
    Complexity Medium Low

    Recommendation: Use the native installer for production deployments until LXD provisioning is complete.

    Contributing

    See INSTALL.md for development workflows.

    References

    • LXD Documentation
    • lxd-compose Documentation
    • Infinibay Installer – Recommended for production

    Last Updated: 2025-11-21
    Status: Production Ready

    Share. Facebook Twitter Pinterest LinkedIn Reddit WhatsApp Telegram Email
    Previous ArticleSharper MRI scans may be on horizon thanks to new physics-based model
    Next Article Moss Survives 9 Months in Space Vacuum
    TechAiVerse
    • Website

    Jonathan is a tech enthusiast and the mind behind Tech AI Verse. With a passion for artificial intelligence, consumer tech, and emerging innovations, he deliver clear, insightful content to keep readers informed. From cutting-edge gadgets to AI advancements and cryptocurrency trends, Jonathan breaks down complex topics to make technology accessible to all.

    Related Posts

    TSA Allows You To Add Your Passport To This Apple Wallet Alternative

    February 19, 2026

    OpenAI taps Tata for 100MW AI data center capacity in India, eyes 1GW

    February 19, 2026

    OpenAI deepens India push with Pine Labs fintech partnership

    February 19, 2026
    Leave A Reply Cancel Reply

    Top Posts

    Ping, You’ve Got Whale: AI detection system alerts ships of whales in their path

    April 22, 2025684 Views

    Lumo vs. Duck AI: Which AI is Better for Your Privacy?

    July 31, 2025272 Views

    6.7 Cummins Lifter Failure: What Years Are Affected (And Possible Fixes)

    April 14, 2025156 Views

    6 Best MagSafe Phone Grips (2025), Tested and Reviewed

    April 6, 2025117 Views
    Don't Miss
    Technology February 19, 2026

    TSA Allows You To Add Your Passport To This Apple Wallet Alternative

    TSA Allows You To Add Your Passport To This Apple Wallet Alternative Ilona Titova/Getty Images…

    OpenAI taps Tata for 100MW AI data center capacity in India, eyes 1GW

    OpenAI deepens India push with Pine Labs fintech partnership

    Etsy sells secondhand clothing marketplace Depop to eBay for $1.2B

    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us
    About Us

    Welcome to Tech AI Verse, your go-to destination for everything technology! We bring you the latest news, trends, and insights from the ever-evolving world of tech. Our coverage spans across global technology industry updates, artificial intelligence advancements, machine learning ethics, and automation innovations. Stay connected with us as we explore the limitless possibilities of technology!

    Facebook X (Twitter) Pinterest YouTube WhatsApp
    Our Picks

    TSA Allows You To Add Your Passport To This Apple Wallet Alternative

    February 19, 20260 Views

    OpenAI taps Tata for 100MW AI data center capacity in India, eyes 1GW

    February 19, 20260 Views

    OpenAI deepens India push with Pine Labs fintech partnership

    February 19, 20260 Views
    Most Popular

    7 Best Kids Bikes (2025): Mountain, Balance, Pedal, Coaster

    March 13, 20250 Views

    VTOMAN FlashSpeed 1500: Plenty Of Power For All Your Gear

    March 13, 20250 Views

    This new Roomba finally solves the big problem I have with robot vacuums

    March 13, 20250 Views
    © 2026 TechAiVerse. Designed by Divya Tech.
    • Home
    • About Us
    • Contact Us
    • Privacy Policy
    • Terms & Conditions

    Type above and press Enter to search. Press Esc to cancel.