//
you're reading...
Oracle Database Appliance

Oracle Database Appliance (X5-2) Study (Virtualized Platform deployment) section 6

**This article is only for the purpose of demonstrating of my study of the Oracle Database appliance, not for any other purposes.**

Create a guest vm in Oracle ODA

Download the Oracle Linux vm template from Oracle Website, transfer the vm template to the Dom0

Import a vm template (From ODA_BASE)

[root@testodanode01 ~]# oakcli import vmtemplate ol5u11 -files /OVS/OVM_OL5U11_x86_64_PVM.ova -repo odarepo1
[root@testodanode01 ~]# oakcli show vmtemplate

        NAME            MEMORY          VCPU            REPOSITORY

        ol5u11          2048M              2            testrepo1

Create a shared repository for the guest vm

[root@testodanode01 ~]# oakcli create repo testrepo01 -size 50G -dg DATA

Create a guest vm by clone the vm template

[root@testodanode01 ~]# oakcli clone vm testvm01 -vmtemplate ol5u11 -repo testrepo01 -node 0

Modify the guest vm

[root@testodanode01 ~]# oakcli configure vm testvm01 -vcpu 2 -memory 4G -prefnode 0 -failover true

Add additional network to the guest vm

[root@testodanode01 ~]# oakcli show vlan
 
        NAME                     ID    INTERFACE   NODENUM
 
        net1                     1     bond0       0
        net1                     1     bond0       1
        net2                     1     bond1       0
        net2                     1     bond1       1
        priv1                    1     icbond0     0
        priv1                    1     icbond0     1
        vlan27                   27     bond0       0
        vlan27                   27     bond0       1
        vlan17                   17     bond0       0
        vlan17                   17     bond0       1

There are 2 vlans in the ODA vlan17(public network) and vlan27(for backup). Add vlan17 to the vm.

[root@testodanode01 ~]# oakcli configure vm <vmname> -network "['type=netfront,bridge=net1,bridge=vlan17']"
[root@testodanode01 ~]# oakcli modify vm testvm01 -s 'com.oracle.linux.network.device.0:eth0'
[root@testodanode01 ~]# oakcli modify vm testvm01 -s 'com.oracle.linux.network.onboot.0:yes'
[root@testodanode01 ~]# oakcli modify vm testvm01 -s 'com.oracle.linux.network.bootproto.0:static'
[root@testodanode01 ~]# oakcli modify vm testvm01 -s 'com.oracle.linux.network.ipaddr.0:10.208.17.31'
[root@testodanode01 ~]# oakcli modify vm testvm01 -s 'com.oracle.linux.network.netmask.0:255.255.255.0'
[root@testodanode01 ~]# oakcli modify vm testvm01 -s 'com.oracle.linux.network.gateway.0:10.208.17.252'
[root@testodanode01 ~]# oakcli modify vm testvm01 -s 'com.oracle.linux.network.hostname:testvm01'
[root@testodanode01 ~]# oakcli modify vm testvm01 -s 'com.oracle.linux.root-password:1234567'

Start the vm

[root@testodanode01 ~]# oakcli start vm testvm01

Test the server by connect through ssh

[root@testodanode01 ~]# ssh 10.208.17.31
root@10.208.17.31's password:
[root@testvm01 ~]#
Advertisements

About daviewning

I am an Oracle DBA

Discussion

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: