Creating An Image For A New Virtual Machine; Setting Up A Virtual Machine For Access From Eth0 Using An Ip Address; Adding Or Removing A Virtual Disk To Or From A Virtual Machine - Oracle X6-2-HA Deployment And User's Manual

Database appliance
Hide thumbs Also See for X6-2-HA:
Table of Contents

Advertisement

Creating an Image for a New Virtual Machine

Use the oakcli clone vm command to create an image for a new virtual machine on
Oracle Database Appliance Virtualized Platform.
By default, the image inherits the content and configuration information from the
template or from the virtual machine that you are cloning and resides in the same
repository as the source. Unless you are using local repositories for your virtual
machines, include the-node clause in the oakcli clone command to identify the node
that should run the cloning process. To create a snap clone, which will only contain the
configuration metadata, include the -snap clause in the oakcli clone command.
Setting Up a Virtual Machine for Access from eth0 Using an IP
Address
Configure a network device (eth0) with an IP address for a virtual machine.
The following set of commands configures the virtual machine vmol6u3 (which has
ovmd) with the IP address 192.168.16.51 for the eth0 interface and sets the root
password.
oakcli clone vm vmol6u3 -vmtemplate ol6u3 -repo shrepo -node 0
oakcli modify vm vmol6u3 -addnetwork priv1
oakcli start vm vmol6u3
oakcli modify vm vmol6u3 -s 'com.oracle.linux.network.device.0:eth0'
oakcli modify vm vmol6u3 -s 'com.oracle.linux.network.onboot.0:yes'
oakcli modify vm vmol6u3 -s 'com.oracle.linux.network.bootproto.0:static'
oakcli modify vm vmol6u3 -s 'com.oracle.linux.network.ipaddr.
0:192.168.16.51'
oakcli modify vm vmol6u3 -s 'com.oracle.linux.network.netmask.
0:255.255.255.0'
oakcli modify vm vmol6u3 -s 'com.oracle.linux.root-password:password'

Adding or Removing a Virtual Disk to or from a Virtual Machine

Use the oakcli modify vm command to add or remove a virtual disk (vdisk) from a
virtual machine.
Do not use the -attachvdisk or the -detachvdisk option with the -addnetwork, -
deletenetwork, or -s key:value pair parameters.
To attach a virtual disk to a virtual machine, use the oakcli modify vm vm_name
command with the -attachvdisk clause that names the virtual disk.
oakcli modify vm vm_name -attachvdisk vdisk_name
To detach a virtual disk from a virtual machine, use the oakcli modify vm
vm_name command with the -detachvdisk clause that names the virtual disk.
oakcli modify vm vm_name -detachvdisk vdisk_name
How to Manage Virtual Machines on Oracle Database Appliance Virtualized Platform
Chapter 12
12-29

Advertisement

Table of Contents
loading

Table of Contents