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.9k 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 Offline
        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

          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
          • First post
            Last post