Navigation

    XCP-ng

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Vagrant causing XCP-ng VM (with Nested Virtualization ON) to abruptly reboot

    Compute
    3
    9
    223
    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.
    • I
      itnok last edited by

      Am experiencing a weird behavior and wondering if anybody experienced something similar or has some hints/guidance about it.

      On a server running XCP-ng, VMs (running Ubuntu 18.04) with nested virtualization ON are rebooting abruptly when Vagrant (2.2.14) is trying to bring up a libvirt/kvm “sub-guest” machine (NO issue if the machine uses QEMU rather… although too slow for the purpose!). The last line logged by vagrant before the XCP-ng VM restarts itself are something like:

      ==> vagrant-5-project-2-concurrent-0-job-681: Creating shared folders metadata...
      ==> vagrant-5-project-2-concurrent-0-job-681: Starting domain.
      ==> vagrant-5-project-2-concurrent-0-job-681: Error when updating domain settings: undefined method 'strip' for nil:NilClass
      ==> vagrant-5-project-2-concurrent-0-job-681: Waiting for domain to get an IP address...
      ==> vagrant-5-project-2-concurrent-0-job-681: Waiting for SSH to become available...
      

      The VM just blows up and it reboots. It was working fine until some time ago. It looks like an update of XCP-ng might have broken it?

      Anyone experiencing similar problems?
      Is anyone able to provide some advice?

      Thank!

      1 Reply Last reply Reply Quote 0
      • olivierlambert
        olivierlambert XCP-ng Team Admin Vates Team last edited by

        Nested code in Xen is not ultra-stable (it's also sensitive to your hardware). So I'm not really surprised about this...

        I 1 Reply Last reply Reply Quote 0
        • I
          itnok @olivierlambert last edited by

          @olivierlambert sad to know! Most of all as it was working beautifully until very recently...

          Thanks for the feedback though.

          Do you have suggestion for CI using Vagrant to spin up machines hosted on XCP-ng? Is Vagrant xen-server plug-in considered robust enough? (Not judging from its latest version number... 0.0.6... double-O is license to kill, right?!)

          Thanks!

          1 Reply Last reply Reply Quote 0
          • olivierlambert
            olivierlambert XCP-ng Team Admin Vates Team last edited by olivierlambert

            That's a good question. If I could, I would do a Vagrant plugin for XO (instead of XCP-ng).

            I know @ddelnano started to work on a Packer plugin, but I don't know how hard it is to write a Vagrant plugin.

            I never used Vagrant myself, but anyone interested to work on that is very welcome!

            I 1 Reply Last reply Reply Quote 0
            • I
              itnok @olivierlambert last edited by

              @olivierlambert was thinking about this specifically...

              https://github.com/xapi-project/vagrant-xenserver/releases

              It looks like it did not receive that much love recently, but it should work...

              D olivierlambert 2 Replies Last reply Reply Quote 0
              • D
                ddelnano @itnok last edited by

                @itnok yea it appears the project uses the plugin api for Vagrant 1.x which may not work with Vagrant 2.x (the latest version) I'm not sure if the plugin api has changed significantly since I haven't written any plugins myself.

                1 Reply Last reply Reply Quote 0
                • olivierlambert
                  olivierlambert XCP-ng Team Admin Vates Team @itnok last edited by

                  @itnok I would prefer a Vagrant plugin for XO, not XCP-ng.

                  I 1 Reply Last reply Reply Quote 0
                  • I
                    itnok @olivierlambert last edited by

                    @olivierlambert probably dumb question... but where can I find a clear complete overall document listing all endpoints for the Xen Orchestra API?

                    Tried the Vagrant plug-in mentioned above but I do agree it would be better to have a version of it targeting XO API rather than directly Xen/XCP-ng XAPI...

                    olivierlambert 1 Reply Last reply Reply Quote 0
                    • olivierlambert
                      olivierlambert XCP-ng Team Admin Vates Team @itnok last edited by

                      @itnok Good question 🙂 Take a look there: https://xen-orchestra.com/docs/architecture.html#api and here for the list of all endpoints: https://xen-orchestra.com/docs/architecture.html#xo-cli-cli

                      1 Reply Last reply Reply Quote 1
                      • First post
                        Last post
                      XCP-ng Pro Support

                      XCP-ng Pro Support