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/.$//'
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login