oakcli modify vm

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

-attachvdiskvdisk_name

(Optional) Attaches the named VDisk (virtual disk) to the named virtual machine.

-detachvdiskvdisk_name

(Optional) Detaches the named VDisk disk from the named virtual machine.

-s key1:value1;key2:value2;...

(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.

-addnetworkvlanname

(Optional) Adds a VLAN network to the named virtual machine.

-deletenetworkvlanname

(Optional) Removes a VLAN network from the named virtual machine.

-h

(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"