Skip to content

Latest commit

 

History

History
79 lines (53 loc) · 2.23 KB

README.md

File metadata and controls

79 lines (53 loc) · 2.23 KB

Proxmox Virtual Enviroment Hookscripts

A collection of hookscripts to simplify complex tasks, such using the Intel iGPU in multiple containers. This includes mixins (I hate this word for this) for multiple devices.

These scripts are a work in progress. Issues and pull requests are welcome.

To-do:

  • Automatically restart container after initial configuration
  • Change the word mixin to something better

Hookscripts

Intel_iGPU_multipass.sh

Intel iGPU multi-container passthrough hookscript.

This script automatically configures the host and container to allow the Intel iGPU to be attached to multiple Proxmox containers at the same time.

This hookscript works for protected and unprotected containers.

You can configure a container to use this hookscript this via pct with:

pct set <vmid> -hookscript <storage>:snippets/Intel_iGPU_multipass.sh

Example:

pct set 1000 -hookscript local:snippets/Intel_iGPU_multipass.sh

Known Issues

  • Learn scrypted to figure out if this works or not

Google_Coral_PCIe_multipass.sh

Google Coral PCIe multi-container passthrough hookscript.

This script automatically configures the host and container to allow the PCIe version of a Google Coral TPU to be attached to multiple Proxmox containers at the same time.

This hookscript works for protected and unprotected containers.

You can configure a container to use this hookscript this via pct with:

pct set <vmid> -hookscript <storage>:snippets/Google_Coral_PCIe_multipass.sh

Example:

pct set 1000 -hookscript local:snippets/Google_Coral_PCIe_multipass.sh

Mixins (still hate it)

mixin_iGPU_Coral_PCIe.sh

iGPU & Coral PCIe TPU mixin for multi-container passthrough hookscript.

This script automatically configures the host and container to allow the Intel iGPU and PCIe version of a Google Coral TPU to be attached to multiple Proxmox containers at the same time.

This hookscript will work for protected and unprotected containers.

You can configure a container to use this hookscript this via pct with:

pct set <vmid> -hookscript <storage>:snippets/mixin_iGPU_Coral_PCIe.sh

Example:

pct set 1000 -hookscript local:snippets/mixin_iGPU_Coral_PCIe.sh