Skip to content

Commit

Permalink
guide update (#29748)
Browse files Browse the repository at this point in the history
**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->
⚒️ Fixes  # <!--(issue)-->

**⚙️ 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?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ 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._
  • Loading branch information
alfi0812 authored Nov 23, 2024
1 parent 90f3f3d commit 3f117fb
Showing 1 changed file with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
```<button mat-button="" type="submit" color="primary" ixtest="save" mat-ripple-loader-uninitialized="" mat-ripple-loader-class-name="mat-mdc-button-ripple" class="mdc-button mat-mdc-button mat-primary mat-mdc-button-disabled mat-mdc-button-base ng-star-inserted" mat-ripple-loader-disabled="" disabled="true" data-test="button-save">```

6. Remove `"disabled="true"` and `mat-mdc-button-disabled`

7. The error will still be there but you should be able to click the button

Might need to do the same Steps 5 and 6 when assigning the gpu to the VM.

0 comments on commit 3f117fb

Please sign in to comment.