XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    getting all ip's from every xen's virtual machines

    Scheduled Pinned Locked Moved Xen Orchestra
    3 Posts 3 Posters 2.0k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      siemba
      last edited by siemba

      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 vms

      i assume that i can get list of vms
      then write some script that will get ips and then inject it to ansible

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Online
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • splastunovS Offline
          splastunov
          last edited by

          Maybe this idea will help

          xe vm-list params=networks | awk '{print $5}'| sed 's/.$//'
          
          1 Reply Last reply Reply Quote 0
          • First post
            Last post