Possible to get decent performance running linux vm with wayland?
Posted by Snirlavi5@reddit | linux | View on Reddit | 20 comments
Hi all,
I'm trying to get linux running on a vm on my work laptop which is running windows (unfortunately I can't change that).
So far tried hyper v and VirtualBox, trying to run cachyos with a wayland desktop. Was pretty easy using hyper v but when upping the vm resolution Cpu was spiking every time I moved the mouse. I read this was lack of hardware acceleration available with hyper v (?)
Tried VirtualBox afterwards but performance from the get go with booting the live CD was far worst.
Am I missing something / doing something wrong? Is this a wayland thing?
Appreciate any insights.
AutoModerator@reddit
This submission has been removed due to receiving too many reports from users. The mods have been notified and will re-approve if this removal was inappropriate, or leave it removed.
This is most likely because:
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
zlice0@reddit
what wm?
used to have to do this and everything worked fine on x. but im guessing it's win11 now too so who knows what's different. also there are some weird things that even vms dont help with, ruby had some weird issue where windows just made it 3x slower, vm didnt help.
LordAnchemis@reddit
Does the VM have access to hardware GPU?
Snirlavi5@reddit (OP)
No I have an integrated Intel GPU on the host.. Then I assume it's based on the capabilities of the virtualization stack?
LordAnchemis@reddit
Modern GUIs need GPU acceleration - so your VM is using CPU (software) to render
nee_-@reddit
What exactly are you trying to run? Yes a high res graphical session on a vm is not going to be performant without tweaks that you probably can’t make on a work laptop
Snirlavi5@reddit (OP)
Yes it's not ideal. I'm trying to run the same Dev workflows, I just want to work inside a Linux desktop..
Maybe I'm mis remembering but running vms a while back seemed to have really decent performance
joe190735-on-reddit@reddit
vmware and qemu have good performance for the linux desktop now
if it's hyper v, I assume you have to setup the FreeRDP thing to have hardware acceleration for the desktop, I could be wrong though
Snirlavi5@reddit (OP)
Yes I tried qemu as well but didn't have much luck getting it to work properly (probably something I'm doing wrong)
I haven't heard of freerdp I'll look into it thanks
joe190735-on-reddit@reddit
qemu windows host, you have to use whpx and virglrenderer options in the qemu command, it's not easy to write I agree, I never fully tested it myself
Acceptable_Rub8279@reddit
Well performance in a vm is never really that great maybe try wsl and then run the gui app
mattias_jcb@reddit
With good drivers I generally don't feel a difference between the native desktop and a VM. I'm pretty sure this is a a dinner issue in the guest os.
Snirlavi5@reddit (OP)
Are you using a windows host? Can you share more about the setup you're using?
mattias_jcb@reddit
No I haven't used Windows in soon be 26 years (except for short periods at work). For the last 10-15 years I've been running KVM based VMs via libvirt (usually via GNOME Boxes).
It might be that the virtualization stacks that you're using doesn't have drivers upstream in which case you'll be stuck with pretty crappy performance.
crashorbit@reddit
My solution is wsl and windows terminal. I gave up on Linux vm desktop for similar reasons as you are finding. And most of what I want from Linux is in a terminal any way.
Good luck with your exploration.
Snirlavi5@reddit (OP)
Understood, thanks. Hope there is a better option though :)
dgm9704@reddit
How much resources are you givin the guest?
Snirlavi5@reddit (OP)
More than the performance result I hope. 8gb ram and 6 cores
crashorbit@reddit
Just curious. What are you running in the VM that makes you want to access it via a gui desktop?
Snirlavi5@reddit (OP)
Honestly, nothing that can't run on windows, it's just that I prefer to run a Linux desktop