Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions source/adminguide/virtual_machines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,11 @@ snapshot:
VM snapshots are deleted automatically when a VM is destroyed. You don't
have to manually delete the snapshots in this case.

Unmanaging Virtual Machines
===========================

.. include:: virtual_machines/unmanage_vms.rst


Importing Virtual Machines
===========================
Expand Down
16 changes: 0 additions & 16 deletions source/adminguide/virtual_machines/VM_Ingestion.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,6 @@
specific language governing permissions and limitations
under the License.

About Importing VMs
--------------------

Unmanaged Virtual Machines
~~~~~~~~~~~~~~~~~~~~~~~~~~

As of ACS 4.14, CloudStack has the concept of **unmanaged** virtual machines. These are virtual machines that are on CloudStack
managed hosts, but that are not in CloudStack's database and therefore CloudStack cannot control (manage) then in any way. Previously,
such VMs could exist, but CloudStack did not 'see' them (their existence *would* be reported in logs as unrecognised VMs).

From ACS 4.14 onwards, CloudStack is able to list these VMs via the listUnmanagedInstances API command and then import (also known as ingest)
those unmanaged VMs via the importUnmanagedInstance API so that they become CloudStack managed guest instances

.. note:: This is currently only available for **vSphere** clusters.


Use Cases and General Usage
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
81 changes: 81 additions & 0 deletions source/adminguide/virtual_machines/unmanage_vms.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
About Unmanaged Virtual Machines
--------------------------------

As of ACS 4.14, CloudStack has the concept of **unmanaged** virtual machines. These are virtual machines that are on CloudStack
managed hosts, but that are not in CloudStack's database and therefore CloudStack cannot control (manage) then in any way. Previously,
such VMs could exist, but CloudStack did not 'see' them (their existence *would* be reported in logs as unrecognised VMs).

From ACS 4.14 onwards, CloudStack is able to list these VMs via the listUnmanagedInstances API command and then import (also known as ingest)
those unmanaged VMs via the importUnmanagedInstance API so that they become CloudStack managed guest instances

From ACS 4.15 onwards, administrators are able to unmanage guest virtual machines.

.. note:: This is currently only available for **vSphere** clusters.

Unmanaging Virtual Machines via API
-----------------------------------

Administrators are able to unmanage guest virtual machines from CloudStack. Once unmanaged, CloudStack can no longer monitor, control or administer the provisioning and orchestration related operations on a virtual machine.

To unmanage a guest virtual machine, an administrator must invoke the unmnageVirtualMachine API passing the ID of the virtual machine to unmanage. The API has the following preconditions:
Comment thread
nvazquez marked this conversation as resolved.
Outdated

- The virtual machine must not be destroyed
- The virtual machine state must be 'Running’ or ‘Stopped’
- The virtual machine must be a VMware virtual machine

The API execution will perform the following pre-checks, failing if they are not met:

- There are no volume snapshots associated with any of the virtual machine volumes
- There is no ISO attached to the virtual machine

.. note:: This is currently only available for **vSphere** clusters.


Preserving unmanaged virtual machine NICS
Comment thread
nvazquez marked this conversation as resolved.
Outdated
-----------------------------------------

The zone setting: unmanage.vm.preserve.nics can be used to preserve virtual machine NICs and its MAC addresses after unmanaging them. If set to true, the virtual machine NICs (and their MAC addresses) are preserved when unmanaging it. Otherwise, NICs are removed and MAC addresses can be reassigned.


Unmanaging virtual machine actions
----------------------------------

- Clean up virtual machine NICs and deallocate network resources used such as IP addresses and DHCP entries on virtual routers.

- If ‘unmanage.vm.preserve.nics’ = ‘false’ then the NICs are deallocated and removed from CloudStack

- If ‘unmanage.vm.preserve.nics’ = ‘true’ then the NICs remain allocated and are not removed from the database. The NIC’s MAC addresses remain preserved and therefore cannot be assigned to any new NIC.

- Clean up virtual machine volumes in the CloudStack database

- Clean up virtual machine snapshots in the CloudStack database (if any) · Revoke host access to any managed volumes attached to the VM
Comment thread
nvazquez marked this conversation as resolved.
Outdated

- Clean up the virtual machine from the following:

- Remove the virtual machine from security groups (if any)

- Remove the virtual machine from instance groups (if any)

- Remove firewall rules for the virtual machine (if any)
Comment thread
nvazquez marked this conversation as resolved.

- Remove forwarding rules for the virtual machine (if any)
Comment thread
nvazquez marked this conversation as resolved.
Outdated

- Remove load balancing rules for the virtual machine (if any)

- Disable static NAT (if the virtual machine is assigned to it)

- Remove the virtual machine from affinity groups (if any)

- Set VM details as removed in the CloudStack database
Comment thread
nvazquez marked this conversation as resolved.
Outdated

- Decrement the account resources count for volumes and virtual machines

- Generate usage events:

- For volumes destroyed, with type: ‘VOLUME.DELETE’

- For virtual machine snapshots destroyed (if any), with type: ‘VMSNAPSHOT.DELETE’
Comment thread
nvazquez marked this conversation as resolved.
Outdated

- For virtual machine NICs destroyed: with type: ‘NETWORK.OFFERING.REMOVE’

- For the virtual machine being unmanaged: stopped and destroyed usage events (similar as the generated usage events when expunging a virtual machine), with types: ‘VM.STOP’ and ‘VM.DESTROY
Comment thread
nvazquez marked this conversation as resolved.
Outdated