Doc¶
qm¶
https://pve.proxmox.com/pve-docs-7/qm.1.html
qm list
qm reset/stop # immediately
qm reboot/shutdown # clean
Boot¶
Serial: follow debian
pve-efiboot-tool kernel list
pve-efiboot-tool refresh
apt¶
https://pve.proxmox.com/wiki/Package_Repositories#sysadmin_no_subscription_repo
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription # 8.x
Storage¶
https://pve.proxmox.com/wiki/Storage or
- zfs : file + block
cat /etc/pve/storage.cfg
nfs¶
pvesm scan nfs 192.168.88.8
vi /etc/pve/storage.cfg # {IP}/pve-docs/chapter-pvesm.html
pvesm remove iso-templates # rm above added lines
pvesm status # create /template on NAS if `Permission denied` on PVE
grep nfs /proc/mount
Disk¶
dmsetup ls --tree
lvs
import¶
qm disk import 100 x.img local-lvm # webUI: add disk & boot order
raw disk map¶
https://pve.proxmox.com/wiki/Passthrough_Physical_Disk_to_Virtual_Machine_(VM)
find /dev/disk/by-id/ -type l|xargs -I{} ls -l {}|grep -v -E '[0-9]$' |sort -k11|cut -d' ' -f9,10,11,12
qm set 100 -scsi2 /dev/disk/by-id/ata-... # add
qm unlink 100 --idlist scsi2
PCI Passthrough¶
GPU¶
https://pve.proxmox.com/wiki/PCI_Passthrough
SR-IOV¶
https://github.com/strongtz/i915-sriov-dkms
apt install -y sysfsutils && cat /etc/sysfs.conf | grep -v ^#
cd /sys/devices/pci0000:00/0000:00:02.0 && grep '' sriov*
dmesg | grep VF
lspci | grep VGA
Windows Guest: All Functions + Advanced(click all)
NUMA¶
https://pve.proxmox.com/wiki/NUMA
numactl --hardware # both host & vm