Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1572942.1
Update Date:2014-07-02
Keywords:

Solution Type  Technical Instruction Sure

Solution  1572942.1 :   ODAVM: How to Move a User VM from One Node on ODA to the Other  


Related Items
  • Oracle Database Appliance
  •  
  • Oracle Database Appliance Software
  •  
Related Categories
  • PLA-Support>Eng Systems>Exadata/ODA/SSC>Oracle Database Appliance>DB: ODA_EST
  •  




Applies to:

Oracle Database Appliance - Version All Versions to All Versions [Release All Releases]
Oracle Database Appliance Software - Version 2.5.0.0 and later
Information in this document applies to any platform.

Goal

How to Move the User VM from one node on ODA to the other.

Note:  ODA 2.5.0.0.0 (for ODA V1) and ODA 2.5.5.0.0 for X3-2 were the first versions of the ODA to support VM

Solution

1. Check the vm state with the command:  oakcli show vm <vmname>

In this example, testbal is the vm that we wish to move from odarepo2 on host odain2 to odarepo1 on host odain1:

[root@odain2 ~]# oakcli show vm testbal
Resource: testbal
        AutoStart       :       restore
        CPUPriority     :       100
        Disks           :       |file:/OVS/Repositories/odarepo2/Vi
                                rtualMachines/testbal/System.img,xv
                                da,w|
        Domain          :       XEN_PVM
        ExpectedState   :       offline
        Keyboard        :       en-us
        MaxMemory       :       2048
        MaxVcpu         :       2
        Memory          :       4096
        Mouse           :       OS_DEFAULT
        Name            :       testbal
        Networks        :       |type=netfront,bridge=net1|
        NodeNum         :       1
        OS              :       OL_5
        PrivateIP       :       None
        ProcessorCap    :       100
        RepoName        :       odarepo2
        State           :       Online  <<<<<<<
        TemplateName    :       otml_apptmpl
        Vcpu            :       4
        cpupool         :       default-unpinned-pool
        vncport         :       5902

 

2. Stop the vm if online:

[root@odain2 ~]# oakcli stop vm testbal

Shutdown VM initiated for testbal

 

3. Check the vm status:

[root@odain2 ~]# oakcli show vm|grep -i testbal
        testbal                                 4096               4            OFFLINE         odarepo2
[root@odain2 ~]#

 

4. Connect to dom0 of node2 to create tgz file of the vm:

cd /OVS/Repositories/odarepo2/VirtualMachines/testbal

tar -zcvf /OVS/testbal-vm.tgz *img *cfg

Make sure the final tgz does not contain any subdirectories.


5. Import tgz as vmtemplate to the other node, connected to odabase odain1-dom0:

[root@odain1 ~]# oakcli import vmtemplate OVMtestbal -files /OVS/testbal-vm.tgz -repo odarepo1

Imported VM Template

This will create the directory structure /OVS/Repositories/odarepo1/Templates/otml_OVMtestbal and extrace the files *img and *cfg in here.

 

6. Create the vm out of vmtemplate just created:

[root@odain1 ~]# oakcli clone vm clone-testbal -vmtemplate OVMtestbal -repo odarepo1

Cloned VM : clone-testbal

[root@odain1 ~]#
[root@odain1 ~]# oakcli show vm|grep -i clone-testbal

          NAME                                  MEMORY          VCPU            STATE           REPOSITORY

        OL6vm                                   4096               4            OFFLINE         odarepo1
        appsvm                                  4096               2            ONLINE          odarepo2
        clone-testbal                            4096               4            OFFLINE         odarepo1
        testbal                                 4096               4            OFFLINE         odarepo2


7. Verify the vm status and start the vm:

[root@odain1 ~]# oakcli start vm clone-testbal

Started VM : rkm-test-bal


[root@odain1 ~]# oakcli show vm clone-testbal
Resource: rkm-test-bal
        AutoStart       :       restore
        CPUPriority     :       100
        Disks           :       |file:/OVS/Repositories/odarepo1/Vi
                                rtualMachines/clone-testbal/System.i
                                mg,xvda,w|
        Domain          :       XEN_PVM
        ExpectedState   :       offline
        Keyboard        :       en-us
        MaxMemory       :       2048
        MaxVcpu         :       2
        Memory          :       4096
        Mouse           :       OS_DEFAULT
        Name            :       clone-testbal
        Networks        :       |type=netfront,bridge=net1|
        NodeNum         :       0
        OS              :       OL_5
        PrivateIP       :       None
        ProcessorCap    :       100
        RepoName        :       odarepo1
        State           :       Online
        TemplateName    :       otml_OVMtestbal
        Vcpu            :       4
        cpupool         :       appspool
        vncport         :       5901

 

 

Note:  If the cpupool assigned to the vm does not have cpu assigned, the error below will be encountered:

[root@odain1 ~]# oakcli start vm clone-testbal

OAKERR:7019 Unable to start VM because cpu pool default-unpinned-pool is empty


[root@odain1 ~]# oakcli show cpupool
Usage:
        oakcli show cpupool -node <nodenum>
[root@odain1 ~]# oakcli show cpupool -node 0
                     Pool                           Cpu List                                           VM List
    default-unpinned-pool                                 []                         ['OL6vm', 'clone-testbal']  <<< Cpu List is empty here
                 appspool                   [16, 17, 18, 19]                                                []
           odaBaseCpuPool     [0, 1, 2, 3, 4, 5, 6, 7, 8, 9,                                       ['oakDom1']
                               10, 11, 12, 13, 14, 15, 20, 2
                                                  1, 22, 23]

 In this case, cpupool needs to be identified and configured before starting the vm:

[root@odain1 ~]# oakcli configure vm clone-testbal -cpupool appspool

Configured VM : clone-testbal. The settings will take effect upon the next restart of this VM.

 

 

 

 


Attachments
This solution has no attachment
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback