site updates
This commit is contained in:
117
tech_docs/virtualization/proxmox.md
Normal file
117
tech_docs/virtualization/proxmox.md
Normal file
@@ -0,0 +1,117 @@
|
||||
Great! It seems like you're working on an advanced use case of Linux containers using Proxmox. The provided LXC and cgroups administration reference guide is a solid foundation for understanding and managing containers.
|
||||
|
||||
When it comes to using LXC with Proxmox, there are a few additional considerations and Proxmox-specific commands that can be included in your guide. Here are some suggestions to enhance your guide:
|
||||
|
||||
1. Installing Proxmox
|
||||
- Provide instructions on installing Proxmox on a bare-metal server or a virtual machine.
|
||||
- Cover the system requirements and installation process specific to Proxmox.
|
||||
|
||||
2. Creating and Managing Containers in Proxmox
|
||||
- Explain how to create containers using the Proxmox web interface or command-line tools.
|
||||
- Provide examples of creating containers from ISO images or templates.
|
||||
- Cover container configuration options available in Proxmox, such as resource allocation, network settings, and storage.
|
||||
|
||||
3. Proxmox-specific Container Management Commands
|
||||
- Introduce Proxmox-specific commands for managing containers, such as:
|
||||
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
|
||||
- Describe how to configure container resources, such as CPU, memory, and disk, using Proxmox's web interface or command-line tools.
|
||||
- Cover the use of Proxmox's "Cores," "Memory," and "Disk" configuration options.
|
||||
- Explain how Proxmox leverages cgroups for resource management and isolation.
|
||||
|
||||
5. Networking in Proxmox Containers
|
||||
- Discuss the networking options available for containers in Proxmox, such as bridged, NAT, and VLAN modes.
|
||||
- Provide examples of configuring network interfaces and firewall rules for containers.
|
||||
|
||||
6. Storage Management for Containers
|
||||
- Explain how to manage storage for containers in Proxmox, including creating and attaching storage volumes.
|
||||
- Cover the different storage types supported by Proxmox, such as local storage, network storage (NFS, iSCSI), and distributed storage (Ceph).
|
||||
|
||||
7. Backup and Restoration of Containers
|
||||
- Provide instructions on backing up and restoring containers using Proxmox's built-in backup tools.
|
||||
- Explain how to schedule regular backups and configure retention policies.
|
||||
|
||||
8. Monitoring and Troubleshooting
|
||||
- Discuss the monitoring features available in Proxmox for containers, such as resource usage graphs and logs.
|
||||
- Provide troubleshooting tips specific to Proxmox containers, such as common error messages and their solutions.
|
||||
|
||||
9. Advanced Topics
|
||||
- Cover advanced topics relevant to your use case, such as:
|
||||
- Clustering and high availability for containers.
|
||||
- Integration with other tools and services (e.g., Kubernetes, Docker).
|
||||
- Performance tuning and optimization.
|
||||
- Security best practices for Proxmox containers.
|
||||
|
||||
By incorporating these Proxmox-specific elements into your guide, you'll provide a comprehensive resource for advanced Linux container usage with Proxmox. Make sure to include relevant commands, configuration examples, and best practices throughout the guide to make it practical and easy to follow.
|
||||
73
tech_docs/virtualization/proxmox_dhcp.md
Normal file
73
tech_docs/virtualization/proxmox_dhcp.md
Normal file
@@ -0,0 +1,73 @@
|
||||
For your standalone Proxmox setup, switching between static and dynamic IP configurations and managing virtual bridges are important tasks. Below, I'll provide a concise guide to handle these changes effectively and safely.
|
||||
|
||||
### Switching from Static IP to DHCP:
|
||||
|
||||
- **Backup Configurations:** Always backup configuration files before making changes (`cp /etc/network/interfaces /etc/network/interfaces.bak`).
|
||||
|
||||
```bash
|
||||
cp /etc/network/interfaces /etc/network/interfaces.bak
|
||||
```
|
||||
|
||||
**Update Network Interface Configuration:**
|
||||
Open `/etc/network/interfaces` in a text editor:
|
||||
```bash
|
||||
vim /etc/network/interfaces
|
||||
```
|
||||
- Change the `vmbr0` configuration from static to DHCP:
|
||||
```bash
|
||||
auto vmbr0
|
||||
iface vmbr0 inet dhcp
|
||||
bridge-ports enp3s0
|
||||
bridge-stp off
|
||||
bridge-fd 0
|
||||
```
|
||||
- Save the changes and exit the editor.
|
||||
|
||||
- **Restart Networking to Apply Changes:**
|
||||
- Apply the new network settings:
|
||||
```bash
|
||||
systemctl restart networking
|
||||
```
|
||||
|
||||
- **Find the New DHCP-Assigned IP Address:**
|
||||
- After the network restarts, check the assigned IP:
|
||||
```bash
|
||||
ip addr show vmbr0
|
||||
```
|
||||
|
||||
- **Update `/etc/hosts` with the New IP:**
|
||||
- Edit the `/etc/hosts` file to replace the old static IP with the new one:
|
||||
```bash
|
||||
nano /etc/hosts
|
||||
```
|
||||
- Modify the line with the old IP to the new one you just obtained:
|
||||
```plaintext
|
||||
192.168.86.62 whitebox.foxtrot.lan whitebox # Old IP
|
||||
192.168.x.x whitebox.foxtrot.lan whitebox # New DHCP IP
|
||||
```
|
||||
- Save and exit.
|
||||
|
||||
### Creating a New Virtual Bridge (`vmbrX`):
|
||||
|
||||
- **Add a New Virtual Bridge Configuration:**
|
||||
- Edit `/etc/network/interfaces`:
|
||||
```bash
|
||||
vim /etc/network/interfaces
|
||||
```
|
||||
- Add a new bridge configuration at the end of the file:
|
||||
```bash
|
||||
auto vmbrX # Replace X with the next available number
|
||||
iface vmbrX inet manual
|
||||
bridge-ports none
|
||||
bridge-stp off
|
||||
bridge-fd 0
|
||||
```
|
||||
- Save and exit the editor.
|
||||
|
||||
- **Activate the New Bridge:**
|
||||
- Restart the networking service to bring up the new bridge:
|
||||
```bash
|
||||
systemctl restart networking
|
||||
```
|
||||
|
||||
### General Notes:
|
||||
2642
tech_docs/virtualization/proxmox_docs.md
Normal file
2642
tech_docs/virtualization/proxmox_docs.md
Normal file
File diff suppressed because it is too large
Load Diff
1095
tech_docs/virtualization/proxmox_virtualmachines.md
Normal file
1095
tech_docs/virtualization/proxmox_virtualmachines.md
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user