# Useful Proxmox commands

#### Useful Proxmox commands/scripts

[`pct`](https://pve.proxmox.com/pve-docs/pct.1.html) `cpusets`  
Prints the assigned CPU sets to the LXC containers.

---

`systemctl status <VMID>.scope`  
Displays the process of a specific VM

---

`lscpu -e`  
Prints CPU topology  
[More details](https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#Performance_tuning)

---

`qm showcmd <VMID>`  
Displays the command that Proxmox generates for a given VM

---

`proxmox-boot-tool`

Can select/list/pin kernels with PVE 7.2

---

If a backup fails with something like:

` tar: ./var/lib/dpkg/info/libdebconfclient0\:amd64.shlibs: Cannot stat: Bad message`

Then probably there is an issue with the underlying filesystem of that specific vm/container.

To fix it ssh into the server, find the container and run:

`fsck /dev/mapper/sdd--1TB-vm--100--disk--0`