Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

oneclickvirt

> DevOps
Open source

Universal Virtualization Management Platform 可扩展的通用虚拟化管理平台,支持 Proxmox VE / LXD (GPU) / Incus (GPU) / Docker / Podman / Containerd / Qemu / Kubevirt

360 stars0 likes4 views
WebsiteGitHub

About

OneClickVirt Virtualization Management Platform

An extensible universal virtualization management platform that supports LXD, Incus, Docker, Podman, Containerd, Proxmox VE, QEMU/KVM, and KubeVirt.

The web console uses Vue 3, Vite, and Element Plus, with responsive layouts checked for desktop, tablet, Android-sized, and iOS-sized viewports.

Language

English Docs | 中文文档

Detailed Description

www.spiritlhl.net

Integration Test Report

The automated integration test report is available at: oneclickvirt.github.io/oneclickvirt

The report supports bilingual display (Chinese/English), light/dark theme switching, Git ref/SHA/run metadata, and server log expansion for failed cases, covering 200+ API endpoint tests including functional, permission, boundary, and security tests. See action_tests/ for details.

Supported Virtualization Platforms

Type ID Platform Instance Types Repository
lxd LXD container, vm oneclickvirt/lxd
incus Incus container, vm oneclickvirt/incus
docker Docker container oneclickvirt/docker
podman Podman container oneclickvirt/podman
containerd Containerd (nerdctl) container oneclickvirt/containerd
proxmox Proxmox VE container, vm oneclickvirt/pve
qemu QEMU vm oneclickvirt/qemu
kubevirt KubeVirt vm oneclickvirt/kubevirt

Additional backend adapters are available for local or desktop virtualization experiments, including orbstack, multipass, vagrant, virtualbox, and vmware. See server/provider/README.md for implementation details and support scope.

Quick Deployment

Avoid compiling from source whenever possible. We recommend deploying using separate binary files or directly pulling the Docker image for deployment.

Method 0: Using the 1Panel Third-Party App Store

okxlin/appstore now includes OneClickVirt. If you already use 1Panel, follow that repository's instructions to add or synchronize the local app store, then deploy oneclickvirt from the local app list.

Method 1: Using Pre-built Images

Use pre-built multi-architecture images that automatically downloads the appropriate version for your system architecture.

Image Tags:

Image Tag Description Use Case
oneclickvirt/oneclickvirt:latest All-in-one version (built-in database) Quick deployment
oneclickvirt/oneclickvirt:20260913 All-in-one version with specific date Fixed version requirement
oneclickvirt/oneclickvirt:no-db Standalone database version Without database
oneclickvirt/oneclickvirt:no-db-20260913 Standalone database version with date Without database

All images support both linux/amd64 and linux/arm64 architectures.

View All-in-One Version (Built-in Database)

Basic Usage (without domain configuration):

bash
docker run -d \
  --name oneclickvirt \
  -p 80:80 \
  -v oneclickvirt-data:/var/lib/mysql \
  -v oneclickvirt-storage:/app/storage \
  --restart unless-stopped \
  oneclickvirt/oneclickvirt:latest

Configure Domain Access:

If you need to configure a domain, set the FRONTEND_URL environment variable:

bash
docker run -d \
  --name oneclickvirt \
  -p 80:80 \
  -e FRONTEND_URL="https://your-domain.com" \
  -v oneclickvirt-data:/var/lib/mysql \
  -v oneclickvirt-storage:/app/storage \
  --restart unless-stopped \
  oneclickvirt/oneclickvirt:latest

Or using GitHub Container Registry:

bash
docker run -d \
  --name oneclickvirt \
  -p 80:80 \
  -e FRONTEND_URL="https://your-domain.com" \
  -v oneclickvirt-data:/var/lib/mysql \
  -v oneclickvirt-storage:/app/storage \
  --restart unless-stopped \
  ghcr.io/oneclickvirt/oneclickvirt:latest

View Standalone Database Version

Use external database for smaller image size and faster startup:

bash
docker run -d \
  --name oneclickvirt \
  -p 80:80 \
  -e FRONTEND_URL="https://your-domain.com" \
  -e DB_HOST="your-mysql-host" \
  -e DB_PORT="3306" \
  -e DB_NAME="oneclickvirt" \
  -e DB_USER="root" \
  -e DB_PASSWORD="your-password" \
  -v oneclickvirt-storage:/app/storage \
  --restart unless-stopped \
  oneclickvirt/oneclickvirt:no-db

Environment Variables:

  • FRONTEND_URL: Frontend access URL (required, supports http/https)
  • DB_HOST: Database host address
  • DB_PORT: Database port (default 3306)
  • DB_NAME: Database name
  • DB_USER: Database username
  • DB_PASSWORD: Database password

The no-db image stores its runtime configuration at /app/storage/config.yaml in the oneclickvirt-storage volume. Reuse the same storage volume when updating the image or recreating the container; database settings entered on the initialization page and other system-level settings then survive replacement. Non-empty DB_* environment variables take precedence over the file, so recreations may also keep passing the same database environment. Deployments that explicitly mount /app/config.yaml continue to use that file first.

Note: FRONTEND_URL is used to configure the frontend access address, affecting features like CORS and OAuth2 callbacks. The system will automatically detect HTTP/HTTPS protocol and adjust configurations accordingly. The protocol prefix can be either http or https.

Method 2: Using Docker Compose

View Docker Compose Deployment

Use Docker Compose to deploy the complete development environment with one command, using multi-container deployment architecture with separate frontend, backend, and database containers:

…

bash curl -fsSL https://raw.githubusercontent.com/oneclickvirt/oneclickvirt/main/scripts/install_full.sh -o install_full.sh bash install_full.sh

bash

For non-interactive deployment:

```bash
# HTTPS with auto TLS
bash install_full.sh \
  --non-interactive \
  --domain https://panel.example.com \
  --email [email protected] \
  --db-type mariadb \
  --proxy caddy

# HTTP only, no TLS
bash install_full.sh \
  --non-interactive \
  --domain http://192.168.1.100 \
  --proxy caddy

Useful automation flags:

bash
bash install_full.sh --version v1.2.3 --db-wait-timeout 300
bash install_full.sh --db-type mysql --no-db-fallback

The installer requires at least 10 GB of free disk space and 2 GB of combined memory and swap by default. It writes the generated database password to the final installation summary; save it before closing the terminal.

After installation, download the standard installer to manage OneClickVirt deployments that use a systemd service:

bash
curl -fsSL https://raw.githubusercontent.com/oneclickvirt/oneclickvirt/main/scripts/install.sh -o install.sh
chmod +x install.sh

./install.sh status
./install.sh logs --lines 200
./install.sh logs --follow
./install.sh upgrade
./install.sh uninstall

…

bash
bash
git clone https://github.com/oneclickvirt/oneclickvirt.git
cd oneclickvirt
docker build -t oneclickvirt .
docker run -d \
  --name oneclickvirt \
  -p 80:80 \
  -v oneclickvirt-data:/var/lib/mysql \
  -v oneclickvirt-storage:/app/storage \
  --restart unless-stopped \
  oneclickvirt

Docker builds embed scripts/install_agent.sh automatically. If you also want the controller image to serve local agent release archives instead of redirecting to GitHub Releases, place these files in server/assets/agent/ before docker build:

install_agent.sh
oneclickvirt-agent-linux-amd64.tar.gz
oneclickvirt-agent-linux-arm64.tar.gz

Standalone Database Version:

bash
git clone https://github.com/oneclickvirt/oneclickvirt.git
cd oneclickvirt
docker build -f Dockerfile.no-db -t oneclickvirt:no-db .
docker run -d \
  --name oneclickvirt \
  -p 80:80 \
  -e FRONTEND_URL="https://your-domain.com" \
  -e DB_HOST="your-mysql-host" \
  -e DB_PORT="3306" \
  -e DB_NAME="oneclickvirt" \
  -e DB_USER="root" \
  -e DB_PASSWORD="your-password" \
  -v oneclickvirt-storage:/app/storage \
  --restart unless-stopped \
  oneclickvirt:no-db

…

bash
bash
cd web
npm i
npm run serve
  1. Build backend
bash
cd server
go mod tidy
go run main.go
  1. In development mode, there's no need to proxy the backend, as Vite already includes backend proxy requests.

  2. Create an empty database named oneclickvirt in MySQL, and record the corresponding account and password.

  3. Access the frontend address, which will automatically redirect to the initialization interface. Fill in the database information and related details, then click initialize.

  4. After completing initialization, it will automatically redirect to the homepage, and you can start development and testing.

Local Development

  • Frontend: http://localhost:8080
  • Backend API: http://localhost:8888
  • API Documentation: http://localhost:8888/swagger/index.html

Initial Account

The administrator account is created from the setup form during first initialization. The quick-fill action generates a random strong password each time; save the generated value before submitting the form.

Configuration File

The main configuration file is located at server/config.yaml

Sponsors

Thanks to the following groups and individuals for sponsoring OneClickVirt:   

  

  

  

LICENSE

Demo Screenshots

The screenshots below are generated from the current responsive frontend, including the public homepage, sponsor section, mobile layout, admin pages, and user pages.

Public homepage

Sponsors

Mobile homepage

Admin dashboard

Provider management

User dashboard

User instances

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Gocontainerddockerdomaingpu

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理