A.16 add Vm

Adds a virtual machine to an Oracle VM Server, server pool, or anti affinity group.

Syntax

add Vm instance to { AntiAffinityGroup | Server | ServerPool } instance

Where instance is:

{ id=value | name=value }

Description

This command adds a virtual machine to an Oracle VM Server, server pool, or anti affinity group. The virtual machine cannot be running, and must be stopped before using this command.

Options

The following table shows the available options for this command.

Option

Description

{ AntiAffinityGroup | Server | ServerPool }

The object on which to add the virtual machine.

{ id=value | name=value }

The instance of the object using either the id or name option, for example name=MyServerPool.

Examples

Example A.21 Adding a virtual machine to a server pool

OVM> add Vm name=MyVM to ServerPool name=MyServerPool

Example A.22 Adding a virtual machine to an Oracle VM Server

OVM> add Vm name=MyVM to Server name=MyServer

Example A.23 Adding a virtual machine to an anti affinity group

OVM> add Vm name=MyVM to AntiAffinityGroup name=MyAAGroup

See Also