View previous topic :: View next topic |
Author |
Message |
gardenair n00b
Joined: 05 Oct 2021 Posts: 72
|
Posted: Sat Apr 13, 2024 1:33 pm Post subject: [Solved]Video Card for Guest Gentoo in VirtualBox. |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54572 Location: 56N 3W
|
Posted: Sat Apr 13, 2024 1:42 pm Post subject: |
|
|
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 |
|
|
gardenair n00b
Joined: 05 Oct 2021 Posts: 72
|
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1674 Location: South America
|
Posted: Sat Apr 13, 2024 1:51 pm Post subject: |
|
|
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 |
|
|
gardenair n00b
Joined: 05 Oct 2021 Posts: 72
|
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1674 Location: South America
|
Posted: Sat Apr 13, 2024 2:10 pm Post subject: |
|
|
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 |
|
|
gardenair n00b
Joined: 05 Oct 2021 Posts: 72
|
Posted: Sat Apr 13, 2024 2:21 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54572 Location: 56N 3W
|
Posted: Sat Apr 13, 2024 2:24 pm Post subject: |
|
|
gardenair,
Your image shows that you are in the chroot. That means that 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 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 |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1674 Location: South America
|
Posted: Sat Apr 13, 2024 2:32 pm Post subject: |
|
|
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 |
|
|
gardenair n00b
Joined: 05 Oct 2021 Posts: 72
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54572 Location: 56N 3W
|
Posted: Sat Apr 13, 2024 6:39 pm Post subject: |
|
|
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 |
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 |
|
|
|