Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Video Card for Guest Gentoo in VirtualBox.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
gardenair
n00b
n00b


Joined: 05 Oct 2021
Posts: 72

PostPosted: Sat Apr 13, 2024 1:33 pm    Post subject: [Solved]Video Card for Guest Gentoo in VirtualBox. Reply with quote

Hi,
I am installing Gentoo on Oracle VirtualBox for learning/testing purposes. During the installation, there is a video card configuration. In the host system I am using an Intel base card ( https://ibb.co/XZd2FJ7 ) so in the VirtualBox what variable may I add
https://packages.gentoo.org/useflags/expand#video_cards
Please guide me what entry may I add in /etc/portage/make.conf for VIDEO_CARDS=
Note:- I shall install Xfce as a desktop environment


Last edited by gardenair on Sun Apr 14, 2024 11:40 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54572
Location: 56N 3W

PostPosted: Sat Apr 13, 2024 1:42 pm    Post subject: Reply with quote

gardenair,

Inside the VM, what does lspci -nnk say about your video card?

You probably want virtualbox, but there are other possibilities too.

A real video card hardware driver would only be required if you were doing video card pass through.
That's not a topic when you are starting out with virtual machines though.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
gardenair
n00b
n00b


Joined: 05 Oct 2021
Posts: 72

PostPosted: Sat Apr 13, 2024 1:48 pm    Post subject: Reply with quote

It shows https://ibb.co/rm8796H
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1674
Location: South America

PostPosted: Sat Apr 13, 2024 1:51 pm    Post subject: Reply with quote

If the virtual machine's graphics controller is set to VMSVGA, the default for [GNU]/Linux guests, then VIDEO_CARDS should be vmware.
_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
gardenair
n00b
n00b


Joined: 05 Oct 2021
Posts: 72

PostPosted: Sat Apr 13, 2024 2:05 pm    Post subject: Reply with quote

Thanks "GDH-gentoo" for pointing me
https://ibb.co/tc6scF8

so in my case, it will be

nano /etc/portage/make.conf
VIDEO_CARDS="VMSVGA"


https://packages.gentoo.org/useflags/expand#video_cards
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1674
Location: South America

PostPosted: Sat Apr 13, 2024 2:10 pm    Post subject: Reply with quote

gardenair wrote:
so in my case, it will be

nano /etc/portage/make.conf
VIDEO_CARDS="VMSVGA"

No, like I said in my previous post, it's:

Code:
VIDEO_CARDS="vmware"

_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
gardenair
n00b
n00b


Joined: 05 Oct 2021
Posts: 72

PostPosted: Sat Apr 13, 2024 2:21 pm    Post subject: Reply with quote

What is the reason/logic to use "vmware" instead of "VMSVGA" ?

If we see the ground reality Oracle VirtualBox shows a Grapgic Controller VMSVGA
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54572
Location: 56N 3W

PostPosted: Sat Apr 13, 2024 2:24 pm    Post subject: Reply with quote

gardenair,

Your image shows that you are in the chroot. That means that
Code:
emerge pciutils
is required to install the lspci command.

VMSVGA means Virtual Machine SVGA. that's the host end. A few words on what Virtualisation does.

The virtualiser, here Virtualbox (there are others) is a piece of software that creates the appearance of another computer.
That's right down to the BIOS/EFI firmware. The illusion is so good that operating systems running inside the virtual machine cannot detect that they are not running on real hardware.
The virtualiser will fake hardware for the guest to use.

As the virtual environment is completely isolated from the real hardware, you must install drivers for the virtual hardware.
The host hardware is irrelevant.

If you provide the
Code:
lspic -nnk
output for the virtual video card we can explain the logic behind the VIDEO_CARDS setting.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.


Last edited by NeddySeagoon on Sat Apr 13, 2024 2:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
GDH-gentoo
Veteran
Veteran


Joined: 20 Jul 2019
Posts: 1674
Location: South America

PostPosted: Sat Apr 13, 2024 2:32 pm    Post subject: Reply with quote

gardenair wrote:
What is the reason/logic to use "vmware" instead of "VMSVGA" ?

Gentoo just named the USE flag that way. And per the VirtualBox documentation, "for Linux guests, the default graphics device emulates a VMware SVGA graphics device" (referring to the VMSVGA controller). The controller advertises itself to the kernel as "VMware SVGA II adapter", and uses the vmwgfx kernel module, which is enabled in the kernel configuration with option:

Code:
Graphics support
< > DRM driver for VMware Virtual GPU

_________________
NeddySeagoon wrote:
I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:
As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Back to top
View user's profile Send private message
gardenair
n00b
n00b


Joined: 05 Oct 2021
Posts: 72

PostPosted: Sat Apr 13, 2024 6:15 pm    Post subject: Reply with quote

Thanks a lot "NeddySeagoon" and "GDH-gentoo" for your detailed reply. Well as per the command " lspic " and "lspic -nnk" following are the outputs.


https://ibb.co/2KqkMr4
https://ibb.co/RTx7bwW
https://ibb.co/TWS9TQ3
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54572
Location: 56N 3W

PostPosted: Sat Apr 13, 2024 6:39 pm    Post subject: Reply with quote

gardenair,

lspci -nnk says you have a VMware SVGA II Adaptor. [15ad:0405]
The vendor and device IDs are 15ad:0405, which are the bits I really wanted.

Searching for 15ad:0405 PCI site:cateee.net says that the kernel symbol is
Code:
CONFIG_DRM_VMWGFX: DRM driver for VMware Virtual GPU


Code:
eix xorg-drivers
lists all possible VIDEO_CARDS="amdgpu fbdev radeonsi vesa -ast -dummy -freedreno -geode -i915 -intel -mga -nouveau -nvidia -omap -qxl -r128 -radeon -siliconmotion -tegra -vc4 -via -virtualbox -vmware")
As you have VMware Virtual GPU, you need VIDEO_CARDS="vmware"
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum