You are not logged in.

#1 2021-10-06 01:44:17

aq9011
Member
Registered: 2021-10-06
Posts: 1

using virgl 3D acceleration for linux guest

on the host side (arch) I installed the following for win10 VM with vfio GPU passthrough:

qemu libvirt edk2-ovmf virt-manager ebtables dnsmasq

I need working linux VMs as well as win10 VM.

on the guest side (kali), I have updated/upgraded everything and then installed the following:

mesa-utils virgl-server libvirglrenderer1 libvirglrenderer-dev spice-vdagent



When using QXL to start the kali VM, it is laggy. So I want to use the Virgl 3D acceleration.
When I use virtio 3D acceleration with display spice listening to `none` and openGL set to my AMD passthrough, I noticed that the kali guest machine is able to boot much faster and I can get to the login screen. However, after logging in, all I get is a black screen.

How can I get a working screen on my kali-VM?

Offline

#2 2021-10-07 21:00:11

dalingrin
Member
Registered: 2009-03-18
Posts: 128

Re: using virgl 3D acceleration for linux guest

Not sure which desktop environment you are using but I was never able to get XFCE to do anything but a black screen. Gnome and KDE did display normally. A few searches led me to think this is a common issue with XFCE.

Offline

#3 2022-02-07 11:44:57

redsolja
Member
Registered: 2011-04-04
Posts: 43

Re: using virgl 3D acceleration for linux guest

Instead of using lightdm disable it with:

systemctl disable lightdm

Then, edit your ~/.xinitrc file to read:

exec startxfce4

. Then, just use startx and it will work. I am not sure whether you can pass this command to lightdm to start it like this and I don't know the internals of this command compared to what lightdm "auto" runs

Offline

Board footer

Powered by FluxBB