Installing Alfred using a Virtual Machine is not different from installing it from your own computer.
Please follow the instruction from our previous help article > Getting Started with Alfred.
Using Mac:
https://meetalfred.crunch.help/getting-started-with-alfred/installing-alfred-on-your-mac
Using Windows/PC:
https://meetalfred.crunch.help/getting-started-with-alfred/install-alfred-on-your-pc