Versions Compared

Key

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

Table of Contents

Setting up the Virtual Machines

...

Start the VM. Edit /etc/network/interfaces:

Code Block
languagexml

$ sudo vi /etc/networkingnetwork/interfaces

For the primary interface it will list the lines:

Code Block
languagexml

auto eth0
iface eth0 inet dhcp

...

For the host-only interface (likely eth1), you are going to change 'dhcp' to 'static' and add the static configuration. Assuming the host-only adapter has the address 192.168.56.1 (default), then edit the interface (eth1) as follows:

Code Block
languagexml

auto eth1
iface eth1 inet static
    address 192.168.56.100
#   ^^^ IP Address for the VM
    netmask 255.255.255.0
    network 192.168.56.0
    broadcast 192.168.56.255

To test your changes, restart networking in the virtual machine:

Code Block
languagexml

$ sudo service networking restart

And view the interfaces:

Code Block
languagexml

$ ip addr

This should list the IP you assigned in /etc/network/interfaces.

...

With the host only network set up you can ssh from the host machine into the VMs (or, of course, from one VM to another):

Code Block
languagexml

$ ssh user@192.168.56.100

...

Data can be added to opal using the web interface, accessible at:

Code Block
languagexml

192.168.56.100:8080 or :8443

...

By default:

Code Block
languagexml

username: administrator
password: password

...