AFP services run in a virtualized environment just as they do on a on a physical server running Open Enterprise Server (OES) 2018 or later and require no special configuration or other changes.
To get started with Xen virtualization or with KVM virtualization, see the SLES 12 Virtualization Guide
To get started with third-party virtualization platforms, such as Hyper-V from Microsoft and the different VMware product offerings, refer to the documentation for the product you are using.
For information on setting up virtualized OES 2018 SP2, see Installing, Upgrading, or Updating OES on a VM
in the OES 2018 SP3: Installation Guide.