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

    XOA guest tools error

    Scheduled Pinned Locked Moved Xen Orchestra
    18 Posts 6 Posters 3.7k 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.
    • C Offline
      cyrus104
      last edited by

      I think I made it past that issue using the Xen commands.

      [21:14 xcpng1 ~]# xe vm-cd-remove  vm=XOA_DEB10 cd-name=Old\ version\ of\ guest-tools.iso
      [21:14 xcpng1 ~]# xe vm-start vm=XOA_DEB10
      
      1 Reply Last reply Reply Quote 0
      • C Offline
        cyrus104
        last edited by

        Getting the same issue with the new guest-tools.iso

        bd528e7c-4f3a-4db7-9b7b-1d863d8f27f2-image.png

        1 Reply Last reply Reply Quote 0
        • C Offline
          cyrus104
          last edited by

          Thoughts on some ways to fix this?

          T 1 Reply Last reply Reply Quote 0
          • DanpD Offline
            Danp Pro Support Team
            last edited by

            Did you stop and then start the VM as indicated in the error message?

            1 Reply Last reply Reply Quote 0
            • C Offline
              cyrus104
              last edited by

              Yes, and rebooted the VM and rebooted the host.

              1 Reply Last reply Reply Quote 0
              • C Offline
                cyrus104
                last edited by

                Is there a way to do scripting in XO? I would like to script a stop and then wait 60 second and then start the vm.

                Even though it was scripted in XO it would need to be saved to and run from xcp-ng because the vm that I want to stop/start is the XO vm.

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

                  XO got a CLI and a API. I'm not sure to see the connection with your problems however.

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    tuxen Top contributor @cyrus104
                    last edited by

                    @cyrus104 said in XOA guest tools error:

                    Thoughts on some ways to fix this?

                    The problem was semantics... The command you really wanted was xe vm-cd-eject. Issuing a xe vm-cd-remove not only removes the .ISO but also the DVD-drive. In this case, you must recreate the device. It's possible to do so through the CLI, but it can be a bit tricky because it's needed to identify a free device position... IMHO the easier way is via XCP-ng Center:

                    Image from https://support.citrix.com/article/CTX132411:

                    alt text

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      cyrus104
                      last edited by

                      @tuxen thanks for the info, I give that a try. I only ended up running the xe vm-cd-remove because my XO vm was failing to start due to having the guest-tools iso being mounted. I couldn't install the tools and I couldn't remove the tools mount from XO so I ended up tinkering with the xe command to see if I could get it.

                      I think this might be an issue with trying to install guest-tools on an XO vm that is running on the xcp-ng. I just tested it on 2 new builds and have the same issue. As soon as I shutdown the XO vm, then go into the xcp-ng host and using xe to start the XO vm things seems to be fine.

                      I thought I would be able to hotplug the guest-tools iso into the XO vm, install guest-tools, unmount, reboot the XO vm and all would be good.

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

                        I don't have reports of people having similar issue. I bet on a configuration problem somewhere in your infra, but without the possibility to reproduce the issue it's hard to assist.

                        1 Reply Last reply Reply Quote 0
                        • stormiS Offline
                          stormi Vates 🪐 XCP-ng Team
                          last edited by

                          This may be related to https://github.com/xcp-ng/xcp/issues/282

                          My guess is that the tools ISO was mounted into the XO VM, then updates were applied to the host that contained an update of the tools ISO, which led to the XO VM having an non-existing tools ISO still mounted.

                          I have made a change in 8.1 to avoid that (eject all tools ISOs after updating the ISO, not just from shutdown VMs), and testing will tell us whether that's a good solution.

                          To solve the situation, you usually just need to eject the ISO with xe vm-cd-eject, not xe vm-cd-remove, as @tuxen said. If you had a snapshot of the VM before removing the CD drive, I think restoring it should bring the CD drive back and then you can eject the CD with xe vm-cd-eject... Unless restoring the snapshot also fails. Else as tuxen said you need to recreate a CD/DVD device and attach it to the VM.

                          iw0der created this issue in xcp-ng/xcp

                          closed This operation cannot be performed because the specified virtual disk could not be found #282

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