• [törölve]

  • Szerkesztve

liSSnEDux

Úgy látszik jogosultsági problémák miatt a git clone nem szedi le, így minden scriptet neked kell kézzel létrehoznod.

Itt van a systemd unit script amit keresel:
https://gitlab.com/risingprismtv/single-gpu-passthrough/-/blob/master/systemd-no-sleep/libvirt-nosleep%40.service

Ha létrehozol mindent amit kell, akkor le fog futni azinstall_hooks.sh

Közben most észre vettem, hogy csak SSH-n nem megy a git clone, viszont https-en igen.

Próbáld meg így:
git clone https://gitlab.com/risingprismtv/single-gpu-passthrough.git

Cloning into 'single-gpu-passthrough'...
remote: Enumerating objects: 197, done.
remote: Counting objects: 100% (179/179), done.
remote: Compressing objects: 100% (94/94), done.
remote: Total 197 (delta 87), reused 164 (delta 81), pack-reused 18
Receiving objects: 100% (197/197), 53.73 KiB | 26.86 MiB/s, done.
Resolving deltas: 100% (94/94), done.

cd single-gpu-passthrough/
./install_hooks.sh

Nézd most itt van és nem üres:

root@ASUS-PC:~/single-gpu-passthrough# cat systemd-no-sleep/libvirt-nosleep@.service 
[Unit]
Description=Preventing sleep while libvirt domain "%i" is running

[Service]
Type=simple
ExecStart=/usr/bin/systemd-inhibit --what=sleep --why="Libvirt domain \"%i\" is running" --who=%U --mode=block sleep infinity
root@ASUS-PC:~/single-gpu-passthrough# 

Szerintem te csak a fő scriptet "install_hooks.sh" futtattad le és az összes többi hiányzik.

  • [törölve]

Ezek is előkerültek:

root@ASUS-PC:~/single-gpu-passthrough# ls hooks/
qemu  vfio-startup.sh  vfio-teardown.sh

🚀

elvileg a scriptek rendben, de valamit az apparmoral elrontottam sztem

    • [törölve]

    liSSnEDux

    Írtam, hogy az apparmort egyelőre ne kapcsold vissza..

    • [törölve]

    • Szerkesztve

    liSSnEDux

    Valamiért nem tud átkapcsolni a HDMI kép a hostról a VM-re.
    Vagy átvált de nem jól.

    Nézd át újra, hogy minden lépést megcsináltál e pl spice konzol letiltva stb.

    3 dolgot véltem felfedezni.

    1. Nekem eddig a GRUB-ba be volt írva a video=efifb:off a próbálgatások miatt egyenlőre kiszedtem de majd biztos vissza fogom tenni

      2.
      A rom file rossz helyre volt beírva... nem a gpu-hoz hanem a gpu audióhoz
      Helyesen:


      3.
      Az Overview-nál pedig amigratable='off' vagy migratable='on' legyen? Mert ahogy a howto kéri hogy az ne legyen ott az nem lehetsges mert visszaírja

    Nem akarok fölösleges köröket futni, szerinted mit tegyek?

    • [törölve]

    • Szerkesztve

    1) Próbálni kell efifb-el és az nélkül is de elvileg AMD-nél jó ha ott van azt írja.

    2) Pipa

    3) Amikor kilépsz a szerkesztőből, a virsh api értesíti a libvirtd-t, hogy a fájl megváltozott. A következő vendég újraindítás az új értékeket fogja használni.

    Mivel sok a hiányosság nálad és maga ez az 1 éves script működése is kérdéses így neked kell eldöntened, hogy mennyi kört áldozol rá. Én a saját rendszerem ezért most nem kezdem el szét buherálni vele szal csak így látatlanba tudok segíteni és abban bízva, hogy mindent jól csinálsz.

      Van 2 log file custom_hooks.log és a libvirtd.log
      Azokat gondolom érdemes megnézni

      custom_hooks.log

      08/04/2022 15:55:00 : Display Manager is not KDE!
      08/04/2022 15:55:00 : Distro is using Systemd
      08/04/2022 15:55:00 : Display Manager = gdm3
      08/04/2022 15:55:00 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/04/2022 15:55:00 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      08/04/2022 15:55:00 : AMD GPU Drivers Unloaded
      08/04/2022 15:55:00 : End of Startup!
      08/04/2022 15:55:03 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/04/2022 15:55:03 : Loading AMD GPU Drivers
      08/04/2022 15:55:03 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/04/2022 15:55:03 : Var has been collected from file: gdm3
      08/04/2022 15:55:03 : Rebinding console 1
      08/04/2022 15:55:03 : End of Teardown!
      08/04/2022 15:55:29 : Beginning of Startup!
      08/04/2022 15:55:29 : Display Manager is not KDE!
      08/04/2022 15:55:29 : Distro is using Systemd
      08/04/2022 15:55:29 : Display Manager = gdm3
      08/04/2022 15:55:29 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/04/2022 15:55:29 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      08/04/2022 15:55:29 : AMD GPU Drivers Unloaded
      08/04/2022 15:55:29 : End of Startup!
      08/04/2022 15:55:31 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/04/2022 15:55:31 : Loading AMD GPU Drivers
      08/04/2022 15:55:31 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/04/2022 15:55:31 : Var has been collected from file: gdm3
      08/04/2022 15:55:31 : Rebinding console 1
      08/04/2022 15:55:31 : End of Teardown!
      08/04/2022 16:02:02 : Beginning of Startup!
      08/04/2022 16:02:02 : Display Manager is not KDE!
      08/04/2022 16:02:02 : Distro is using Systemd
      08/04/2022 16:02:02 : Display Manager = gdm3
      08/04/2022 16:02:02 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/04/2022 16:02:02 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      08/04/2022 16:02:02 : AMD GPU Drivers Unloaded
      08/04/2022 16:02:02 : End of Startup!
      08/04/2022 16:02:05 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/04/2022 16:02:05 : Loading AMD GPU Drivers
      08/04/2022 16:02:05 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/04/2022 16:02:05 : Var has been collected from file: gdm3
      08/04/2022 16:02:05 : Rebinding console 1
      08/04/2022 16:02:05 : End of Teardown!
      08/04/2022 16:22:54 : Beginning of Startup!
      08/04/2022 16:22:54 : Display Manager is not KDE!
      08/04/2022 16:22:54 : Distro is using Systemd
      08/04/2022 16:22:54 : Display Manager = gdm3
      08/04/2022 16:22:54 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/04/2022 16:22:54 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      modprobe: FATAL: Module amdgpu is in use.
      modprobe: FATAL: Module drm is in use.
      08/04/2022 16:22:54 : AMD GPU Drivers Unloaded
      08/04/2022 16:22:54 : End of Startup!
      08/04/2022 16:22:56 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/04/2022 16:22:56 : Loading AMD GPU Drivers
      08/04/2022 16:22:56 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/04/2022 16:22:56 : Var has been collected from file: gdm3
      08/04/2022 16:22:56 : Rebinding console 1
      08/04/2022 16:22:56 : End of Teardown!
      08/04/2022 16:53:05 : Beginning of Startup!
      08/04/2022 16:53:05 : Display Manager is not KDE!
      08/04/2022 16:53:05 : Distro is using Systemd
      08/04/2022 16:53:05 : Display Manager = gdm3
      08/04/2022 16:53:05 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/04/2022 16:53:05 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0008/04/2022 18:40:57 : Beginning of Startup!
      08/04/2022 18:40:57 : Display Manager is not KDE!
      08/04/2022 18:40:57 : Distro is using Systemd
      08/04/2022 18:40:57 : Display Manager = gdm3
      08/04/2022 18:40:57 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/04/2022 18:40:57 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      modprobe: FATAL: Module amdgpu is in use.
      modprobe: FATAL: Module drm is in use.
      08/04/2022 18:40:57 : AMD GPU Drivers Unloaded
      08/04/2022 18:40:57 : End of Startup!
      08/04/2022 18:41:00 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/04/2022 18:41:00 : Loading AMD GPU Drivers
      08/04/2022 18:41:00 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/04/2022 18:41:00 : Var has been collected from file: gdm3
      08/04/2022 18:41:00 : Rebinding console 1
      08/04/2022 18:41:00 : End of Teardown!
      08/04/2022 18:42:57 : Beginning of Startup!
      08/04/2022 18:42:57 : Display Manager is not KDE!
      08/04/2022 18:42:57 : Distro is using Systemd
      08/04/2022 18:42:57 : Display Manager = gdm3
      08/04/2022 18:42:57 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/04/2022 18:42:57 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      08/04/2022 18:42:57 : AMD GPU Drivers Unloaded
      08/04/2022 18:42:57 : End of Startup!
      08/04/2022 18:43:00 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/04/2022 18:43:00 : Loading AMD GPU Drivers
      08/04/2022 18:43:00 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/04/2022 18:43:00 : Var has been collected from file: gdm3
      08/04/2022 18:43:00 : Rebinding console 1
      08/04/2022 18:43:00 : End of Teardown!
      08/04/2022 21:43:59 : Beginning of Startup!
      08/04/2022 21:43:59 : Display Manager is not KDE!
      08/04/2022 21:43:59 : Distro is using Systemd
      08/04/2022 21:43:59 : Display Manager = gdm3
      08/04/2022 21:43:59 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/04/2022 21:43:59 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      08/04/2022 21:43:59 : AMD GPU Drivers Unloaded
      08/04/2022 21:43:59 : End of Startup!
      08/04/2022 21:44:12 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/04/2022 21:44:12 : Loading AMD GPU Drivers
      08/04/2022 21:44:12 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/04/2022 21:44:12 : Var has been collected from file: gdm3
      08/04/2022 21:44:12 : Rebinding console 1
      08/04/2022 21:44:12 : End of Teardown!
      08/04/2022 21:46:42 : Beginning of Startup!
      08/04/2022 21:46:42 : Display Manager is not KDE!
      08/04/2022 21:46:42 : Distro is using Systemd
      08/04/2022 21:46:42 : Display Manager = gdm3
      08/04/2022 21:46:42 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/04/2022 21:46:42 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      08/04/2022 21:46:42 : AMD GPU Drivers Unloaded
      08/04/2022 21:46:42 : End of Startup!
      08/04/2022 21:46:46 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/04/2022 21:46:46 : Loading AMD GPU Drivers
      08/04/2022 21:46:46 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/04/2022 21:46:46 : Var has been collected from file: gdm3
      08/04/2022 21:46:46 : Rebinding console 1
      08/04/2022 21:46:46 : End of Teardown!
      08/04/2022 21:49:07 : Beginning of Startup!
      08/04/2022 21:49:07 : Display Manager is not KDE!
      08/04/2022 21:49:07 : Distro is using Systemd
      08/04/2022 21:49:07 : Display Manager = gdm3
      08/04/2022 21:49:07 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/04/2022 21:49:07 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      08/04/2022 21:49:07 : AMD GPU Drivers Unloaded
      08/04/2022 21:49:07 : End of Startup!
      08/04/2022 21:49:10 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/04/2022 21:49:10 : Loading AMD GPU Drivers
      08/04/2022 21:49:10 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/04/2022 21:49:10 : Var has been collected from file: gdm3
      08/04/2022 21:49:10 : Rebinding console 1
      08/04/2022 21:49:10 : End of Teardown!
      08/04/2022 21:50:35 : Beginning of Startup!
      08/04/2022 21:50:35 : Display Manager is not KDE!
      08/04/2022 21:50:35 : Distro is using Systemd
      08/04/2022 21:50:35 : Display Manager = gdm3
      08/04/2022 21:50:35 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/04/2022 21:50:35 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      08/04/2022 21:50:35 : AMD GPU Drivers Unloaded
      08/04/2022 21:50:35 : End of Startup!
      08/04/2022 21:50:40 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/04/2022 21:50:40 : Loading AMD GPU Drivers
      08/04/2022 21:50:40 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/04/2022 21:50:40 : Var has been collected from file: gdm3
      08/04/2022 21:50:40 : Rebinding console 1
      08/04/2022 21:50:40 : End of Teardown!
      08/05/2022 11:44:52 : Beginning of Startup!
      08/05/2022 11:44:52 : Display Manager is not KDE!
      08/05/2022 11:44:52 : Distro is using Systemd
      08/05/2022 11:44:52 : Display Manager = gdm3
      08/05/2022 11:44:52 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/05/2022 11:44:52 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      modprobe: FATAL: Module amdgpu is in use.
      modprobe: FATAL: Module drm is in use.
      08/05/2022 11:44:52 : AMD GPU Drivers Unloaded
      08/05/2022 11:44:52 : End of Startup!
      08/05/2022 11:44:55 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/05/2022 11:44:55 : Loading AMD GPU Drivers
      08/05/2022 11:44:55 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/05/2022 11:44:55 : Var has been collected from file: gdm3
      08/05/2022 11:44:55 : Rebinding console 1
      08/05/2022 11:44:55 : End of Teardown!
      08/05/2022 11:45:13 : Beginning of Startup!
      08/05/2022 11:45:13 : Display Manager is not KDE!
      08/05/2022 11:45:13 : Distro is using Systemd
      08/05/2022 11:45:13 : Display Manager = gdm3
      08/05/2022 11:45:13 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/05/2022 11:45:13 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      08/05/2022 11:45:13 : AMD GPU Drivers Unloaded
      08/05/2022 11:45:13 : End of Startup!
      08/05/2022 11:45:17 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/05/2022 11:45:17 : Loading AMD GPU Drivers
      08/05/2022 11:45:17 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/05/2022 11:45:17 : Var has been collected from file: gdm3
      08/05/2022 11:45:17 : Rebinding console 1
      08/05/2022 11:45:17 : End of Teardown!
      08/05/2022 11:46:09 : Beginning of Startup!
      08/05/2022 11:46:09 : Display Manager is not KDE!
      08/05/2022 11:46:09 : Distro is using Systemd
      08/05/2022 11:46:09 : Display Manager = gdm3
      08/05/2022 11:46:09 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/05/2022 11:46:09 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      08/05/2022 11:46:09 : AMD GPU Drivers Unloaded
      08/05/2022 11:46:09 : End of Startup!
      08/05/2022 11:46:12 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/05/2022 11:46:12 : Loading AMD GPU Drivers
      08/05/2022 11:46:12 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/05/2022 11:46:12 : Var has been collected from file: gdm3
      08/05/2022 11:46:12 : Rebinding console 1
      08/05/2022 11:46:12 : End of Teardown!
      08/05/2022 11:46:59 : Beginning of Startup!
      08/05/2022 11:46:59 : Display Manager is not KDE!
      08/05/2022 11:46:59 : Distro is using Systemd
      08/05/2022 11:46:59 : Display Manager = gdm3
      08/05/2022 11:46:59 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/05/2022 11:46:59 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      08/05/2022 11:46:59 : AMD GPU Drivers Unloaded
      08/05/2022 11:46:59 : End of Startup!
      08/05/2022 11:47:01 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/05/2022 11:47:01 : Loading AMD GPU Drivers
      08/05/2022 11:47:01 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/05/2022 11:47:01 : Var has been collected from file: gdm3
      08/05/2022 11:47:01 : Rebinding console 1
      08/05/2022 11:47:01 : End of Teardown!
      08/05/2022 11:54:22 : Beginning of Startup!
      08/05/2022 11:54:22 : Display Manager is not KDE!
      08/05/2022 11:54:22 : Distro is using Systemd
      08/05/2022 11:54:22 : Display Manager = gdm3
      08/05/2022 11:54:22 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/05/2022 11:54:22 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      modprobe: FATAL: Module amdgpu is in use.
      modprobe: FATAL: Module drm is in use.
      08/05/2022 11:54:22 : AMD GPU Drivers Unloaded
      08/05/2022 11:54:22 : End of Startup!
      08/05/2022 11:54:25 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/05/2022 11:54:25 : Loading AMD GPU Drivers
      08/05/2022 11:54:25 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/05/2022 11:54:25 : Var has been collected from file: gdm3
      08/05/2022 11:54:25 : End of Teardown!
      08/05/2022 11:55:47 : Beginning of Startup!
      08/05/2022 11:55:47 : Display Manager is not KDE!
      08/05/2022 11:55:47 : Distro is using Systemd
      08/05/2022 11:55:47 : Display Manager = gdm3
      08/05/2022 11:55:47 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/05/2022 11:55:47 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      08/05/2022 11:55:47 : AMD GPU Drivers Unloaded
      08/05/2022 11:55:47 : End of Startup!
      08/05/2022 11:55:50 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/05/2022 11:55:50 : Loading AMD GPU Drivers
      08/05/2022 11:55:50 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/05/2022 11:55:50 : Var has been collected from file: gdm3
      08/05/2022 11:55:50 : Rebinding console 1
      08/05/2022 11:55:50 : End of Teardown!
      08/05/2022 13:16:20 : Beginning of Startup!
      08/05/2022 13:16:20 : Display Manager is not KDE!
      08/05/2022 13:16:20 : Distro is using Systemd
      08/05/2022 13:16:20 : Display Manager = gdm3
      08/05/2022 13:16:20 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/05/2022 13:16:20 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      08/05/2022 13:16:20 : AMD GPU Drivers Unloaded
      08/05/2022 13:16:20 : End of Startup!
      08/05/2022 13:16:24 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/05/2022 13:16:24 : Loading AMD GPU Drivers
      08/05/2022 13:16:24 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/05/2022 13:16:24 : Var has been collected from file: gdm3
      08/05/2022 13:16:24 : Rebinding console 1
      08/05/2022 13:16:24 : End of Teardown!
      08/05/2022 14:02:35 : Beginning of Startup!
      08/05/2022 14:02:35 : Display Manager is not KDE!
      08/05/2022 14:02:35 : Distro is using Systemd
      08/05/2022 14:02:35 : Display Manager = gdm3
      08/05/2022 14:02:35 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/05/2022 14:02:35 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      08/05/2022 14:02:35 : AMD GPU Drivers Unloaded
      08/05/2022 14:02:35 : End of Startup!
      08/05/2022 14:02:39 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/05/2022 14:02:39 : Loading AMD GPU Drivers
      08/05/2022 14:02:39 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/05/2022 14:02:39 : Var has been collected from file: gdm3
      08/05/2022 14:02:39 : Rebinding console 1
      08/05/2022 14:02:39 : End of Teardown!
      08/05/2022 14:05:40 : Beginning of Startup!
      08/05/2022 14:05:40 : Display Manager is not KDE!
      08/05/2022 14:05:40 : Distro is using Systemd
      08/05/2022 14:05:40 : Display Manager = gdm3
      08/05/2022 14:05:40 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/05/2022 14:05:40 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      08/05/2022 14:05:40 : AMD GPU Drivers Unloaded
      08/05/2022 14:05:40 : End of Startup!
      08/05/2022 14:05:43 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/05/2022 14:05:43 : Loading AMD GPU Drivers
      08/05/2022 14:05:43 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/05/2022 14:05:43 : Var has been collected from file: gdm3
      08/05/2022 14:05:43 : Rebinding console 1
      08/05/2022 14:05:43 : End of Teardown!
      08/05/2022 14:07:35 : Beginning of Startup!
      08/05/2022 14:07:35 : Display Manager is not KDE!
      08/05/2022 14:07:35 : Distro is using Systemd
      08/05/2022 14:07:35 : Display Manager = gdm3
      08/05/2022 14:07:35 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/05/2022 14:07:35 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      modprobe: FATAL: Module amdgpu is in use.
      modprobe: FATAL: Module drm is in use.
      08/05/2022 14:07:35 : AMD GPU Drivers Unloaded
      08/05/2022 14:07:35 : End of Startup!
      08/05/2022 14:09:13 : Beginning of Startup!
      08/05/2022 14:09:13 : Display Manager is not KDE!
      08/05/2022 14:09:13 : Distro is using Systemd
      08/05/2022 14:09:13 : Display Manager = gdm3
      08/05/2022 14:09:13 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/05/2022 14:09:13 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      modprobe: FATAL: Module amdgpu is in use.
      modprobe: FATAL: Module drm is in use.
      08/05/2022 14:09:13 : AMD GPU Drivers Unloaded
      08/05/2022 14:09:13 : End of Startup!
      08/05/2022 14:09:17 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/05/2022 14:09:17 : Loading AMD GPU Drivers
      08/05/2022 14:09:17 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/05/2022 14:09:17 : Var has been collected from file: gdm3
      08/05/2022 14:09:17 : Rebinding console 1
      08/05/2022 14:09:17 : End of Teardown!
      08/05/2022 14:09:49 : Beginning of Startup!
      08/05/2022 14:09:49 : Display Manager is not KDE!
      08/05/2022 14:09:49 : Distro is using Systemd
      08/05/2022 14:09:49 : Display Manager = gdm3
      08/05/2022 14:09:49 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/05/2022 14:09:49 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      08/05/2022 14:09:49 : AMD GPU Drivers Unloaded
      08/05/2022 14:09:49 : End of Startup!
      08/05/2022 14:09:52 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/05/2022 14:09:52 : Loading AMD GPU Drivers
      08/05/2022 14:09:52 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/05/2022 14:09:52 : Var has been collected from file: gdm3
      08/05/2022 14:09:52 : Rebinding console 1
      08/05/2022 14:09:52 : End of Teardown!
      08/05/2022 14:15:14 : Beginning of Startup!
      08/05/2022 14:15:14 : Display Manager is not KDE!
      08/05/2022 14:15:14 : Distro is using Systemd
      08/05/2022 14:15:14 : Display Manager = gdm3
      08/05/2022 14:15:14 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/05/2022 14:15:14 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      08/05/2022 14:15:14 : AMD GPU Drivers Unloaded
      08/05/2022 14:15:14 : End of Startup!
      08/05/2022 14:15:17 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/05/2022 14:15:17 : Loading AMD GPU Drivers
      08/05/2022 14:15:17 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/05/2022 14:15:17 : Var has been collected from file: gdm3
      08/05/2022 14:15:17 : Rebinding console 1
      08/05/2022 14:15:17 : End of Teardown!```

      [törölve]

      1. Most bent van, nem láttam változást
        Kezdem átlátni hogy valójában mi mit is csinál, a hibákat pedig igyekszek visszakövetni és átnézni
      • [törölve]

      • Szerkesztve

      1) Próbálni kell efifb-el és az nélkül is de elvileg AMD-nél jó ha ott van azt írja.

      2) Pipa

      3) Amikor kilépsz a szerkesztőből, a virsh api értesíti a libvirtd-t, hogy a fájl megváltozott. A következő vendég újraindítás az új értékeket fogja használni.

      Mivel sok a hiányosság nálad és maga ez az 1 éves script működése is kérdéses így neked kell eldöntened, hogy mennyi kört áldozol rá. Én megnéznék több howtot is.

      A logban pl van egy ilyen:
      /bin/vfio-startup.sh: line 140: echo: write error: No such device

      és ez:
      modprobe: FATAL: Module drm_kms_helper is in use.

      Úgy látszik a virtio driverek nincsenek betöltve, vagy legalábbis nem mind.

      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.

      a howto-ba van olyan rész hogy a cache mode: writeback

      Nálam:

      Próbáljam meg defaultal?

      • [törölve]

      • Szerkesztve

      liSSnEDux

      Ennek nem sok köze van a hibá(k)-hoz, így nem fog megoldani semmit.

      cache=writeback
      
           a gazdagép olvas/ír gyorsítótárat
           vendéglemez gyorsítótár mód visszaírás
           Figyelmeztetés: áramkimaradás esetén elveszítheti az adatokat
           Ha a kernel < 2.6.37, akkor a linux vendég fstab-jában a barrier opciót kell használnia, hogy elkerülje az fs sérülését áramkimaradás esetén.
           
      Ebben a módban a qemu-kvm interakcióba lép a lemezképfájllal vagy blokkeszközzel sem O_DSYNC, sem O_DIRECT szemantikával, így a gazdagép oldal gyorsítótárát használják, és az írások befejezettként jelennek meg a vendégnek, amikor a gazdagép oldal gyorsítótárába helyezik, és a normál oldalgyorsítótár-kezelés kezeli a tárolóeszköz iránti elkötelezettséget. Ezenkívül a vendég virtuális tároló adaptere értesül a visszaírási gyorsítótárról, így a vendégtől elvárható, hogy öblítési parancsokat küldjön az adatok integritásának kezeléséhez. A RAM gyorsítótárral rendelkező raidvezérlőhöz hasonló.```

      aham
      Valóban sokat nem változott:

      08/05/2022 15:05:18 : Display Manager is not KDE!
      08/05/2022 15:05:18 : Distro is using Systemd
      08/05/2022 15:05:18 : Display Manager = gdm3
      08/05/2022 15:05:18 : Unbinding Console 1
      26:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev cf)
      08/05/2022 15:05:18 : System has an AMD GPU
      /bin/vfio-startup.sh: line 140: echo: write error: No such device
      modprobe: FATAL: Module drm_kms_helper is in use.
      08/05/2022 15:05:18 : AMD GPU Drivers Unloaded
      08/05/2022 15:05:18 : End of Startup!
      08/05/2022 15:05:22 : Beginning of Teardown!
      modprobe: FATAL: Module vfio_pci is builtin.
      modprobe: FATAL: Module vfio_iommu_type1 is builtin.
      modprobe: FATAL: Module vfio is builtin.
      grep: /tmp/vfio-is-nvidia: No such file or directory
      08/05/2022 15:05:22 : Loading AMD GPU Drivers
      08/05/2022 15:05:22 : AMD GPU Drivers Loaded
      /usr/bin/systemctl
      08/05/2022 15:05:22 : Var has been collected from file: gdm3
      08/05/2022 15:05:22 : Rebinding console 1
      08/05/2022 15:05:22 : End of Teardown!```
        • [törölve]

        • Szerkesztve

        liSSnEDux

        Itt meg azt írja, hogy a drm_kms_helper már használatban van.
        Aztán nem tudja a vifio modulokat betölteni.

        megpróbálhatot ezt: rmmod drm_kms_helper a hoston.
        aztán indítsd a VM-et és nézd a logot.

        A /bin/vfio-startup.sh fájlban meg nézd meg a 140. sort.

        Közben megnéztem:
        echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind

        Kapcsold vissza a grub-ban ezt az efifb-t.