You are not logged in.

#1 2019-02-21 23:14:24

num18
Member
Registered: 2019-02-05
Posts: 13

Xorg in virtualbox does not load right driver?

I have been trying to launch X properly with 3d acceleration for weeks now, and I am mentally exhausted.

I am running Arch in a Virtualbox VM (version 6.0.4) with guest additions installed and enabled (same version) within a Linux Mint 18.3 host with intel graphics video card; 3d acceleration is enabled in Virtualbox and I have given maximum vram to the machine. 

My main WM is i3, but I wanted to install Cinnamon as an experiment, and only then I realized glx was doing software rendering:

glxinfo | grep OpenGL
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 7.0, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 18.3.3
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 18.3.3
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 18.3.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
OpenGL ES profile extensions:

I did not even realize that llvmpipe meant software rendering, I am new to all this.  I just don't know what else to do, I have installed and reinstalled xorg, the guest utils, the modules, cinnamon, i3, everything.  Vboxservice is running properly:

vboxservice.service - VirtualBox Guest Service
   Loaded: loaded (/usr/lib/systemd/system/vboxservice.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2019-02-21 23:22:48 CET; 48min ago
  Process: 465 ExecStartPre=/usr/bin/modprobe vboxguest (code=exited, status=0/SUCCESS)
  Process: 472 ExecStartPre=/usr/bin/modprobe vboxvideo (code=exited, status=0/SUCCESS)
  Process: 473 ExecStartPre=/usr/bin/modprobe vboxsf (code=exited, status=0/SUCCESS)
 Main PID: 474 (VBoxService)
    Tasks: 8 (limit: 4713)
   Memory: 2.6M
   CGroup: /system.slice/vboxservice.service
           └─474 /usr/bin/VBoxService -f

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

I just don't know what else to do; please help if you have any idea how to get 3d acceleration and hardware rendering to work.  I installed linux mint 19.1 Cinnamon edition in a seperate Virtualbox VM with the same settings, and it did not have software rendering issues.  I don't understand how to configure arch to do the same.

Last edited by num18 (2019-02-21 23:15:43)

Offline

#2 2019-02-22 11:48:31

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,404

Re: Xorg in virtualbox does not load right driver?

Vboxvideo support depends very much on the guest additions and very often gives problems in an archlinux guest.

In VirtualBox 6 oracle added support for the VMWARE SVGA II device (yes, from their competitor) .
The VMSVGA device is supported in mainline linux kernel and X , try installing xf86-video-vmware .

If that doesn't help post lspci -k and xorg log.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2019-02-22 13:37:52

num18
Member
Registered: 2019-02-05
Posts: 13

Re: Xorg in virtualbox does not load right driver?

Lone_Wolf wrote:

Vboxvideo support depends very much on the guest additions and very often gives problems in an archlinux guest.

In VirtualBox 6 oracle added support for the VMWARE SVGA II device (yes, from their competitor) .
The VMSVGA device is supported in mainline linux kernel and X , try installing xf86-video-vmware .

If that doesn't help post lspci -k and xorg log.

Thanks for the reply!  xf86-video-vmware is already installed; in fact, the entire xf86-video set is installed.

For the full xorg log, see this pastebin:

https://pastebin.com/1GUWrBm4

The output of lspci -k is:

00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
	Kernel modules: intel_agp
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
	Kernel driver in use: ata_piix
	Kernel modules: ata_piix, pata_acpi, ata_generic
00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
	Kernel driver in use: vboxvideo
	Kernel modules: vboxvideo
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
	Subsystem: Intel Corporation PRO/1000 MT Desktop Adapter
	Kernel driver in use: e1000
	Kernel modules: e1000
00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service
	Kernel driver in use: vboxguest
	Kernel modules: vboxguest
00:05.0 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio Controller (rev 01)
	Subsystem: Intel Corporation 82801AA AC'97 Audio Controller
	Kernel driver in use: snd_intel8x0
	Kernel modules: snd_intel8x0
00:06.0 USB controller: Apple Inc. KeyLargo/Intrepid USB
	Kernel driver in use: ohci-pci
	Kernel modules: ohci_pci
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
	Kernel driver in use: piix4_smbus
	Kernel modules: i2c_piix4
00:0d.0 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 02)
	Kernel driver in use: ahci
	Kernel modules: ahci

Offline

#4 2019-02-22 14:01:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,789

Offline

#5 2019-02-22 14:46:53

num18
Member
Registered: 2019-02-05
Posts: 13

Re: Xorg in virtualbox does not load right driver?

Thanks for bringing attention to this; I am not sure how to use the pkgbuild and patch files in that comment.  Should I download to a folder and run makepkg?  Should I run pacman -U afterwards and that is all?

I am also running Virtualbox 6.0 and guest additions 6.0, is this patch still relevant?  I do not want to break stuff even further smile

Edit: I don't know what to do with the files PKGBUILD.patch etc. that are listed in that patch comment sad

Last edited by num18 (2019-02-22 14:58:16)

Offline

#6 2019-02-22 15:07:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,789

Re: Xorg in virtualbox does not load right driver?

The linked bug is still open and VBoxEGL.so isn't in the current package either. Do you refer to the patch in the linked bug? It would seem to apply to https://git.archlinux.org/svntogit/comm … virtualbox ie. you'd have to apply it when eg. building virtualbox using ASP, https://wiki.archlinux.org/index.php/Ar … _using_Git )

Offline

#7 2019-02-22 15:09:58

num18
Member
Registered: 2019-02-05
Posts: 13

Re: Xorg in virtualbox does not load right driver?

seth wrote:

The linked bug is still open and VBoxEGL.so isn't in the current package either. Do you refer to the patch in the linked bug? It would seem to apply to https://git.archlinux.org/svntogit/comm … virtualbox ie. you'd have to apply it when eg. building virtualbox using ASP, https://wiki.archlinux.org/index.php/Ar … _using_Git )

Yes, this is what I am referring to. 

OK, I do not have the proficiency to do this anyway, but when you say 'building virtualbox using ASP', do you mean building the virtualbox-guest-utils?  My host is not arch linux, but Mint 18.3.

Last edited by num18 (2019-02-22 15:10:35)

Offline

#8 2019-02-22 15:15:24

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,789

Re: Xorg in virtualbox does not load right driver?

This PKGBUILD will actually build all virtualbox-stuff packages (though you're only gonna need the utils, see the list on top), the host doesn't matter, but you want to do this on your arch system.

Offline

#9 2019-02-22 15:19:04

num18
Member
Registered: 2019-02-05
Posts: 13

Re: Xorg in virtualbox does not load right driver?

seth wrote:

This PKGBUILD will actually build all virtualbox-stuff packages (though you're only gonna need the utils, see the list on top), the host doesn't matter, but you want to do this on your arch system.

Ah, I see. OK.

Offline

Board footer

Powered by FluxBB