Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Gentoo as virtualBox guest

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
pablo_supertux
Advocate
Advocate
User avatar
Posts: 2974
Joined: Sun Jan 25, 2004 1:58 pm
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

Gentoo as virtualBox guest

  • Quote

Post by pablo_supertux » Mon Mar 15, 2021 1:12 am

I'm currently installing gentoo inside a virtual box because I want to test some stuff.

I have this kernel config:

Code: Select all

$ grep -i vbox .config
CONFIG_DRM_VBOXVIDEO=m
CONFIG_VBOXGUEST=m
My audio is working, X11 could start but with max resolution of 1280x1204. Looking at the Xorg.log it was clear that it X was running with the VESA driver.

So I looked for gentoo specific documentation and found this: https://wiki.gentoo.org/wiki/VirtualBox. This wiki page does not mention whether you should set CONFIG_DRM_VBOXVIDEO and CONFIG_VBOXGUEST at all in your kernel config, in fact it tells you to set the DRM driver for VMware Virtual GPU (is that really necessary?). I did it anyway, but I also left those other two variables set as module and proceeded to install app-emulation/virtualbox-guest-additions.

After a reboot I noticed that virtualbox-guest-additions service fails with this error:

Code: Select all

 * Loading kernel modules
modprobe: ERROR: could not insert 'vboxsf': Unknown symbol in module, or unknown parameter (see dmesg)
 * ERROR: virtualbox-guest-additions failed to start
and dmesg says:

Code: Select all

[  564.116198] vboxsf: Unknown symbol VBoxGuest_RTLogBackdoorPrintf (err -2)
[  564.116204] vboxsf: Unknown symbol VBoxGuestIDC (err -2)
[  564.116210] vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexRequest (err -2)
[  564.116214] vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexRelease (err -2)
[  564.116216] vboxsf: Unknown symbol VBoxGuest_RTStrNLen (err -2)
[  564.116219] vboxsf: Unknown symbol VBoxGuest_RTLogRelGetDefaultInstanceEx (err -2)
[  564.116222] vboxsf: Unknown symbol VBoxGuest_RTStrCopy (err -2)
[  564.116223] vboxsf: Unknown symbol VBoxGuest_RTErrConvertToErrno (err -2)
[  564.116228] vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexCreate (err -2)
[  564.116230] vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexDestroy (err -2)
[  564.116234] vboxsf: Unknown symbol VBoxGuest_RTMemContFree (err -2)
[  564.116235] vboxsf: Unknown symbol VBoxGuest_RTSemMutexRelease (err -2)
[  564.116239] vboxsf: Unknown symbol VBoxGuest_rtR0MemObjLinuxVirtToPage (err -2)
[  564.116313] vboxsf: Unknown symbol VBoxGuest_RTAssertShouldPanic (err -2)
[  564.116500] vboxsf: Unknown symbol VBoxGuest_RTLogLoggerEx (err -2)
[  564.116503] vboxsf: Unknown symbol VBoxGuest_RTMemContAlloc (err -2)
[  564.116509] vboxsf: Unknown symbol VBoxGuest_RTSemMutexRequest (err -2)
[  564.116511] vboxsf: Unknown symbol VBoxGuest_RTSemMutexCreate (err -2)
[  564.116513] vboxsf: Unknown symbol VBoxGuest_RTSemMutexDestroy (err -2)
[  564.116518] vboxsf: Unknown symbol VBoxGuest_RTAssertMsg1Weak (err -2)
[  564.116527] vboxsf: Unknown symbol VBoxGuest_RTAssertMsg2Weak (err -2)
[ 2064.697265] vboxsf: Unknown symbol VBoxGuest_RTLogBackdoorPrintf (err -2)
[ 2064.697272] vboxsf: Unknown symbol VBoxGuestIDC (err -2)
[ 2064.697277] vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexRequest (err -2)
[ 2064.697282] vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexRelease (err -2)
[ 2064.697283] vboxsf: Unknown symbol VBoxGuest_RTStrNLen (err -2)
[ 2064.697287] vboxsf: Unknown symbol VBoxGuest_RTLogRelGetDefaultInstanceEx (err -2)
[ 2064.697289] vboxsf: Unknown symbol VBoxGuest_RTStrCopy (err -2)
[ 2064.697291] vboxsf: Unknown symbol VBoxGuest_RTErrConvertToErrno (err -2)
[ 2064.697296] vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexCreate (err -2)
[ 2064.697298] vboxsf: Unknown symbol VBoxGuest_RTSemFastMutexDestroy (err -2)
[ 2064.697301] vboxsf: Unknown symbol VBoxGuest_RTMemContFree (err -2)
[ 2064.697303] vboxsf: Unknown symbol VBoxGuest_RTSemMutexRelease (err -2)
[ 2064.697306] vboxsf: Unknown symbol VBoxGuest_rtR0MemObjLinuxVirtToPage (err -2)
[ 2064.697310] vboxsf: Unknown symbol VBoxGuest_RTAssertShouldPanic (err -2)
[ 2064.697314] vboxsf: Unknown symbol VBoxGuest_RTLogLoggerEx (err -2)
[ 2064.697316] vboxsf: Unknown symbol VBoxGuest_RTMemContAlloc (err -2)
[ 2064.697319] vboxsf: Unknown symbol VBoxGuest_RTSemMutexRequest (err -2)
[ 2064.697320] vboxsf: Unknown symbol VBoxGuest_RTSemMutexCreate (err -2)
[ 2064.697322] vboxsf: Unknown symbol VBoxGuest_RTSemMutexDestroy (err -2)
[ 2064.697326] vboxsf: Unknown symbol VBoxGuest_RTAssertMsg1Weak (err -2)
[ 2064.697335] vboxsf: Unknown symbol VBoxGuest_RTAssertMsg2Weak (err -2)
Why am I getting this? Is it because I have CONFIG_DRM_VBOXVIDEO and CONFIG_VBOXGUEST set as module in my kernel configuration? I found this viewtopic-t-1085266-start-0.html but this long thread did not offer a clue for me. The funny thing is that X still runs and when I execute xrandr I get:

Code: Select all

Screen 0: minimum 320 x 200, current 800 x 600, maximum 8192 x 8192
Virtual-1 connected primary 800x600+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   preferred     60.00*+
   2560x1600     59.99  
   1920x1440     60.00  
   1856x1392     60.00  
   1792x1344     60.00  
   1920x1200     59.88  
   1600x1200     60.00  
   1680x1050     59.95  
   1400x1050     59.98  
   1280x1024     60.02  
   1440x900      59.89  
   1280x960      60.00  
   1360x768      60.02  
   1280x800      59.81  
   1152x864      75.00  
   1280x768      59.87  
   1024x768      60.00  
   800x600       60.32  
   640x480       59.94  
Virtual-2 disconnected (normal left inverted right x axis y axis)
Virtual-3 disconnected (normal left inverted right x axis y axis)
Virtual-4 disconnected (normal left inverted right x axis y axis)
Virtual-5 disconnected (normal left inverted right x axis y axis)
Virtual-6 disconnected (normal left inverted right x axis y axis)
Virtual-7 disconnected (normal left inverted right x axis y axis)
Virtual-8 disconnected
And if I execute lspci -k I see

Code: Select all

$ lspci -k
00:02.0 VGA compatible controller: VMware SVGA II Adapter
	Subsystem: VMware SVGA II Adapter
        Kernel driver in use: vmwgfx
I'm confused. Why is it using the VMWare driver? In /etc/portage/make.conf I set VIDEO_CARDS="vesa fbdev virtualbox", should I replace virtualbox with vmware? What is going on?
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Top
ippipp
n00b
n00b
Posts: 26
Joined: Wed Oct 14, 2009 11:01 pm

  • Quote

Post by ippipp » Mon Mar 15, 2021 3:08 pm

Hi!

I do not know what is exactly wrong in Your vm.

My working vm is like this:

# grep -i vbox .config
# CONFIG_DRM_VBOXVIDEO is not set
#

# head -7 .config
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 5.4.97-gentoo Kernel Configuration
#

#
# Compiler: gcc (Gentoo 9.3.0-r2 p4) 9.3.0



virtualbox-guest-additions is emerged without lto:
# CFLAGS="-march=native -O2 -pipe" CXXFLAGS="-march=native -O2 -pipe " LDFLAGS="-Wl,-O1 -Wl,--as-needed" emerge virtualbox-guest-additions -vp

These are the packages that would be merged, in order:

[ebuild R ] app-emulation/virtualbox-guest-additions-6.1.18:0/6.1::gentoo USE="X (-dist-kernel)" 0 KiB



# cat /etc/portage/make.conf|grep -i VIDEO
VIDEO_CARDS="dummy vga virtualbox vmware"

(actually vmare driver is recommended in latest virtualbox suggestions, but I am not using it (yet))


# lsmod|grep vbox
vboxsf 81920 0
vboxvideo 40960 2
drm_kms_helper 163840 1 vboxvideo
ttm 94208 1 vboxvideo
drm 397312 5 drm_kms_helper,vboxvideo,ttm
vboxguest 282624 6 vboxsf
Top
Ionen
Developer
Developer
User avatar
Posts: 3013
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Mon Mar 15, 2021 3:13 pm

When I use a vm for quick testing gentoo stuff I just use gentoo-kernel-bin, it should have everything you need (helps rule out kernel config issues even if don't want to keep using it), but I use qemu so can't help beyond that :)
Top
pablo_supertux
Advocate
Advocate
User avatar
Posts: 2974
Joined: Sun Jan 25, 2004 1:58 pm
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

  • Quote

Post by pablo_supertux » Tue Mar 16, 2021 2:57 pm

@ippipp thanks, I'll try that later

@Ionen probably a good idea, I'll try that later as well :)
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Top
pablo_supertux
Advocate
Advocate
User avatar
Posts: 2974
Joined: Sun Jan 25, 2004 1:58 pm
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

  • Quote

Post by pablo_supertux » Tue Mar 16, 2021 9:40 pm

Ok, I unset CONFIG_DRM_VBOXVIDEO and CONFIG_VBOXGUEST and the recompiled app-emulation/virtualbox-guest-additions. After the reboot vboxfs could be loaded:

Code: Select all

$ lsmod
Module                  Size  Used by
vboxsf                 81920  0
vboxvideo              40960  0
vboxguest             290816  2 vboxsf
I can mount the shared directory, great. But app-emulation/virtualbox-guest-additions also says this:
* file as your /etc/X11/xorg.conf:
* /usr/share/doc/virtualbox-guest-additions-6.1.18/xorg.conf.vbox
*
* Also make sure you use the Mesa library for OpenGL:
* eselect opengl set xorg-x11
So I did:

Code: Select all

$ bzcat //usr/share/doc/virtualbox-guest-additions-6.1.18/xorg.conf.vbox.bz2 > /etc/X11/xorg.conf

$ X

X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
Build Operating System: Linux 5.4.97-gentoo x86_64 Gentoo
Current Operating System: Linux mumble-test 5.4.97-gentoo #5 SMP Tue Mar 16 22:15:14 CET 2021 x86_64
Kernel command line: BOOT_IMAGE=/boot/kernel-5.4.97-gentoo root=UUID=33c40708-6a0c-4b8d-858b-28b1c2561fa3 ro net.ifnames=0
Build Date: 14 March 2021  11:59:17PM
 
Current version of pixman: 0.40.0
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Mar 16 22:37:49 2021
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE) 
Fatal server error:
(EE) no screens found(EE) 
(EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE) 
(EE) Server terminated with error (1). Closing log file.
And this the Xorg.0.log file:

Code: Select all

[   953.676] 
X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
[   953.676] Build Operating System: Linux 5.4.97-gentoo x86_64 Gentoo
[   953.676] Current Operating System: Linux mumble-test 5.4.97-gentoo #5 SMP Tue Mar 16 22:15:14 CET 2021 x86_64
[   953.676] Kernel command line: BOOT_IMAGE=/boot/kernel-5.4.97-gentoo root=UUID=33c40708-6a0c-4b8d-858b-28b1c2561fa3 ro net.ifnames=0
[   953.676] Build Date: 14 March 2021  11:59:17PM
[   953.676]  
[   953.676] Current version of pixman: 0.40.0
[   953.676] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[   953.676] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   953.677] (==) Log file: "/var/log/Xorg.0.log", Time: Tue Mar 16 22:37:49 2021
[   953.677] (==) Using config file: "/etc/X11/xorg.conf"
[   953.677] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   953.677] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   953.677] (==) ServerLayout "Default Layout"
[   953.677] (**) |-->Screen "Screen-vboxvideo" (0)
[   953.677] (**) |   |-->Monitor "<default monitor>"
[   953.677] (**) |   |-->Device "Device-vboxvideo"
[   953.677] (==) No monitor specified for screen "Screen-vboxvideo".
	Using a default monitor configuration.
[   953.677] (==) Automatically adding devices
[   953.677] (==) Automatically enabling devices
[   953.677] (==) Automatically adding GPU devices
[   953.677] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   953.677] (==) FontPath set to:
	/usr/share/fonts/misc/,
	/usr/share/fonts/TTF/,
	/usr/share/fonts/OTF/,
	/usr/share/fonts/Type1/,
	/usr/share/fonts/100dpi/,
	/usr/share/fonts/75dpi/
[   953.677] (==) ModulePath set to "/usr/lib64/xorg/modules"
[   953.677] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[   953.677] (II) Loader magic: 0x55cf6413fd00
[   953.677] (II) Module ABI versions:
[   953.677] 	X.Org ANSI C Emulation: 0.4
[   953.677] 	X.Org Video Driver: 24.1
[   953.677] 	X.Org XInput driver : 24.1
[   953.677] 	X.Org Server Extension : 10.0
[   953.678] (--) using VT number 8

[   953.678] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[   953.678] (II) xfree86: Adding drm device (/dev/dri/card0)
[   953.679] (--) PCI:*(0@0:2:0) 15ad:0405:15ad:0405 rev 0, Mem @ 0xe0000000/134217728, 0xe8000000/2097152, I/O @ 0x0000d000/16, BIOS @ 0x????????/131072
[   953.679] (II) LoadModule: "glx"
[   953.679] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   953.680] (II) Module glx: vendor="X.Org Foundation"
[   953.680] 	compiled for 1.20.10, module version = 1.0.0
[   953.680] 	ABI class: X.Org Server Extension, version 10.0
[   953.680] (II) LoadModule: "vboxvideo"
[   953.680] (II) Loading /usr/lib64/xorg/modules/drivers/vboxvideo_drv.so
[   953.680] (II) Module vboxvideo: vendor="Oracle Corporation"
[   953.680] 	compiled for 1.20.10, module version = 1.0.1
[   953.680] 	Module class: X.Org Video Driver
[   953.680] 	ABI class: X.Org Video Driver, version 24.1
[   953.680] (**) Load address of symbol "VBOXVIDEO" is 0x7f0e6aa91340
[   953.680] (II) VBoxVideo: guest driver for VirtualBox: vbox
[   953.681] (EE) No devices detected.
[   953.681] (EE) 
Fatal server error:
[   953.681] (EE) no screens found(EE) 
[   953.681] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[   953.681] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   953.681] (EE) 
[   953.682] (EE) Server terminated with error (1). Closing log file.
Why am I getting this? Luckily X starts with a non existent xorg.conf file, but with 800x600 resolution by default, annoying but at least it works.
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Top
ippipp
n00b
n00b
Posts: 26
Joined: Wed Oct 14, 2009 11:01 pm

  • Quote

Post by ippipp » Wed Mar 17, 2021 7:11 am

Hi!

Did You also changed VIDEO_CARDS in /etc/portage/make.conf ?

And after changing that did you recompile everything related with this? (mesa, xorg-drivers, libdrm, etc.... Check "# grep VIDEO_CARDS /var/db/pkg/*/*/*ebuild" output)
Top
pablo_supertux
Advocate
Advocate
User avatar
Posts: 2974
Joined: Sun Jan 25, 2004 1:58 pm
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

  • Quote

Post by pablo_supertux » Wed Mar 17, 2021 8:38 pm

ippipp wrote:Hi!

Did You also changed VIDEO_CARDS in /etc/portage/make.conf ?
no, because I alread had virtualbox and vmware in my VIDEO_CARDS variable. VIDEO_CARDS="vesa fbdev virtualbox vmware"

ippipp wrote:
And after changing that did you recompile everything related with this? (mesa, xorg-drivers, libdrm, etc....
I can try that...


edit: that didn't help. Anyway, it's working with a missing xorg.conf and since it's a test system, I don't need to get it 100% right.
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Top
ippipp
n00b
n00b
Posts: 26
Joined: Wed Oct 14, 2009 11:01 pm

  • Quote

Post by ippipp » Wed Mar 17, 2021 9:55 pm

One more hint: Guest vm -> Machine -> Settings -> Display ->
Video memory 64 MB
Graphics controller: I have here VboxSVGA
Acceleration : not selected
Top
njcwotx
Guru
Guru
User avatar
Posts: 587
Joined: Fri Feb 25, 2005 3:53 am
Location: Texas

  • Quote

Post by njcwotx » Wed Mar 17, 2021 11:08 pm

i did a virtual box just last week...

vboxsvga + 3d were my settings...

kernel
CONFIG_DRM_VBOXVDIEO=y
CONFIG_VBOXGUEST=y

may help, i dont have it right handy to past it all, but ill try to get the full config for you. I had issues as well, so my config has VMware, Vesa, and FBDEV items as well. I plan on going back and trying to narrow it down to just specifics, but im pretty sure these 2 are what you need, but lspci shows vmwgfx at the moment, so that could really be the one it wants. Anyway, it works.
Drinking from the fountain of knowldege.
Sometimes sipping.
Sometimes gulping.
Always thirsting.
Top
njcwotx
Guru
Guru
User avatar
Posts: 587
Joined: Fri Feb 25, 2005 3:53 am
Location: Texas

  • Quote

Post by njcwotx » Wed Mar 17, 2021 11:19 pm

Looks like the VMware driver won with VMSVGA and 3d for me. Ill have to experiment and see if I can make the vbox driver work instead
sections below
make.conf shows VIDEO_CARDS="virtualbox" in all following tests below

1. config file
2. Xorg.log file showing which driver loaded
3. lspci -nnk shows VMware gfx
4. xorg.conf shows VMware driver

Code: Select all

CONFIG_DRM=y
CONFIG_DRM_MIPI_DSI=y
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_KMS_FB_HELPER=y
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_DRM_FBDEV_OVERALLOC=100
CONFIG_DRM_TTM=y
CONFIG_DRM_VRAM_HELPER=y
CONFIG_DRM_I915=y
CONFIG_DRM_I915_FORCE_PROBE=""
CONFIG_DRM_I915_CAPTURE_ERROR=y
CONFIG_DRM_I915_COMPRESS_ERROR=y
CONFIG_DRM_I915_USERPTR=y
CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250
CONFIG_DRM_I915_SPIN_REQUEST=5
CONFIG_DRM_VMWGFX=y
CONFIG_DRM_VMWGFX_FBCON=y
CONFIG_DRM_PANEL=y
CONFIG_DRM_BRIDGE=y
CONFIG_DRM_PANEL_BRIDGE=y
CONFIG_DRM_VBOXVIDEO=y
CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y
 
00:00.0 Host bridge [0600]: Intel Corporation 440FX - 82441FX PMC [Natoma] [8086:1237] (rev 02)
00:01.0 ISA bridge [0601]: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II] [8086:7000]
00:01.1 IDE interface [0101]: Intel Corporation 82371AB/EB/MB PIIX4 IDE [8086:7111] (rev 01)
        Kernel driver in use: ata_piix
00:02.0 VGA compatible controller [0300]: VMware SVGA II Adapter [15ad:0405]
        Subsystem: VMware SVGA II Adapter [15ad:0405]
        Kernel driver in use: vmwgfx
00:03.0 Ethernet controller [0200]: Intel Corporation 82540EM Gigabit Ethernet Controller [8086:100e] (rev 02)
        Subsystem: Intel Corporation PRO/1000 MT Desktop Adapter [8086:001e]
        Kernel driver in use: e1000
00:04.0 System peripheral [0880]: InnoTek Systemberatung GmbH VirtualBox Guest Service [80ee:cafe]
        Kernel driver in use: vboxguest
00:05.0 Multimedia audio controller [0401]: Intel Corporation 82801AA AC'97 Audio Controller [8086:2415] (rev 01)
        Subsystem: Dell 82801AA AC'97 Audio Controller [1028:0177]
        Kernel driver in use: snd_intel8x0
00:06.0 USB controller [0c03]: Apple Inc. KeyLargo/Intrepid USB [106b:003f]
        Kernel driver in use: ohci-pci
00:07.0 Bridge [0680]: Intel Corporation 82371AB/EB/MB PIIX4 ACPI [8086:7113] (rev 08)
00:0d.0 SATA controller [0106]: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] [8086:2829] (rev 02)
        Kernel driver in use: ahci
 
[   748.804] (II) LoadModule: "glx"
[   748.810] (II) LoadModule: "vmware"
[   748.811] (II) LoadModule: "modesetting"
[   748.813] (II) LoadModule: "fbdev"
[   748.813] (II) LoadModule: "vesa"
[   748.814] (II) LoadModule: "fbdevhw"
[   748.814] (II) LoadModule: "vgahw"
[   749.934] (II) LoadModule: "fb"
[   749.936] (II) LoadModule: "shadowfb"
[   749.936] (II) LoadModule: "ramdac"
[   750.986] (II) LoadModule: "libinput"
 
 
Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "HWcursor"                  # [<bool>]
        #Option     "Xinerama"                  # [<bool>]
        #Option     "StaticXinerama"            # <str>
        #Option     "GuiLayout"                 # <str>
        #Option     "AddDefaultMode"            # [<bool>]
        #Option     "RenderAccel"               # [<bool>]
        #Option     "DRI"                       # [<bool>]
        #Option     "DirectPresents"            # [<bool>]
        #Option     "HWPresents"                # [<bool>]
        #Option     "RenderCheck"               # [<bool>]
        Identifier  "Card0"
        Driver      "vmware"
        BusID       "PCI:0:2:0"
Last edited by njcwotx on Thu Mar 18, 2021 12:02 am, edited 1 time in total.
Drinking from the fountain of knowldege.
Sometimes sipping.
Sometimes gulping.
Always thirsting.
Top
njcwotx
Guru
Guru
User avatar
Posts: 587
Joined: Fri Feb 25, 2005 3:53 am
Location: Texas

  • Quote

Post by njcwotx » Wed Mar 17, 2021 11:42 pm

out of curiosity...I compiled a kernel, removing all but virtual box gpu and DRM support, removed all the frame buffer support stuff i saw under DeviceDrivers/GraphicsSupport(and frame buffer support)...

config looks to have removed a bunch of stuff, no vesa, no fbdev, no VMware....console looks minimal (prob cuz i removed all the frame buffer console stuff for fun)

Upon boot...X works with virtual box driver...however it was interesting....

the video card now identifies itself as 'VMware SVGA II" driver" and Xorg.log shows 'vmware', its possible the CONFIG_DRM_VBOXVIDEO mimics a VMware driver...it did have (NEW) next to it, maybe it will get some tweaks down the line...config file definitely has no VMware lines active, the only driver is the VBOXVIDEO line.

Anyway...good luck.


[NOTE**] cuz i couldn't leave it alone ;) I noticed my VMSVGA+3d was still active even after trying to change it...so I unset 3d and used VBoxSVGA and it still worked with VBOXVIDEO driver...only this time....video card now identifies itself as a Virtual Box Graphics Card with lscpi and Xorg.log shows vboxvideo as the driver loaded. -- make.conf has always shown VIDEO_CARDS="virtualbox" from the start in all my tests

in any of my settings, I noticed nothing difference between them, only time will tell if one has better options than the other.
Drinking from the fountain of knowldege.
Sometimes sipping.
Sometimes gulping.
Always thirsting.
Top
lyallp
Veteran
Veteran
User avatar
Posts: 1655
Joined: Thu Jul 15, 2004 12:07 am
Location: Adelaide/Australia
Contact:
Contact lyallp
Website

Gentoo host, VirtualBox Gentoo and cloudlinux guests

  • Quote

Post by lyallp » Tue Mar 23, 2021 5:10 am

For sh*ts and giggles, I have been setting up a VirtualBox VM of Gentoo using clang as the default compiler, only building those packages with gcc that require it, like the kernel, glibc, etc.
Interesting experience, not fully up to speed, but happy to share any config files, such as package.env.

This is all hosted in VirtualBox on a Gentoo host.

As an aside, I am trying to get cloudlinux running in a VM with Gentoo host, it repeatedly reports lost rtc interrupts, just wondering if anyone has a solution for that.
...Lyall
Top
Post Reply

12 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic