These are some guides for various use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.8 KiB

  1. # Proxmox
  2. Proxmox is an environment for virtual machines and containers.
  3. ## Disk Management
  4. ### Enlarging disk of a VM
  5. SSH into Proxmox.
  6. Enlarge a disk by using:
  7. ```shell
  8. qm resize <vmid> <vm-disk-to-enlarge> <size>
  9. ```
  10. For example (100G is 100GibiByte):
  11. ```shell
  12. qm resize 100 ide0 +100G
  13. ```
  14. After that grow the filesystem as described in [the disk-management article](disk-management.md).
  15. ## VM passthrough
  16. ### USB passthrough
  17. On the host system find the usb you're looking to pass through with
  18. ```shell
  19. lsusb
  20. ```
  21. Then assign it to the vm using
  22. ```shell
  23. qm set <vm-id> -usb<id-to-set> host=<id-of-the-usb>
  24. ```
  25. for example
  26. ```shell
  27. qm set 101 -usb0 host=aaaa:8816
  28. ```
  29. ### PCI/GPU passthrough
  30. To use GPUs or other PCI devices you need to work with PCI passthrough.
  31. For documentation you can look in the [Proxmox wiki](https://pve.proxmox.com/wiki/Pci_passthrough).
  32. There is also an [article](https://www.reddit.com/r/homelab/comments/b5xpua/the_ultimate_beginners_guide_to_gpu_passthrough)
  33. on reddit, that focusses especially on windows 10 VMs with GPU passthrough.
  34. ## Bugfixing
  35. ### No internet after mainboard swap
  36. If you change the mainboard of your proxmox-virtual-environment it is possible,
  37. that the NIC changes.
  38. Find out the new interface name with `ip a`.
  39. After that get all occurences of the interface (`eth0` in the example) with
  40. `rgrep eth0 /etc` and change them to the new device with a text editor of your
  41. choice.
  42. It is possible that there are also files existing that need to be renamed.
  43. Find them with `find /etc -change '*eth0*'` and move them to the new name.
  44. After that `reboot` and the internet should be up again.
  45. (sources: [debian website](https://wiki.debian.org/NetworkInterfaceNames) and
  46. [proxmox forum](https://forum.proxmox.com/threads/upgrade-motherboard-reinstall.48630))