proxmox
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseProxmox Home Lab Manager
Proxmox家庭实验室管理器
Sysadmin skill for managing Proxmox VE home lab infrastructure.
用于管理Proxmox VE家庭实验室基础设施的系统管理技能。
Connection
连接方式
bash
undefinedbash
undefinedProxmox host (requires 2FA - password then OTP)
Proxmox host (requires 2FA - password then OTP)
ssh proxmox
ssh proxmox
Synology NAS (see ~/.ssh/config for Host entry)
Synology NAS (see ~/.ssh/config for Host entry)
ssh nas
undefinedssh nas
undefinedDiscovery Commands
发现命令
List All Infrastructure
列出所有基础设施
bash
undefinedbash
undefinedAll containers with status, IPs
All containers with status, IPs
ssh proxmox "pct list"
ssh proxmox "pct list"
All VMs
All VMs
ssh proxmox "qm list"
ssh proxmox "qm list"
Detailed resource usage (CPU, memory, disk) for everything
Detailed resource usage (CPU, memory, disk) for everything
ssh proxmox "pvesh get /cluster/resources --type vm --output-format json" | jq
ssh proxmox "pvesh get /cluster/resources --type vm --output-format json" | jq
Container config (shows IP, mounts, resources)
Container config (shows IP, mounts, resources)
ssh proxmox "pct config <CTID>"
ssh proxmox "pct config <CTID>"
VM config
VM config
ssh proxmox "qm config <VMID>"
undefinedssh proxmox "qm config <VMID>"
undefinedNetwork Discovery
网络发现
bash
undefinedbash
undefinedFind container IP
Find container IP
ssh proxmox "pct exec <CTID> -- ip -4 addr show eth0"
ssh proxmox "pct exec <CTID> -- ip -4 addr show eth0"
What's listening in a container
What's listening in a container
ssh proxmox "pct exec <CTID> -- ss -tlnp"
ssh proxmox "pct exec <CTID> -- ss -tlnp"
Host network config
Host network config
ssh proxmox "cat /etc/network/interfaces"
undefinedssh proxmox "cat /etc/network/interfaces"
undefinedStorage Discovery
存储发现
bash
undefinedbash
undefinedStorage pools
Storage pools
ssh proxmox "pvesm status"
ssh proxmox "pvesm status"
Storage config
Storage config
ssh proxmox "cat /etc/pve/storage.cfg"
ssh proxmox "cat /etc/pve/storage.cfg"
NFS mounts
NFS mounts
ssh proxmox "mount | grep nfs"
ssh proxmox "mount | grep nfs"
Disk usage
Disk usage
ssh proxmox "df -h"
undefinedssh proxmox "df -h"
undefinedContainer Management
容器管理
bash
undefinedbash
undefinedStart/stop/restart
Start/stop/restart
ssh proxmox "pct start <CTID>"
ssh proxmox "pct shutdown <CTID>" # graceful
ssh proxmox "pct stop <CTID>" # force
ssh proxmox "pct reboot <CTID>"
ssh proxmox "pct start <CTID>"
ssh proxmox "pct shutdown <CTID>" # graceful
ssh proxmox "pct stop <CTID>" # force
ssh proxmox "pct reboot <CTID>"
Enter container shell
Enter container shell
ssh proxmox "pct enter <CTID>"
ssh proxmox "pct enter <CTID>"
Run command in container
Run command in container
ssh proxmox "pct exec <CTID> -- <command>"
undefinedssh proxmox "pct exec <CTID> -- <command>"
undefinedVM Management
VM管理
bash
ssh proxmox "qm start <VMID>"
ssh proxmox "qm shutdown <VMID>"
ssh proxmox "qm stop <VMID>" # force
ssh proxmox "qm reboot <VMID>"
ssh proxmox "qm status <VMID>"bash
ssh proxmox "qm start <VMID>"
ssh proxmox "qm shutdown <VMID>"
ssh proxmox "qm stop <VMID>" # force
ssh proxmox "qm reboot <VMID>"
ssh proxmox "qm status <VMID>"Service Debugging
服务调试
Find and Check Services
查找并检查服务
bash
undefinedbash
undefinedList systemd services in container
List systemd services in container
ssh proxmox "pct exec <CTID> -- systemctl list-units --type=service --state=running"
ssh proxmox "pct exec <CTID> -- systemctl list-units --type=service --state=running"
Check specific service
Check specific service
ssh proxmox "pct exec <CTID> -- systemctl status <service>"
ssh proxmox "pct exec <CTID> -- systemctl status <service>"
Service logs
Service logs
ssh proxmox "pct exec <CTID> -- journalctl -u <service> -n 100 --no-pager"
ssh proxmox "pct exec <CTID> -- journalctl -u <service> -n 100 --no-pager"
Follow logs live
Follow logs live
ssh proxmox "pct exec <CTID> -- journalctl -u <service> -f"
ssh proxmox "pct exec <CTID> -- journalctl -u <service> -f"
All recent logs in container
All recent logs in container
ssh proxmox "pct exec <CTID> -- journalctl -n 100 --no-pager"
undefinedssh proxmox "pct exec <CTID> -- journalctl -n 100 --no-pager"
undefinedCommon Service Names
常见服务名称
Most containers run a single main service. Discover with:
bash
ssh proxmox "pct exec <CTID> -- systemctl list-units --type=service --state=running" | grep -v systemdTypical patterns: , , , , , ,
jellyfinAdGuardHomecaddysonarrradarrsabnzbdtailscaled大多数容器运行单个主服务。可通过以下命令发现:
bash
ssh proxmox "pct exec <CTID> -- systemctl list-units --type=service --state=running" | grep -v systemd典型示例:, , , , , ,
jellyfinAdGuardHomecaddysonarrradarrsabnzbdtailscaledHost Health
主机健康状态
bash
undefinedbash
undefinedOverview
Overview
ssh proxmox "pvesh get /nodes/pve/status"
ssh proxmox "pvesh get /nodes/pve/status"
Quick health
Quick health
ssh proxmox "uptime && free -h && df -h /"
ssh proxmox "uptime && free -h && df -h /"
ZFS status
ZFS status
ssh proxmox "zpool status"
ssh proxmox "zpool status"
Host logs
Host logs
ssh proxmox "journalctl -n 100 --no-pager"
undefinedssh proxmox "journalctl -n 100 --no-pager"
undefinedBackups
备份
bash
undefinedbash
undefinedBackup job config
Backup job config
ssh proxmox "cat /etc/pve/jobs.cfg"
ssh proxmox "cat /etc/pve/jobs.cfg"
List backups in storage
List backups in storage
ssh proxmox "pvesm list <storage-name> --content backup"
undefinedssh proxmox "pvesm list <storage-name> --content backup"
undefinedTroubleshooting
故障排除
Container Won't Start
容器无法启动
bash
ssh proxmox "pct config <CTID>" # check config
ssh proxmox "df -h" # disk space
ssh proxmox "ls /var/lock/pve-manager/pve-config/" # stale locksbash
ssh proxmox "pct config <CTID>" # check config
ssh proxmox "df -h" # disk space
ssh proxmox "ls /var/lock/pve-manager/pve-config/" # stale locksService Not Responding
服务无响应
bash
undefinedbash
undefined1. Container running?
1. Container running?
ssh proxmox "pct status <CTID>"
ssh proxmox "pct status <CTID>"
2. Service running?
2. Service running?
ssh proxmox "pct exec <CTID> -- systemctl status <service>"
ssh proxmox "pct exec <CTID> -- systemctl status <service>"
3. Logs
3. Logs
ssh proxmox "pct exec <CTID> -- journalctl -u <service> -n 100 --no-pager"
ssh proxmox "pct exec <CTID> -- journalctl -u <service> -n 100 --no-pager"
4. Port listening?
4. Port listening?
ssh proxmox "pct exec <CTID> -- ss -tlnp"
ssh proxmox "pct exec <CTID> -- ss -tlnp"
5. Restart
5. Restart
ssh proxmox "pct exec <CTID> -- systemctl restart <service>"
undefinedssh proxmox "pct exec <CTID> -- systemctl restart <service>"
undefinedNFS Mount Issues
NFS挂载问题
bash
ssh proxmox "mount | grep nfs" # current mounts
ssh proxmox "cat /etc/fstab | grep nfs" # configured mounts
ssh proxmox "mount -a" # remount allbash
ssh proxmox "mount | grep nfs" # current mounts
ssh proxmox "cat /etc/fstab | grep nfs" # configured mounts
ssh proxmox "mount -a" # remount allTailscale (if present)
Tailscale(如果已部署)
bash
undefinedbash
undefinedFind tailscale container
Find tailscale container
ssh proxmox "pct list" | grep -i tail
ssh proxmox "pct list" | grep -i tail
Check status (replace CTID)
Check status (replace CTID)
ssh proxmox "pct exec <CTID> -- tailscale status"
undefinedssh proxmox "pct exec <CTID> -- tailscale status"
undefinedDocumentation Reference
文档参考
Detailed infrastructure docs (IPs, service configs, setup history) are in:
~/obsidian/Notes/PROXMOX_SETUP.mdRead this file if you need static reference info not discoverable via commands.
详细的基础设施文档(IP、服务配置、搭建历史)位于:
~/obsidian/Notes/PROXMOX_SETUP.md如果需要无法通过命令动态获取的静态参考信息,请阅读此文件。