DHCP for Oracle VM Server

Apparently, it is not supported to use dynamic DHCP for Oracle VM Server. Not knowing that, I installed Oracle VM on my laptop.

Oracle® VM Server User's Guide Release 2.1
If your computers uses DHCP you should configure your DHCP server to assign static DHCP addresses
I installed Oracle VM Server and Oracle VM Manager in the same laptop at my work. I set it up as "Server Pool Master" and "Utility Server".
I then copied OEL55 and Solaris10 VM templates. Created 2 new virtual machines with DHCP. These all worked fine.

Then I brought back the laptop to my home. I booted it up and it of course took a totally different IP address. Then my quest for reconfigure without reinstall began!

There were 3 kinds of places where I changed old IP address to new address. After all these changes, VM guest worked but I couldn't resurrect server pool setting. Hopefully, next time I have to change IP address, I'll learn how to 'hack' this out more completely.

  1. plain text file: /etc/hosts ,  /etc/ocfs2/cluster.conf
    Just edit with 'vi'.  I'm not sure if editing latter file was necessary.
  2. Oracle XE db
    You can pretty much guess it. There are column named 'IP' in a few tables under 'ovs' schema. So...
    SQL> UPDATE (table_name) SET IP='192.168.1.6'
  3. Berkeley DB
    There are 4 files named \*.db which ovs-agent uses where IP address is saved. These are binary files with fixed size.
    I couldn't figure out to change these legitimately. So I resorted to 'sed':
    $ service ovs-agent stop
    $ sed -i  's/xxx.xxx.xxx.xxx/192.168.001.006/g' (name).db


Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today