You are not logged in.

#1 2019-09-11 11:05:36

samtsui70
Member
Registered: 2019-09-11
Posts: 5

Arch linux VM won't launch KDE desktop after GPU passthrough

I recently backup all my VMs, wiped my Proxmox 5.4 server and installed Proxmox 6, then restored all my VMs. However only a mac Mojave VM works completely fine with GPU passthrough. The Arch linux VM cannot boot into KDE desktop if trying to passthrough GPU (tried both RX580 card and onboard Intel VGA, both failed).

Details:

  • Arch (with SDDM and KDE Plasma DE) can start and work flawlessly in headless mode (i.e. no PCI passthrough of anything)

  • It still starts and works without any problem when PCI passthrough USB hub only.

  • Problem exists when trying to GPU passthrough (as mentioned, tried RX580 and onboard Intel VGA, same result) - in tty1 the booting stopped with these text on screen connecting to GPU (RX580 or Intel), so at least the GPU passthrough was successful:

Starting version 243.0-1-arch
/dev/vda3: clean, 293257/2981888 files, 2177712/11927291 blocks
_ (<-- and a flashing cursor here) 
  • checking systemctl status sddm, it works normally:

● sddm.service - Simple Desktop Display Manager
   Loaded: loaded (/usr/lib/systemd/system/sddm.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2019-09-11 12:43:12 HKT; 11min ago
     Docs: man:sddm(1)
           man:sddm.conf(5)
 Main PID: 554 (sddm)
    Tasks: 2
   Memory: 12.7M
   CGroup: /system.slice/sddm.service
           └─554 /usr/bin/sddm

Sep 11 12:43:12 sam-arch-linux systemd[1]: Started Simple Desktop Display Manager.
Sep 11 12:43:12 sam-arch-linux sddm[554]: Initializing...
Sep 11 12:43:12 sam-arch-linux sddm[554]: Starting...
Sep 11 12:43:12 sam-arch-linux sddm[554]: Logind interface found

I then compared the Xorg.0.log file attached above (RX580 passthru) with the Xorg.0.log of headless mode (booted into KDE successfully) line by line. They are basically identically except timestamps, and the last few lines:

The last two lines of headless mode (booted into KDE successfully):

[  2.692] (EE) Failed to open authorization file "/var/run/sddm/{82df6de4-5895-47aa-bbd0-1523face7b53}": No such file or directory
[  30.082] (II) modeset(0): Allocate new frame buffer 1920x1080 stride 

And the last few lines of RX580 passthru (not able to start KDE):

[  1295.949] (EE) Failed to open authorization file "/var/run/sddm/{20a0fc6a-0d91-4f79-a1cc-83b8734a08f7}": No such file or directory
[  1295.954] (II) event0  - Power Button: device removed
[  1295.972] (II) event2  - QEMU QEMU USB Tablet: device removed
[  1296.042] (II) event1  - AT Translated Set 2 keyboard: device removed
[  1296.086] (II) event5  - VirtualPS/2 VMware VMMouse: device removed
[  1296.166] (II) event4  - VirtualPS/2 VMware VMMouse: device removed
[  1296.246] (II) UnloadModule: "libinput"
[  1296.246] (II) UnloadModule: "libinput"
[  1296.246] (II) UnloadModule: "libinput"
[  1296.246] (II) UnloadModule: "libinput"
[  1296.246] (II) UnloadModule: "libinput"
[  1296.249] (II) Server terminated successfully (0). Closing log file.

And then I tried to restart sddm in tty2 (sudo systemctl restart sddm), but turned out the SDDM became failed:

● sddm.service - Simple Desktop Display Manager
   Loaded: loaded (/usr/lib/systemd/system/sddm.service; enabled; vendor preset: disabled)
   Active: failed (Result: core-dump) since Wed 2019-09-11 17:25:23 HKT; 1min 23s ago
     Docs: man:sddm(1)
           man:sddm.conf(5)
  Process: 700 ExecStart=/usr/bin/sddm (code=dumped, signal=ABRT)
 Main PID: 700 (code=dumped, signal=ABRT)

Sep 11 17:25:23 sam-arch-linux systemd[1]: sddm.service: Service RestartSec=100ms expired, scheduling restart.
Sep 11 17:25:23 sam-arch-linux systemd[1]: sddm.service: Scheduled restart job, restart counter is at 5.
Sep 11 17:25:23 sam-arch-linux systemd[1]: Stopped Simple Desktop Display Manager.
Sep 11 17:25:23 sam-arch-linux systemd[1]: sddm.service: Start request repeated too quickly.
Sep 11 17:25:23 sam-arch-linux systemd[1]: sddm.service: Failed with result 'core-dump'.
Sep 11 17:25:23 sam-arch-linux systemd[1]: Failed to start Simple Desktop Display Manager.

After that there were a lot more error message in Xorg.0.log and journalctl:
Xorg.0.log after attempting to restart SDDM: https://pastebin.com/d0Hct28J
journalctl after attempting to restart SDDM: https://pastebin.com/5Dz11YDt

Hopefully with these information someone will be able to help me. Thanks in advance.

Offline

Board footer

Powered by FluxBB