LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-28-2022, 12:31 PM   #1
rempas
Member
 
Registered: Apr 2021
Distribution: Arch (btw)
Posts: 80

Rep: Reputation: Disabled
What is the most powerful graphics driver to use in QEMU?


Newbie to QEMU (and emulation in general here)! I would like to know which is the most powerful graphics card (driver) QEMU can emulate. I've seen some options in the Gentoo wiki here: https://wiki.gentoo.org/wiki/QEMU/Options#Graphics_card but there is no info about which one is the most powerful.

Also, I know that the most powerful method is gpu pass-through so I guess, I'm searching for the second most powerful depending on how you see it. Any ideas?

Edit: Just to be clear. I'm not asking for the driver that comes close to bare metal performance. I'm asking for the most powerful driver BETWEEN them.

Last edited by rempas; 01-29-2022 at 02:08 AM. Reason: Make the clarification.
 
Old 01-28-2022, 06:21 PM   #2
Fearless Fred
Member
 
Registered: Jan 2022
Location: UK
Distribution: Mabox - Manjaro/Arch
Posts: 54

Rep: Reputation: 37
Emulated graphics could never be described as powerful, more like passable..
 
Old 01-28-2022, 06:43 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Not sure how many software video drivers qemu has, maybe 5 or so.
None of them were new last time I looked, maybe now.

Yep, hard to get any virtual video to come close to physical.

Modern VM's can integrate with some physical hardware quite closely if you select well.
 
Old 01-29-2022, 09:00 AM   #4
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545
Quote:
Originally Posted by rempas View Post
Just to be clear. I'm not asking for the driver that comes close to bare metal performance. I'm asking for the most powerful driver BETWEEN them.
I would have said that was already clear, but apparently not. :/


The Arch wiki has more details than the Gentoo one: https://wiki.archlinux.org/title/QEMU#Graphic_card
There's also this page with a few more snippets: https://computernewb.com/wiki/QEMU/Devices/Video_cards

My brief reading of those pages suggests that "std" will just work, but "qxl" has potential for higher performance for 2D, if supported and configured appropriately.

For improved 3D support on Linux-based OSes, "virtio" may perform better, and "vmware" might be a better choice for some/all versions of Windows.

There's probably people that have done benchmarks - a quick search revealed the following partly-related article, though I'm sure there's more out there if one were to go looking...
https://czak.pl/2020/04/09/three-levels-of-qemu-graphics.html


Last edited by boughtonp; 01-29-2022 at 09:02 AM.
 
1 members found this post helpful.
Old 01-29-2022, 09:44 AM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,598

Rep: Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691
Quote:
Originally Posted by rempas View Post
Newbie to QEMU (and emulation in general here)! I would like to know which is the most powerful graphics card (driver) QEMU can emulate. I've seen some options in the Gentoo wiki here: https://wiki.gentoo.org/wiki/QEMU/Options#Graphics_card but there is no info about which one is the most powerful.

Also, I know that the most powerful method is gpu pass-through so I guess, I'm searching for the second most powerful depending on how you see it. Any ideas?

Edit: Just to be clear. I'm not asking for the driver that comes close to bare metal performance. I'm asking for the most powerful driver BETWEEN them.
Your question has raised only confusion. What do you mean by "powerful" in this context?
Are you looking for speed, resolution, or something else?
For a virtual guest that is at the mercy of the host hardware and software, "powerful" is a bit of a slippery concept if it can be found at all. We need to know what you are really looking for.
 
Old 01-29-2022, 01:47 PM   #6
rempas
Member
 
Registered: Apr 2021
Distribution: Arch (btw)
Posts: 80

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by boughtonp View Post
I would have said that was already clear, but apparently not. :/


The Arch wiki has more details than the Gentoo one: https://wiki.archlinux.org/title/QEMU#Graphic_card
There's also this page with a few more snippets: https://computernewb.com/wiki/QEMU/Devices/Video_cards

My brief reading of those pages suggests that "std" will just work, but "qxl" has potential for higher performance for 2D, if supported and configured appropriately.

For improved 3D support on Linux-based OSes, "virtio" may perform better, and "vmware" might be a better choice for some/all versions of Windows.

There's probably people that have done benchmarks - a quick search revealed the following partly-related article, though I'm sure there's more out there if one were to go looking...
https://czak.pl/2020/04/09/three-levels-of-qemu-graphics.html

Thank you! This info will be enough to solve my question! Have a great day my friend!

Edit: A also forgot to add that "virtio" is able to go only up to 720p with BSD guests in my system while "std" works without any problems. I didn't had space in my VM image to download the driver for "vmware" so I didn't tried that yet but I may do one day.

Last edited by rempas; 01-29-2022 at 01:53 PM.
 
Old 01-29-2022, 01:50 PM   #7
rempas
Member
 
Registered: Apr 2021
Distribution: Arch (btw)
Posts: 80

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
Your question has raised only confusion. What do you mean by "powerful" in this context?
Are you looking for speed, resolution, or something else?
For a virtual guest that is at the mercy of the host hardware and software, "powerful" is a bit of a slippery concept if it can be found at all. We need to know what you are really looking for.
Sorry, I suppose the most "powerful" one will be the one that's better overall in everything. Best performance and support for the biggest possible resolution and HZ and of course having a good stability. I don't know if it works like that but for example, I used "virtio" and it didn't worked with DragonFlyBSD (and I think every other BSD that I tried) as a guest. So I think you can now understand my approach in the topic. I really don't know how emulation works at all...
 
Old 01-29-2022, 06:31 PM   #8
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,342

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
In that context I think the most 'powerful' is what is perceived by the user as best for their purposes.
 
1 members found this post helpful.
Old 01-29-2022, 07:57 PM   #9
Fearless Fred
Member
 
Registered: Jan 2022
Location: UK
Distribution: Mabox - Manjaro/Arch
Posts: 54

Rep: Reputation: 37
I have used this guide for BSD GPU acceleration;

https://papers.freebsd.org/2019/euro...ated_graphics/

Guide is for FreeBSD but as its about BHYVE hypervisor it should work on DragonflyBSD too.
 
Old 01-30-2022, 02:18 AM   #10
rempas
Member
 
Registered: Apr 2021
Distribution: Arch (btw)
Posts: 80

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by computersavvy View Post
In that context I think the most 'powerful' is what is perceived by the user as best for their purposes.
Yeah, I though about that two. It seems no "best of all" truly exists
 
Old 01-30-2022, 02:19 AM   #11
rempas
Member
 
Registered: Apr 2021
Distribution: Arch (btw)
Posts: 80

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Fearless Fred View Post
I have used this guide for BSD GPU acceleration;

https://papers.freebsd.org/2019/euro...ated_graphics/

Guide is for FreeBSD but as its about BHYVE hypervisor it should work on DragonflyBSD too.
Isn't BHYVE exclusive to FreeBSD HOSTS? Or am I wrong? I would at least be interested if I could use it in DragonFlyBSD as I'm planning to test this OS in metal some time in the future.
 
Old 01-31-2022, 07:02 AM   #12
Fearless Fred
Member
 
Registered: Jan 2022
Location: UK
Distribution: Mabox - Manjaro/Arch
Posts: 54

Rep: Reputation: 37
It can work with DragonflyBSD but requires some CLI work;

https://www.dragonflybsd.org/cgi/web...hyve&section=8
 
Old 01-31-2022, 03:04 PM   #13
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Look at the current choices. Generally I'd suspect that the newest virtual driver would be the fastest.
 
  


Reply

Tags
qemu



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
How to install qemu for arm9 cortex-a9 and how to use qemu after installation? pillisrikanth Linux - Software 3 12-27-2011 03:56 PM
how to use ati graphics chipsets in qemu/other vms without driver in guest system lomix Linux - Hardware 4 04-17-2008 07:54 AM
Most powerful 2D graphics editor for Linux??? ivancauso Linux - Software 2 08-11-2005 08:07 AM
which linux is the most powerful? indy317 Linux - Distributions 12 06-03-2003 04:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration