ubuntu:gpu:gpu_pass-through
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:gpu:gpu_pass-through [2023/06/25 11:13] – created peter | ubuntu:gpu:gpu_pass-through [2023/06/25 11:32] (current) – peter | ||
---|---|---|---|
Line 5: | Line 5: | ||
---- | ---- | ||
- | ===== Verify the host environment supports | + | [[Ubuntu: |
- | TODO: | + | [[Ubuntu:GPU:GPU pass-through: |
- | |||
- | ---- | ||
- | |||
- | ===== Enable IOMMU ===== | ||
- | |||
- | **IOMMU** is usually disabled by default. | ||
- | |||
- | * It needs to be enable at boot time in the **/ | ||
- | |||
- | For AMD-based hosts: | ||
- | |||
- | <file bash / | ||
- | GRUB_CMDLINE_LINUX=" | ||
- | </ | ||
- | |||
- | For Intel-based hosts: | ||
- | |||
- | <file bash / | ||
- | GRUB_CMDLINE_LINUX=" | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Re-generate the main GRUB 2 configuration file ===== | ||
- | |||
- | The GRUB 2 configuration file is **/ | ||
- | |||
- | <code bash> | ||
- | sudo grub2-mkconfig -o / | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Reboot ===== | ||
- | |||
- | |||
- | ---- | ||
- | |||
- | ===== Verify that IOMMU is enabled ===== | ||
- | |||
- | <code bash> | ||
- | sudo dmesg | grep -e DMAR -e IOMMU | ||
- | </ | ||
- | |||
- | returns: | ||
- | |||
- | <code bash> | ||
- | [ 2.172228] pci 0000: | ||
- | [ 2.176588] pci 0000: | ||
- | [ 2.176924] perf/ | ||
- | [ 3.875165] AMD-Vi: AMD IOMMUv2 loaded and initialized | ||
- | </ | ||
- | |||
- | ---- | ||
ubuntu/gpu/gpu_pass-through.1687691591.txt.gz · Last modified: 2023/06/25 11:13 by peter