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

    XO spawned VM from template has wrong VIF network order

    Scheduled Pinned Locked Moved Xen Orchestra
    25 Posts 4 Posters 5.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.
    • M Offline
      mietek @mietek
      last edited by

      @olivierlambert - any ideas?

      Thanks

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        mietek @mietek
        last edited by

        @olivierlambert - any ideas as I ran out of options.

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

          Sorry I'm ultra busy at the moment and just getting out of COVID. Hopefully, someone else in the community can help you 🙂

          M 1 Reply Last reply Reply Quote 0
          • tjkreidlT Offline
            tjkreidl Ambassador @mietek
            last edited by

            @mietek Might need to change the NIC order? Should be possible in a similar way in XCP-ng as in XenServer; see for example: https://support.citrix.com/article/CTX135809/how-to-change-order-of-nics-in-xenserver

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              mietek @olivierlambert
              last edited by

              @olivierlambert
              Thanks for the info and get well soon!

              1 Reply Last reply Reply Quote 0
              • M Offline
                mietek @tjkreidl
                last edited by mietek

                @tjkreidl Thanks for the article. Unfortunately this machine is full of running VMs and changing NICs order on the host might have a global impact on all of them so it seems like an overkill.
                I have created this template on this machine and created VM based on that template right away and I experience this issue. It looks like there is a problem with the template creation or template based VM creation process.
                Is there a way to change it NIC order in the template itself?

                tjkreidlT 1 Reply Last reply Reply Quote 0
                • tjkreidlT Offline
                  tjkreidl Ambassador @mietek
                  last edited by

                  @mietek As to changing the NIC order in a template, not as far as I know. That is a host/pool configuration setting.

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    mietek @tjkreidl
                    last edited by

                    @tjkreidl This is surprising then that VM spawned from the template would even be able to change NIC order. This make no sense.
                    On the other hand how does the template know what is the list on NICs attached to the VM created from it and what should be the order of them then?

                    tjkreidlT 1 Reply Last reply Reply Quote 0
                    • tjkreidlT Offline
                      tjkreidl Ambassador @mietek
                      last edited by

                      @mietek Depends on the VIF that the VM had in the template, I would imagine. Easy enough to change once you have your new VM. Worst case, create a new template.
                      I have seen NICs randomly change order on hosts in the past - scary stuff!

                      M ForzaF 2 Replies Last reply Reply Quote 0
                      • M Offline
                        mietek @tjkreidl
                        last edited by

                        @tjkreidl This is what I am trying to figure it out. There has to be a reason and there has to be a solution to it. Any other tips or ideas?

                        1 Reply Last reply Reply Quote 0
                        • ForzaF Offline
                          Forza @tjkreidl
                          last edited by

                          @tjkreidl said in XO spawned VM from template has wrong VIF network order:

                          I have seen NICs randomly change order on hosts in the past - scary stuff!

                          This is why Linux switched from eth0 naming to names like enp5s0 etc. https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

                          M 1 Reply Last reply Reply Quote 0
                          • M Offline
                            mietek @Forza
                            last edited by

                            @Forza Hey - thanks for the input. It would be valid if I would reboot xcp host though. All this is happening on live xcp server which is problematic.
                            It's no the end of the world but there has to be a way to debug it.
                            Any tips on that?

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post