From 3f117fb28422dac059d15ba782979e92a60eadbe Mon Sep 17 00:00:00 2001 From: alfi0812 <43101280+alfi0812@users.noreply.github.com> Date: Sat, 23 Nov 2024 16:19:41 +0100 Subject: [PATCH] guide update (#29748) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes # **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** **📃 Notes:** **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning - [ ] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):` or `chore(chart-name):` **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --- .../virtual-machines/truenas-scale.mdx | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/website/src/content/docs/clustertool/virtual-machines/truenas-scale.mdx b/website/src/content/docs/clustertool/virtual-machines/truenas-scale.mdx index f77533b62af..4550b079145 100644 --- a/website/src/content/docs/clustertool/virtual-machines/truenas-scale.mdx +++ b/website/src/content/docs/clustertool/virtual-machines/truenas-scale.mdx @@ -315,3 +315,38 @@ or **GPU1:** Motherboard IPMI GPU **GPU2:** Intel iGPU or dedicated Nvidia GPU isolated within SCALE for VM passthrough + + +### Single GPU pass-through (Advanced) + +:::caution[Work In Progress] + +This requires some knowledge about html and you need to enable developer-mode for it to work. + +::: + +1. Modify the Python file `/usr/lib/python3/dist-packages/middlewared/plugins/system_advanced/gpu.py` +```python +if len(available - provided) < 1: + verrors.add( + f'{schema}.isolated_gpu_pci_ids', + 'A minimum of 1 GPU is required for the host to ensure it functions as desired.' + ) +``` + + Comment Out this section (`# ` in front of every line) + +2. Delete the whole folder `/usr/lib/python3/dist-packages/middlewared/plugins/system_advanced/__pycache__` + +3. Reboot Server or atleast middleware + +4. Go to system> advanced and isolate the gpu. (Button will be greyed out and will show the red error thats totally fine) + +5. Open he Inspect window of your browser and find the button which is greyed out. Should look like this: +```