getting all ip's from every xen's virtual machines
-
hey guys, i didnt find answers anywhere so im here to ask you how to get all ips of vms from xen
i need it for work where we have around 100 virtual machines
i have a playbook that changes password on vm, and i want to reach all machines so in case of changing password, instead of changing it manually, i will run playbook that gets password from vault and it will update password on all vmsi assume that i can get list of vms
then write some script that will get ips and then inject it to ansible -
See https://docs.ansible.com/ansible/latest/collections/community/general/xen_orchestra_inventory.html
Also, our REST API can list VMs, see https://xen-orchestra.com/docs/restapi.html
-
Maybe this idea will help
xe vm-list params=networks | awk '{print $5}'| sed 's/.$//'