Use the oakcli modify vm
command to modify an existing virtual machine.
Syntax
oakcli modify vm vmname [-attachvdisk|-deletenetworkvlanname] [-s key1:value1;key2:value2;...] [-addnetwork|-deletenetworkvlanname] [-h]
Parameters
Parameter | Description |
---|---|
|
(Optional) Attaches the named VDisk (virtual disk) to the named virtual machine. |
|
(Optional) Detaches the named VDisk disk from the named virtual machine. |
|
(Optional) Identifies a message consisting of one or more semicolon separated key:value pairs to send to the ovmd utility. Each key and value is separated by a colon (:) and each key/value pair is separated from the next key/value pair by quotation marks. |
|
(Optional) Adds a VLAN network to the named virtual machine. |
|
(Optional) Removes a VLAN network from the named virtual machine. |
|
(Optional) Displays help for using the command. |
Usage Notes
Do not use the -attachvdisk
or the -detachvdisk
option with the -addnetwork
, -deletenetwork
, or -s
parameters.
Include only one of the -addnetwork
, -deletenetwork
, or -s
parameters when you use this command.
Example 4-5 Sending a Message to a Running Virtual Machine
Update the root
user password for the gc_11g
virtual machine:
oakcli modify vm gc_11g -s "com.oracle.linux.root-password:root123"