mirror of
https://github.com/tiyn/wiki.git
synced 2025-11-07 05:31:17 +01:00
proxmox: moving to linux and adding motherboard swap nic error
This commit is contained in:
67
wiki/linux/proxmox.md
Normal file
67
wiki/linux/proxmox.md
Normal file
@@ -0,0 +1,67 @@
|
||||
# Proxmox
|
||||
|
||||
Proxmox is an environment for virtual machines and containers.
|
||||
|
||||
## Disk Management
|
||||
|
||||
### Enlarging disk of a VM
|
||||
|
||||
SSH into Proxmox.
|
||||
Enlarge a disk by using:
|
||||
|
||||
```shell
|
||||
qm resize <vmid> <vm-disk-to-enlarge> <size>
|
||||
```
|
||||
|
||||
For example:
|
||||
|
||||
```shell
|
||||
qm resize 100 ide0 +100G
|
||||
```
|
||||
|
||||
After that grow the filesystem as described in [the disk-management article](linux/disk-management.md).
|
||||
|
||||
## VM passthrough
|
||||
|
||||
### USB passthrough
|
||||
|
||||
On the host system find the usb you're looking to pass through with
|
||||
|
||||
```shell
|
||||
lsusb
|
||||
```
|
||||
|
||||
Then assign it to the vm using
|
||||
|
||||
```shell
|
||||
qm set <vm-id> -usb<id-to-set> host=<id-of-the-usb>
|
||||
```
|
||||
|
||||
for example
|
||||
|
||||
```shell
|
||||
qm set 101 -usb0 host=aaaa:8816
|
||||
```
|
||||
|
||||
### PCI/GPU passthrough
|
||||
|
||||
To use GPUs or other PCI devices you need to work with PCI passthrough.
|
||||
For documentation you can look in the [Proxmox wiki](https://pve.proxmox.com/wiki/Pci_passthrough).
|
||||
There is also an [article](https://www.reddit.com/r/homelab/comments/b5xpua/the_ultimate_beginners_guide_to_gpu_passthrough)
|
||||
on reddit, that focusses especially on windows 10 VMs with GPU passthrough.
|
||||
|
||||
## Bugfixing
|
||||
|
||||
### No internet after mainboard swap
|
||||
|
||||
If you change the mainboard of your proxmox-virtual-environment it is possible,
|
||||
that the NIC changes.
|
||||
Find out the new interface name with `ip a`.
|
||||
After that get all occurences of the interface (`eth0` in the example) with
|
||||
`rgrep eth0 /etc` and change them to the new device with a text editor of your
|
||||
choice.
|
||||
It is possible that there are also files existing that need to be renamed.
|
||||
Find them with `find /etc -change '*eth0*'` and move them to the new name.
|
||||
After that `reboot` and the internet should be up again.
|
||||
(sources: [debian website](https://wiki.debian.org/NetworkInterfaceNames) and
|
||||
[proxmox forum](https://forum.proxmox.com/threads/upgrade-motherboard-reinstall.48630))
|
||||
Reference in New Issue
Block a user