Files
kvm-manager/README.md
T
2026-04-30 15:51:48 +08:00

66 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# KVM 虚拟化管理平台
基于 FastAPI + Vue 3 + Element Plus 的 KVM 虚拟机管理平台,通过 libvirt API 管理虚拟机。
## 技术栈
- **后端**: FastAPI + libvirt Python API
- **前端**: Vue 3 + Element Plus + Vite
- **虚拟化**: QEMU/KVM + libvirt
## 功能
- 🖥️ 虚拟机管理(创建/启动/停止/删除/快照)
- 📊 资源监控(CPU/内存/磁盘/网络)
- 💾 存储池管理
- 🌐 网络管理
- 📋 控制台访问(noVNC
- 📸 快照管理
- 🔐 用户认证
## 项目结构
```
kvm-manager/
├── backend/
│ ├── app/
│ │ ├── main.py
│ │ ├── config.py
│ │ ├── database.py
│ │ ├── models.py
│ │ ├── auth.py
│ │ └── routers/
│ │ ├── vm.py
│ │ ├── storage.py
│ │ ├── network.py
│ │ ├── snapshot.py
│ │ └── monitor.py
│ ├── requirements.txt
│ └── Dockerfile
├── frontend/
│ ├── src/
│ │ ├── views/
│ │ ├── components/
│ │ ├── api/
│ │ ├── router/
│ │ └── App.vue
│ ├── package.json
│ └── vite.config.js
├── docker-compose.yml
└── README.md
```
## 快速开始
```bash
# 后端
cd backend
pip install -r requirements.txt
uvicorn app.main:app --host 0.0.0.0 --port 8004
# 前端
cd frontend
npm install
npm run dev
```