Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (21 sloc) 1.27 KB

onevcenter cleartags

Overview

This command is designed to remove every OpenNebula's custom attribute on a VMware Virtual Machine. When OpenNebula imports a VMware's VM, it adds some attributes. In some operations, like re-importing a VM to OpenNebula, there might be a conflict and errors could appear. These are the attributes that will be removed:

  • opennebula.vm.running
  • opennebula.vm.id
  • opennebula.disk.*

Usage

A use case example for this addon is for re-importing a VMware VM to OpenNebula. The workflow in such scenario would be like this:

  • Use onevcenter cleartags on the VM that will be removed:
.. prompt:: bash $ auto

    $ onevcenter cleartags <vmid>

vmid is the id of the VM whose attributes will be cleared.

  • Un-register VM
.. prompt:: bash $ auto

    $ onevm recover --delete-db <vmid>
  • Re-import VM: on the next host's monitoring cycle you will find this VM under Wilds tab, and it can be safely imported.
You can’t perform that action at this time.