After enabling 3d acceleration in gnome-boxes black screen

I want to install on a virtual machine cosmic de and as I understood it needs 3d acceleration, but instead of the virtual machine screen I just have a black screen