Update docs/tech_docs/proxmox.md

This commit is contained in:
2024-04-19 05:54:58 +00:00
parent 832c7b87b7
commit c8a3350cb9

View File

@@ -13,11 +13,77 @@ When it comes to using LXC with Proxmox, there are a few additional consideratio
3. Proxmox-specific Container Management Commands
- Introduce Proxmox-specific commands for managing containers, such as:
- `pct create` - Create a new container.
- `pct start` - Start a container.
- `pct stop` - Stop a container.
- `pct destroy` - Destroy a container.
- `pct list` - List containers.
To organize the Proxmox commands effectively, we can group them into categories based on their function. Here's a structured layout to help you easily navigate and understand the usage of each command:
### 1. Container Lifecycle Management
Commands related to creating, managing, and destroying containers.
- **Create and Clone**
- `pct create <vmid> <ostemplate> [OPTIONS]`
- `pct clone <vmid> <newid> [OPTIONS]`
- **Start and Stop**
- `pct start <vmid> [OPTIONS]`
- `pct stop <vmid> [OPTIONS]`
- `pct shutdown <vmid> [OPTIONS]`
- `pct suspend <vmid>`
- `pct resume <vmid>`
- `pct reboot <vmid> [OPTIONS]`
- **Removal and Cleanup**
- `pct destroy <vmid> [OPTIONS]`
- `pct template <vmid>`
- `pct restore <vmid> <ostemplate> [OPTIONS]`
### 2. Container Configuration and Information
Commands for configuring containers and fetching their information.
- **Configuration**
- `pct config <vmid> [OPTIONS]`
- `pct set <vmid> [OPTIONS]`
- **Information and Listing**
- `pct list`
- `pct status <vmid> [OPTIONS]`
- `pct pending <vmid>`
### 3. Snapshot Management
Commands related to managing snapshots of containers.
- `pct snapshot <vmid> <snapname> [OPTIONS]`
- `pct listsnapshot <vmid>`
- `pct delsnapshot <vmid> <snapname> [OPTIONS]`
- `pct rollback <vmid> <snapname> [OPTIONS]`
### 4. Storage and Volume Management
Commands for managing the storage and volumes of containers.
- **Volume Operations**
- `pct move-volume <vmid> <volume> [<storage>] [<target-vmid>] [<target-volume>] [OPTIONS]`
- `pct resize <vmid> <disk> <size> [OPTIONS]`
- `pct pull <vmid> <path> <destination> [OPTIONS]`
- `pct push <vmid> <file> <destination> [OPTIONS]`
- **Filesystem Operations**
- `pct mount <vmid>`
- `pct unmount <vmid>`
- `pct fsck <vmid> [OPTIONS]`
- `pct fstrim <vmid> [OPTIONS]`
### 5. Migration and Remote Management
Commands for moving containers and interacting remotely.
- **Migration**
- `pct migrate <vmid> <target> [OPTIONS]`
- `pct remote-migrate <vmid> [<target-vmid>] <target-endpoint> --target-bridge <string> --target-storage <string> [OPTIONS]`
- **Remote Interaction**
- `pct console <vmid> [OPTIONS]`
- `pct enter <vmid> [OPTIONS]`
- `pct exec <vmid> [<extra-args>] [OPTIONS]`
### 6. System Utilities and Miscellaneous
Commands related to system-level operations and utilities.
- `pct cpusets`
- `pct df <vmid>`
- `pct rescan [OPTIONS]`
- `pct unlock <vmid>`
### 7. Help and Documentation
- `pct help [<extra-args>] [OPTIONS]`
This categorization should help you find the appropriate command more quickly based on the task you need to perform with your Proxmox container.
- Explain the syntax and provide examples of using these commands.
4. Configuring Container Resources in Proxmox