The example inventory available on the project's Ansible GitHub allows you to fully configure the VMs.
The various variables in this Ansible inventory configure the provided template 'guest.xml.j2'. This template is an XML file that defines the configuration details for virtual machines. The Ansible variables customize this template to specify VM characteristics such as names, IP addresses, CPU settings, and more.
The table opposite lists the inventory variables and their description:
To then deploy our VM, we'll simply call an Ansible playbook which automates the process by issuing all the commands required for deployment, using the inventory defined earlier.
The advantage is that we can define as many different VMs in our inventory, and the playbook will deploy them all, which greatly reduces the user's knowledge requirements.
The procedure for deploying VMs is available here for the Yocto version and here for the Debian version.