Running macros from VM

Hi,
I'd like to run some macros on my pc from a vm using a Leonardo board. I'm not sure how this works. I'd run the software on the VM to execute the macros on the host machine. Would this be possible?
thanks

What do you mean by VM?

PaulRB:
What do you mean by VM?

Thanks for reply, it means virtual machine.

amadeok:
Thanks for reply, it means virtual machine.

That's the only meaning I know for VM, but that made no sense to me in your question, so I wondered if you had another meaning.

So, can you re-phrase your question? Maybe give a more specific example, a typical "use-case".

Please clarify: you have a PC connected to a Leonardo, and a Linux VM on the PC?

What’s the interpreter of your macros - shell…?

Where exactly shall the macros execute?

You know that VM guest-host communication uses networks?