Do I understand it right that your virtual machine is running Windows? If so, then there is probably no (legal) way around it, and possibly even no illegal one.
Windows software is not FOSS (Free Open Source Software); it is licensed under restrictive and binding agreements for use on a specific machine. Once it is by any means transferred onto different hardware, it is capable of detecting the new environment under which it is called to operate, and will refuse to do so unless license is transferred (under, once again, binding terms) to the new environment. Ownership of the installation disk is often taken as necessary (but not sufficient) proof of legal ownership.
The above even applies for installation of Windows software onto a VM on a host operating legally under Microsoft software, let alone on a different pc running FOSS Operating System.