4 Replies Latest reply on Feb 6, 2017 5:21 PM by dave carvalho

    Manually delete not shown VMs in VM Manager web interface

    dave carvalho

      Hello.

      I have one VM in "Unassigned Virtual Machines" that when I try to delete nothing happens, not even error messages.

      I've also imported an .OVA from Virtual Box into Virtual Appliances and everything went ok, but the VM is not shown under VM manager Virtual Machines.  Strangely,  it shows up via

      OVM command line.

       

      So how can I perform the following tasks keeping everything in a consistent mode?

      • Delete the orphan VM.
      • Make the  new VM created from the virtual appliance available for use.

      I think that there must be a better method that manually delete their respective files.

       

      Thanks!

        • 1. Re: Manually delete not shown VMs in VM Manager web interface
          amann-Oracle

          Answers Inline :

           

          1. Delete the orphan VM.

          >>>> Try to move the Guest VM from Unassigned Virtual Machines to any running hypervisior and then try to delete the Guest VM. If the same fails try it from OVMCLI. Can you post the error message when you try to delete it from OVMCLI

           

          2. Make the  new VM created from the virtual appliance available for use.

          >>>> I suppose you can find it by selecting server pool (not servers) => Choose Perspective as Virtual Machine. If you still fail to find it, try to start Guest VM using xm commands :

                          # xm create vm.cfg

                                  vm.cfg location : /OVS/Repositories/xxxx/VirtualMachines/xxxx/vm.cfg

                   

                  After which you would be able to see that under any of the server. If you wish to start it on a particular server. Migrate it to that host. Edit Guest VM Window => Change Start Policy to Current Server

          1 person found this helpful
          • 2. Re: Manually delete not shown VMs in VM Manager web interface
            dave carvalho

            Thank you so much for the reply!

            2. Worked perfectly, thank you!

             

            As for 1.

            Vm is also not listed in CLI.

            When trying to move it to a server, I get:

            GEN_000002:No object of type Vm with id null(0004fb00000600007494b4ba7374c2cb), is currently in the db.

            • 3. Re: Manually delete not shown VMs in VM Manager web interface
              amann-Oracle

              Seems Oracle VM Manager is not synchronized with the internal DB. Can you try below and let me know if it helps :

              1. Touch a file called "/tmp/.resyncUI" as the oracle user:

                           # su - oracle

                           # touch /tmp/.resyncUI

               

                    If the file cannot be touched as the oracle user, just change the privileges to allow anyone to delete it, so that the manager can delete it after doing a re-sync:

               

              2.          # touch /tmp/.resyncU

                           # chmod 666 /tmp/.resyncUI

               

              3.   Re-start the manager service

                         # service ovmm restart

              1 person found this helpful
              • 4. Re: Manually delete not shown VMs in VM Manager web interface
                dave carvalho

                Awesome!

                Didn't know this .resyncUI trick, but it worked fine!

                Thank you so much, you solved both my problems.

                Kind regards

                David