Setting up the Virtual Machines
...
Start the VM. Edit /etc/network/interfaces:
Code Block |
---|
|
$ sudo vi /etc/networkingnetwork/interfaces
|
For the primary interface it will list the lines:
Code Block |
---|
|
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 |
---|
|
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 |
---|
|
$ sudo service networking restart
|
And view the interfaces:
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 |
---|
|
$ ssh user@192.168.56.100
|
...
Data can be added to opal using the web interface, accessible at:
Code Block |
---|
|
192.168.56.100:8080 or :8443
|
...
By default:
Code Block |
---|
|
username: administrator
password: password
|
...