@markxc said in create a new vm using a iso setting cpu ram network via api:
Out of curiosity: how do you handle the Xen Orchestra appliance installation?
We use Packer, a Debian iso and an Ansible playbook in the ansible provisioner. See https://developer.hashicorp.com/packer/integrations/hashicorp/ansible/latest/components/provisioner/ansible
With this setup, we achieve these tasks:
- Create VM, mount ISO, perform install, and detect when installation is complete
- Shut down the VM
- Export VM as an OVA template
We also have a CI/CD pipeline doing this automatically.