Ubutntu Virtual machine doesnt connect

Hi all, ive been trying to connect my pixhawk 4 mini using linux on a virtual machine, but it doesnt connect. I had the idea of trying on mi windows desk, so i installed qgc and it turns out it does connect on it. so is there something i should set o any special configuration?