我目前正在尝试设置 Ubuntu 15.10 以使用 VGAPassthrough 运行虚拟机。专用显卡应该是我的 GTX750ti,带有 i7-6700k(Intel HD Graphics 530)的内部图形芯片。但它根本行不通。我做了研究,了解到 Skylake GPU 有点奇怪,因为它们很新。
症状:
检查时sudo lspci -k | grep -EA2 'VGA|3D
显示的唯一显卡是我的 750ti
01:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] (rev a2)
Subsystem: ASUSTeK Computer Inc. Device 84ac
Kernel driver in use: nvidia
我已更新内核4.3.4-040304-generic
,但问题仍然存在。
到目前为止
i915.preliminary_hw_support=1
尝试了内核 4.2 中的内核标志- 已更新至内核 4.3.4
intel_idle.max_cstate=1
尝试了内核 4.3 中的内核标志
更新
内核仍然出现4.5.0-040500rc1-generic
更新 2 在 BIOS 中将 CPU 显卡设置为主显示器时,显示器在加载内核时会闪烁一点,直到显示器完全变黑。上一个错误在它变黑之前 可能与总线速度有关
更新 3 我检查了可能的重复,但 iGPU 无法被识别:
[ 2.382028] snd_hda_intel 0000:00:1f.3: failed to add i915 component master (-19)
更新 4 Xorg.0.log 中的段错误:
[ 10.045] (II) intel(0): resizing framebuffer to 3840x1080
[ 10.069] (EE)
[ 10.069] (EE) Backtrace:
[ 10.069] (EE) 0: /usr/bin/X (xorg_backtrace+0x4e) [0x555b106d668e]
[ 10.069] (EE) 1: /usr/bin/X (0x555b10522000+0x1b89f9) [0x555b106da9f9]
[ 10.069] (EE) 2: /lib/x86_64-linux-gnu/libc.so.6 (0x7f26ad89b000+0x352f0) [0x7f26ad8d02f0]
[ 10.069] (EE) 3: /usr/lib/xorg/modules/drivers/nouveau_drv.so (0x7f26a981b000+0xd74f) [0x7f26a982874f]
[ 10.069] (EE) 4: /usr/bin/X (PixmapShareToSlave+0x8e) [0x555b1059694e]
[ 10.069] (EE) 5: /usr/bin/X (RRCrtcSet+0x670) [0x555b1063b870]
[ 10.069] (EE) 6: /usr/bin/X (ProcRRSetCrtcConfig+0x38b) [0x555b1063c89b]
[ 10.069] (EE) 7: /usr/bin/X (0x555b10522000+0x5818f) [0x555b1057a18f]
[ 10.069] (EE) 8: /usr/bin/X (0x555b10522000+0x5c34b) [0x555b1057e34b]
[ 10.069] (EE) 9: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xf0) [0x7f26ad8bba40]
[ 10.069] (EE) 10: /usr/bin/X (_start+0x29) [0x555b105686c9]
[ 10.069] (EE)
[ 10.069] (EE) Segmentation fault at address 0x8
[ 10.069] (EE)
Fatal server error:
[ 10.069] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 10.069] (EE)
[ 10.069] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 10.069] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 10.069] (EE)
[ 10.070] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 10.132] (EE) Server terminated with error (1). Closing log file.
从系统日志中提取
Jan 27 11:17:35 JARVIS systemd[1]: Starting Hostname Service...
Jan 27 11:17:35 JARVIS dbus[723]: [system] Successfully activated service 'org.freedesktop.hostname1'
Jan 27 11:17:35 JARVIS systemd[1]: Started Hostname Service.
Jan 27 11:17:35 JARVIS gnome-session[1660]: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
Jan 27 11:17:35 JARVIS gnome-session[1660]: after 206 requests (206 known processed) with 10 events remaining.
Jan 27 11:17:35 JARVIS gnome-session[1660]: (gnome-settings-daemon:1693): Gdk-WARNING **: gnome-settings-daemon: Fatal IO error 0 (Success) on X server :0.
Jan 27 11:17:35 JARVIS org.a11y.atspi.Registry[1676]: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
Jan 27 11:17:35 JARVIS org.a11y.atspi.Registry[1676]: after 21 requests (21 known processed) with 0 events remaining.
Jan 27 11:17:35 JARVIS org.gtk.vfs.Daemon[1657]: A connection to the bus can't be made
Jan 27 11:17:35 JARVIS gnome-session[1660]: gnome-session[1660]: WARNING: Lost name on bus: org.gnome.SessionManager
Jan 27 11:17:35 JARVIS gnome-session[1660]: WARNING: Lost name on bus: org.gnome.SessionManager
Jan 27 11:17:35 JARVIS gnome-session[1660]: CRITICAL: We failed, but the fail whale is dead. Sorry....
Jan 27 11:17:35 JARVIS gnome-session[1660]: gnome-session[1660]: CRITICAL: We failed, but the fail whale is dead. Sorry....
Jan 27 11:17:35 JARVIS gdm[902]: GdmDisplay: display lasted 1,042746 seconds
Jan 27 11:17:35 JARVIS gdm[902]: GdmLocalDisplayFactory: maximum number of X display failures reached: check X server log for errors
Jan 27 11:17:36 JARVIS acpid: client 1649[0:0] has disconnected
答案1
试试这个:
sudo apt-get purge nvidia*
sudo reboot
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-358
sudo reboot
它应该可以工作。