Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Log onto the VM through the VirtualBox console which will be shown when the VM has started. 

The username is root and the password is oracle

 

1. When logged onto the desktop, right click and click on "Open Terminal" to bring up the terminal.

Image Removed

 

2. In the terminal edit  /etc/sysconfig/network

No Format
[root@localhost ~]# vi /etc/sysconfig/network

and change to:

No Format
NETWORKING=yes
HOSTNAME=source

 

3. Edit /etc/hosts and add the following two hosts entries

No Format
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1		localhost
::1				localhost
10.0.2.4       source-int source dbv01
10.0.2.5       target-int target dbv02

 

4. Right click on the Network Manager icon on the top right hand corner, and click on "Edit Connections..."

Image Removed

5. Click on Auto eth1 and click on "Edit..."

Image Removed

6. Select the "IPv4 Settings" tab. Set the Method to "Manual" and add following details:

Address: 10.0.2.4

Netmask: 24

Gateway: 10.0.2.1

DNS Servers: 8.8.8.8

Then click on Apply

Image Removed

 

7. View the network interface

No Format
# ifconfig
eth1      Link encap:Ethernet  HWaddr 08:00:27:5B:82:6E  
          inet addr:10.0.2.4  Bcast:10.0.2.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe5b:826e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12 errors:0 dropped:0 overruns:0 frame:0
          TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:9201 (8.9 KiB)  TX bytes:1775 (1.7 KiB)
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:282 errors:0 dropped:0 overruns:0 frame:0
          TX packets:282 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:17588 (17.1 KiB)  TX bytes:17588 (17.1 KiB)

There is only one network interface:

  • eth1 which is a fixed IP address. This is used to connect between the source and target servers and also to the Internet. This IP is 10.0.2.4.

8. Test if the network connection is working. Use Control-C to stop the ping.

No Format
# ping www.dbvisit.com
PING dbvisit.com (67.222.54.241) 56(84) bytes of data.
64 bytes from 67-222-54-241.unifiedlayer.com (67.222.54.241): icmp_seq=1 ttl=47 time=190 ms
64 bytes from 67-222-54-241.unifiedlayer.com (67.222.54.241): icmp_seq=2 ttl=47 time=189 ms
64 bytes from 67-222-54-241.unifiedlayer.com (67.222.54.241): icmp_seq=3 ttl=47 time=192 ms
64 bytes from 67-222-54-241.unifiedlayer.com (67.222.54.241): icmp_seq=4 ttl=47 time=193 ms
^C
 

9. scp (secure copy) does not work because there is display output in ~oracle/.bashrc and ~oracle/.bash_profile. To fix this:

a. Edit .bashrc in the home directory of oracle

No Format
cd ~oracle
No Format
vi .bashrc

Put a # in front of the following line:

No Format
#cat /u01/oracle/Desktop/readme.txt

Save the .bashrc file and exit out of the file with vi command - :wq!When the machine_setup script has been edited to accept the EULA and the memory parameter adjusted, execute the script. The script takes about 5-10 minutes to execute depending on your host PC. When the script finishes, both the source and target machines should be running and available to log into.

 

Note

Before running the machine_setup script ensure that these two steps have been completed:

  • Check the Host-only Network Configuration in the Virtual Box settings. If you already had VirtualBox installed, check that you have a Host-only network configured on the host. If this is a fresh install of VirtualBox, check that the Host-only network adapter is configured. Use the Oracle VM VirtualBox Manager GUI, Select File --> Preferences, then in the VirtualBox - Settings window, select Network. In the Network pane, select the Host-only Networks tab and check you have an entry named vboxnet0. If not, click the add host-only network button to add it.

 

  • Accept the Virtual Box licence agreement: Before running the setup scripts please ensure you alter the script to accept the Virtual Box licence agreement - this is detailed in 03 - Accept the License Agreement

What the script does

Imports the source and target machines into VirtualBox, sets up the Host-only adapter in the network settings, sets up the shared folder drive, sets the snapshot folder and snapshot the machine as a fresh clean starting position that can be returned to if required. The machine_setup script will then start both source and target machines.

On Windows

In the %REP_HOME%\Rep Attack 11g XE directory, execute the machine_setup.bat script by double clicking on it. A command prompt window will open and the RepAttack source machine will be configured and started, followed by the target machine.

For example:

Image Added

On Mac OS X

Open a Terminal window and change directory to the REP_HOME directory.

Execute the machine_setup.bash script.

No Format
bash-3.2$ ./machine_setup.bash

On Linux

TBD.