Without (a lot) more information we can’t help you.
What host OS/SP ? What VM ? What OS did you install on the VM ? What exact avast version ? etc.