This is a known bug in Ubuntu 24.04 whereby moving the mouse upon login causes the screen to go black and not finish the login process. This is not a VMware specific issue.
See https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2089709
This is not a VMware specific issue, recommendation is to upgrade to latest version.
Typically a reboot will fix issue for time being to allow screen to not go black upon login.