PVE Reference Manual: Difference between revisions
(11 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
In this section are listed my lessons, notes and learnings about the installation, setup and the usage of Proxmox. most of the sections are based on the [https://www.youtube.com/watch?v=LCjuiIswXGs&list=PLT98CRl2KxKHnlbYhtABg6cF50bYa8Ulo ProxmoxVE Full Course], provided by YouTube channel [https://www.youtube.com/channel/UCxQKHvKbmSzGMvUrVtJYnUA LearnLinuxTV]. The section is named after Proxmox but it constrains much references and information for virtualization in general. | In this section are listed my lessons, notes and learnings about the installation, setup and the usage of Proxmox. most of the sections are based on the [https://www.youtube.com/watch?v=LCjuiIswXGs&list=PLT98CRl2KxKHnlbYhtABg6cF50bYa8Ulo ProxmoxVE Full Course], provided by YouTube channel [https://www.youtube.com/channel/UCxQKHvKbmSzGMvUrVtJYnUA LearnLinuxTV]. The section is named after Proxmox but it constrains much references and information for virtualization in general. | ||
== Getting Started, Installation, Setup and Documentation == | == Getting Started, Installation, Setup and Documentation == | ||
* LearnLinuxTV: [https://youtu.be/LCjuiIswXGs Proxmox VE Full Course: Class 1 - Getting Started] | * LearnLinuxTV: [https://youtu.be/LCjuiIswXGs Proxmox VE Full Course: Class 1 - Getting Started] | ||
Line 14: | Line 13: | ||
* ProxmoxVE Wiki: [https://pve.proxmox.com/wiki/Proxmox_Node_Management Proxmox '''Node Management''' (basics)] | * ProxmoxVE Wiki: [https://pve.proxmox.com/wiki/Proxmox_Node_Management Proxmox '''Node Management''' (basics)] | ||
* ProxmoxVE: [https://pve.proxmox.com/pve-docs/ '''Documentation Index'''] | * ProxmoxVE: [https://pve.proxmox.com/pve-docs/ '''Documentation Index'''] | ||
{{collapse/begin|mw-collapsed mlw-collapsed-list-element}} | |||
* ProxmoxVE: [https://pve.proxmox.com/pve-docs/pve-admin-guide.pdf Administration Guide PVE (PDF)] ([[:File:Pve-admin-guide.pdf|PDF Local Copy]]) | |||
{{collapse/div|#Getting Started, Installation, Setup and Documentation}} | |||
<pdf height="640">Pve-admin-guide.pdf</pdf> | |||
{{collapse/end}} | |||
* ProxmoxVE Documentation at GitHub: [https://github.com/proxmox/pve-docs/blob/master/qm.adoc Qemu/KVM Virtual Machines] (All options within the GUI interface explained) | * ProxmoxVE Documentation at GitHub: [https://github.com/proxmox/pve-docs/blob/master/qm.adoc Qemu/KVM Virtual Machines] (All options within the GUI interface explained) | ||
* BLOG-D Without Nonsense: [https://dannyda.com/2020/05/17/how-to-remove-you-do-not-have-a-valid-subscription-for-this-server-from-proxmox-virtual-environment-6-1-2-proxmox-ve-6-1-2-pve-6-1-2/ How to remove "You do not have a valid subscription..."] | * BLOG-D Without Nonsense: [https://dannyda.com/2020/05/17/how-to-remove-you-do-not-have-a-valid-subscription-for-this-server-from-proxmox-virtual-environment-6-1-2-proxmox-ve-6-1-2-pve-6-1-2/ How to remove "You do not have a valid subscription..."] | ||
* Proxmox Forum: [https://forum.proxmox.com/threads/zfs-vs-lvm-for-proxmox-os-disk.53340/ '''ZFS vs LVM for Proxmox OS disk?'''] | |||
== Containers vs Virtual Machines == | == Containers vs Virtual Machines == | ||
Line 27: | Line 26: | ||
* LearnLinuxTV: [https://youtu.be/JsexhY_gQZY Proxmox VE Full Course: Class 4 - Containers vs Virtual Machines] | * LearnLinuxTV: [https://youtu.be/JsexhY_gQZY Proxmox VE Full Course: Class 4 - Containers vs Virtual Machines] | ||
*The Tinker Dad: [https://youtu.be/hDR_1opHGNQ Docker Containers On Proxmox! (Two Different Ways - No VMs!)] | *The Tinker Dad: [https://youtu.be/hDR_1opHGNQ Docker Containers On Proxmox! (Two Different Ways - No VMs!)] | ||
{{collapse/begin|mw-collapsed mlw-collapsed-list-element}} | |||
* '''LXC vs LXD vs Proxmox Containers vs Docker - [https://pve.proxmox.com/wiki/FAQ ProxmoxVE Wiki: FAQ]''' | |||
{{collapse/div|#LXC vs LXD vs Proxmox Containers vs Docker}} | {{collapse/div|#LXC vs LXD vs Proxmox Containers vs Docker}} | ||
:* LXC is a userspace interface for the Linux kernel containment features. Through a powerful API and simple tools, it lets Linux users easily create and manage system containers. LXC, as well as the former OpenVZ, aims at '''system virtualization'''. Thus, it allows you to run a complete OS inside a container, where you log in using ssh, add users, run apache, etc… | |||
:* LXD is built on top of LXC to provide a new, better user experience. Under the hood, LXD uses LXC through <code>liblxc</code> and its Go binding to create and manage the containers. It’s basically an alternative to LXC’s tools and distribution template system with the added features that come from being controllable over the network. | |||
* LXC is a userspace interface for the Linux kernel containment features. Through a powerful API and simple tools, it lets Linux users easily create and manage system containers. LXC, as well as the former OpenVZ, aims at '''system virtualization'''. Thus, it allows you to run a complete OS inside a container, where you log in using ssh, add users, run apache, etc… | :* Proxmox Containers are how we refer to containers that are created and managed using the Proxmox Container Toolkit (<code>pct</code>). They also target '''system virtualization''' and use LXC as the basis of the container offering. The Proxmox Container Toolkit (<code>pct</code>) is tightly coupled with Proxmox VE. This means that it is aware of cluster setups, and it can use the same network and storage resources as QEMU virtual machines (VMs). You can even use the Proxmox VE firewall, create and restore backups, or manage containers using the HA framework. Everything can be controlled over the network using the Proxmox VE API. | ||
:* Docker aims at running a '''single''' application in an isolated, self-contained environment. These are generally referred to as “Application Containers”, rather than “System Containers”. You manage a Docker instance from the host, using the Docker Engine command line interface. It is not recommended to run docker directly on your Proxmox VE host. | |||
* LXD is built on top of LXC to provide a new, better user experience. Under the hood, LXD uses LXC through <code>liblxc</code> and its Go binding to create and manage the containers. It’s basically an alternative to LXC’s tools and distribution template system with the added features that come from being controllable over the network. | :* If you want to run application containers, for example, ''Docker'' images, it is best to run them inside a Proxmox Qemu VM. | ||
* Proxmox Containers are how we refer to containers that are created and managed using the Proxmox Container Toolkit (<code>pct</code>). They also target '''system virtualization''' and use LXC as the basis of the container offering. The Proxmox Container Toolkit (<code>pct</code>) is tightly coupled with Proxmox VE. This means that it is aware of cluster setups, and it can use the same network and storage resources as QEMU virtual machines (VMs). You can even use the Proxmox VE firewall, create and restore backups, or manage containers using the HA framework. Everything can be controlled over the network using the Proxmox VE API. | |||
* Docker aims at running a '''single''' application in an isolated, self-contained environment. These are generally referred to as “Application Containers”, rather than “System Containers”. You manage a Docker instance from the host, using the Docker Engine command line interface. It is not recommended to run docker directly on your Proxmox VE host. | |||
* If you want to run application containers, for example, ''Docker'' images, it is best to run them inside a Proxmox Qemu VM. | |||
{{collapse/end}} | {{collapse/end}} | ||
Line 56: | Line 50: | ||
**[[PVE IOMMU Isolation for Passthrough]] | **[[PVE IOMMU Isolation for Passthrough]] | ||
**[[PVE Adopt a KVM Windows Guest]] | **[[PVE Adopt a KVM Windows Guest]] | ||
**[[QEMU/KVM | **[[QEMU/KVM GPU Passthrough Setup Windows Guest for RDP]] | ||
**[[KVM and GPU Passthrough | **[[QEMU/KVM and GPU Passthrough in Details]] | ||
== Creating Containers and CT Templates == | == Creating Containers and CT Templates == | ||
Line 106: | Line 100: | ||
* Proxmox Forum: [https://forum.proxmox.com/threads/putting-hdd-to-sleep.62367/ Putting HDD to sleep] | * Proxmox Forum: [https://forum.proxmox.com/threads/putting-hdd-to-sleep.62367/ Putting HDD to sleep] | ||
* Proxmox Forum: [https://forum.proxmox.com/threads/disk-prevent-from-spinning-down-because-of-pvestatd.53237/ Disk prevent from spinning down because of pvestatd] | * Proxmox Forum: [https://forum.proxmox.com/threads/disk-prevent-from-spinning-down-because-of-pvestatd.53237/ Disk prevent from spinning down because of pvestatd] | ||
* [[PVE HDD Sleep]] | * [[PVE HDD Sleep (Suspend)]] | ||
<noinclude> | <noinclude> | ||
<div id='devStage'> | <div id='devStage'> |
Latest revision as of 10:59, 3 September 2022
In this section are listed my lessons, notes and learnings about the installation, setup and the usage of Proxmox. most of the sections are based on the ProxmoxVE Full Course, provided by YouTube channel LearnLinuxTV. The section is named after Proxmox but it constrains much references and information for virtualization in general.
Getting Started, Installation, Setup and Documentation
- LearnLinuxTV: Proxmox VE Full Course: Class 1 – Getting Started
- LearnLinuxTV: Proxmox VE Full Course: Class 2 – Installation Process
- LearnLinuxTV: Proxmox VE Full Course: Class 3 – Web Console Overview
- Proxmox HHS: Proxmox VE Beginner Tutorial – Installing Proxmox and Creating a virtual machine
- This Wiki: PVE SSH Key Based Authentication
- This Wiki: PVE Basic CLI Commands
- ProxmoxVE Wiki: Installation
- ProxmoxVE Wiki: Proxmox Node Management (basics)
- ProxmoxVE: Documentation Index
- ProxmoxVE: Administration Guide PVE (PDF) (PDF Local Copy)
- ProxmoxVE Documentation at GitHub: Qemu/KVM Virtual Machines (All options within the GUI interface explained)
- BLOG‑D Without Nonsense: How to remove "You do not have a valid subscription…"
- Proxmox Forum: ZFS vs LVM for Proxmox OS disk?
Containers vs Virtual Machines
- LearnLinuxTV: Proxmox VE Full Course: Class 4 – Containers vs Virtual Machines
- The Tinker Dad: Docker Containers On Proxmox! (Two Different Ways – No VMs!)
- LXC vs LXD vs Proxmox Containers vs Docker – ProxmoxVE Wiki: FAQ
- LXC is a userspace interface for the Linux kernel containment features. Through a powerful API and simple tools, it lets Linux users easily create and manage system containers. LXC, as well as the former OpenVZ, aims at system virtualization. Thus, it allows you to run a complete OS inside a container, where you log in using ssh, add users, run apache, etc…
- LXD is built on top of LXC to provide a new, better user experience. Under the hood, LXD uses LXC through
liblxc
and its Go binding to create and manage the containers. It’s basically an alternative to LXC’s tools and distribution template system with the added features that come from being controllable over the network. - Proxmox Containers are how we refer to containers that are created and managed using the Proxmox Container Toolkit (
pct
). They also target system virtualization and use LXC as the basis of the container offering. The Proxmox Container Toolkit (pct
) is tightly coupled with Proxmox VE. This means that it is aware of cluster setups, and it can use the same network and storage resources as QEMU virtual machines (VMs). You can even use the Proxmox VE firewall, create and restore backups, or manage containers using the HA framework. Everything can be controlled over the network using the Proxmox VE API. - Docker aims at running a single application in an isolated, self-contained environment. These are generally referred to as “Application Containers”, rather than “System Containers”. You manage a Docker instance from the host, using the Docker Engine command line interface. It is not recommended to run docker directly on your Proxmox VE host.
- If you want to run application containers, for example, Docker images, it is best to run them inside a Proxmox Qemu VM.
Creating Virtual Machines and VM Templates
- LearnLinuxTV: Proxmox VE Full Course: Class 5 – Launching a Virtual Machine
- LearnLinuxTV: Proxmox VE Full Course: Class 6 – Creating Virtual Machine Templates
- pve:Migration of servers to Proxmox VE
- PVE Create VM Template
- PVE Adopt a KVM Ubuntu Guest
- PVE Adopt a Native Ubuntu Server
- GPU Passthrough for Windows 10/11
- LearnLinuxTV: Launching a Windows VM in Proxmox
- Reddit: The Ultimate Beginner's Guide to GPU Passthrough (Proxmox, Windows 10) (Local copy as PDF)
- PVE IOMMU Isolation for Passthrough
- PVE Adopt a KVM Windows Guest
- QEMU/KVM GPU Passthrough Setup Windows Guest for RDP
- QEMU/KVM and GPU Passthrough in Details
Creating Containers and CT Templates
- LearnLinuxTV: Proxmox VE Full Course: Class 7 – Creating Containers
- LearnLinuxTV: Proxmox VE Full Course: Class 8 – Creating Container Templates
- The Tinker Dad: Docker Containers On Proxmox! (Two Different Ways – No VMs!)
- ProxmoxVE Wiki: Linux Container | Guest OS Configuration
In order to disable the automatic setting of the container hostname we cam do the following inside the Guest OS:
sudo touch /etc/.pve-ignore.hosts
sudo touch /etc/.pve-ignore.hostname
Clustering
- LearnLinuxTV: Proxmox VE Full Course: Class 15 – Clustering
- GriffethBarkerTech: How to Fix “Cluster Not Ready – No Quorum?” in Proxmox
It is important when you create PVE VM instance that is a part of a cluster to set pvecm expected 1
at the main node (the physical PVE), otherwise that node will not run correctly while the VM is not started… which will be not possible, because of the status: Cluster Not Ready – No Quorum?
Proxmox Backup Server
- LearnLinuxTV: Proxmox Backup Server – Full Getting Started Guide!
LVM Maintenance
- Proxmox Forum: Removing Snapshots CLI
- Linux Hint: LVM: How to List and Selectively Remove Snapshots
Delete LVM Snapshots
Find all Snapshots attached to VMS/LXC:
for v in $(qm list|egrep -v VMID|awk '{print $1}'); do \
for s in $(qm listsnapshot $v|egrep -v current|awk '{print $2}'); do \
echo qm delsnapshot $v $s; \
done; \
done
When the snapshot is not attached (i.e. the VM was removed): 1) list all logical volumes; 2) find whish snapshot is not needed and 3) remove it.
vgs # scan the volume groups
lvs # list logical volumes - analyse the output
lvremove /dev/<volume group>/<logical volume of the snapshot>
HDD Sleep
- Proxmox Forum: Putting HDD to sleep
- Proxmox Forum: Disk prevent from spinning down because of pvestatd
- PVE HDD Sleep (Suspend)