KaOSx / live-uefi

KaOS ISO Creation files for UEFI systems
12 stars 11 forks source link

2015.04 ISO EFI boot in VirtualBox fails to start Xorg server #1

Closed kunalg closed 6 years ago

kunalg commented 9 years ago

When booting into EFI in VirtualBox, the 2015.04 ISO in live mode fails to start Xorg server. When booted using BIOS, it does work.

Here is the Xorg log from EFI boot:

[    26.769] 
X.Org X Server 1.16.4
Release Date: 2014-12-20
[    26.769] X Protocol Version 11, Revision 0
[    26.769] Build Operating System: Linux 3.18.7-1 x86_64 
[    26.769] Current Operating System: Linux localhost 3.19.4-1 #1 SMP PREEMPT Wed Apr 15 15:29:42 UTC 2015 x86_64
[    26.769] Kernel command line: initrd=\kdeos\boot\x86_64\kdeosiso.img kdeosisobasedir=kdeos kdeosisolabel=KAOS_20150415 xdriver=no nouveau.modeset=1 i915.modeset=1 radeon.modeset=1 nonfree=no
[    26.769] Build Date: 12 March 2015  01:42:03AM
[    26.769]  
[    26.769] Current version of pixman: 0.32.6
[    26.769]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[    26.769] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    26.769] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr 22 05:41:31 2015
[    26.771] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    26.772] (==) No Layout section.  Using the first Screen section.
[    26.772] (==) No screen section available. Using defaults.
[    26.772] (**) |-->Screen "Default Screen Section" (0)
[    26.772] (**) |   |-->Monitor "<default monitor>"
[    26.772] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[    26.772] (==) Automatically adding devices
[    26.772] (==) Automatically enabling devices
[    26.772] (==) Automatically adding GPU devices
[    26.772] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[    26.772]    Entry deleted from font path.
[    26.772] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/Type1/,
    /usr/share/fonts/100dpi/,
    /usr/share/fonts/75dpi/
[    26.772] (==) ModulePath set to "/usr/lib/xorg/modules"
[    26.772] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
[    26.772] (II) Loader magic: 0x80fd80
[    26.772] (II) Module ABI versions:
[    26.772]    X.Org ANSI C Emulation: 0.4
[    26.772]    X.Org Video Driver: 18.0
[    26.772]    X.Org XInput driver : 21.0
[    26.772]    X.Org Server Extension : 8.0
[    26.774] (EE) systemd-logind: failed to get session: PID 485 does not belong to any known session
[    26.776] (--) PCI:*(0:0:2:0) 80ee:beef:0000:0000 rev 0, Mem @ 0x80000000/134217728
[    26.776] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[    26.776] (II) LoadModule: "glx"
[    26.776] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    26.785] (II) Module glx: vendor="X.Org Foundation"
[    26.785]    compiled for 1.16.4, module version = 1.0.0
[    26.785]    ABI class: X.Org Server Extension, version 8.0
[    26.785] (==) AIGLX enabled
[    26.785] (==) Matched vboxvideo as autoconfigured driver 0
[    26.785] (==) Matched modesetting as autoconfigured driver 1
[    26.785] (==) Matched fbdev as autoconfigured driver 2
[    26.785] (==) Matched vesa as autoconfigured driver 3
[    26.785] (==) Assigned the driver to the xf86ConfigLayout
[    26.785] (II) LoadModule: "vboxvideo"
[    26.786] (WW) Warning, couldn't open module vboxvideo
[    26.786] (II) UnloadModule: "vboxvideo"
[    26.786] (II) Unloading vboxvideo
[    26.786] (EE) Failed to load module "vboxvideo" (module does not exist, 0)
[    26.786] (II) LoadModule: "modesetting"
[    26.786] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    26.786] (II) Module modesetting: vendor="X.Org Foundation"
[    26.786]    compiled for 1.16.0, module version = 0.9.0
[    26.786]    Module class: X.Org Video Driver
[    26.786]    ABI class: X.Org Video Driver, version 18.0
[    26.786] (II) LoadModule: "fbdev"
[    26.787] (WW) Warning, couldn't open module fbdev
[    26.787] (II) UnloadModule: "fbdev"
[    26.787] (II) Unloading fbdev
[    26.787] (EE) Failed to load module "fbdev" (module does not exist, 0)
[    26.787] (II) LoadModule: "vesa"
[    26.787] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
[    26.787] (II) Module vesa: vendor="X.Org Foundation"
[    26.787]    compiled for 1.16.0, module version = 2.3.3
[    26.787]    Module class: X.Org Video Driver
[    26.787]    ABI class: X.Org Video Driver, version 18.0
[    26.787] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    26.787] (II) VESA: driver for VESA chipsets: vesa
[    26.787] (++) using VT number 1

[    26.787] (EE) open /dev/dri/card0: No such file or directory
[    26.787] (WW) Falling back to old probe method for modesetting
[    26.787] (EE) open /dev/dri/card0: No such file or directory
[    26.787] (EE) Screen 0 deleted because of no matching config section.
[    26.787] (II) UnloadModule: "modesetting"
[    26.788] (II) Loading sub module "vbe"
[    26.788] (II) LoadModule: "vbe"
[    26.788] (II) Loading /usr/lib/xorg/modules/libvbe.so
[    26.795] (II) Module vbe: vendor="X.Org Foundation"
[    26.795]    compiled for 1.16.4, module version = 1.1.0
[    26.795]    ABI class: X.Org Video Driver, version 18.0
[    26.795] (II) Loading sub module "int10"
[    26.795] (II) LoadModule: "int10"
[    26.795] (II) Loading /usr/lib/xorg/modules/libint10.so
[    26.795] (II) Module int10: vendor="X.Org Foundation"
[    26.795]    compiled for 1.16.4, module version = 1.0.0
[    26.795]    ABI class: X.Org Video Driver, version 18.0
[    26.795] (II) VESA(0): initializing int10
[    26.796] (EE) VESA(0): V_BIOS address 0x0 out of range
[    26.796] (II) UnloadModule: "vesa"
[    26.796] (II) UnloadSubModule: "int10"
[    26.796] (II) Unloading int10
[    26.796] (II) UnloadSubModule: "vbe"
[    26.796] (II) Unloading vbe
[    26.796] (EE) Screen(s) found, but none have a usable configuration.
[    26.796] (EE) 
Fatal server error:
[    26.796] (EE) no screens found(EE) 
[    26.796] (EE) 
Please consult the The X.Org Foundation support 
     at http://wiki.x.org
 for help. 
[    26.796] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    26.796] (EE) 
[    26.802] (EE) Server terminated with error (1). Closing log file.
polarathene commented 7 years ago

I ran into this with QEMU/KVM VM using UEFI/OVMF instead of BIOS and Q35 chipset. Graphic device VGA(bochs) works fine, Virtio fails. If I force xdriver=vesa I'll get output similar to kunalg. Otherwise after vesa module loads glamor inits and crashes.

openSUSE doesn't seem to have this issue, like with VGA for KaOS, it instead fails to init glamor, complains that the screen does not support DRI2 and fallsback to software rendering with DRISWRAST. Gallium over llvmpipe takes it from there from what I understand. Kernel drivers are loaded correctly for both distros.

openSUSE packages xf86-video-fbdev while KaOS packages xf86-video-vesa. I'm not 100% sure, but using fbdev instead, or including that may fix the issue? Have not tested openSUSE with virtualbox. openSUSE at least seems to handle all virtual video devices fine with UEFI.

demmm commented 6 years ago

UEFI is now supported in virtualbox. Starting with kernel 4.16.8 & virtualbox 5.12.2.