Table of Contents |
---|
...
Build Base VM
VirtualBox VM Settings
Create a VM with two network interfaces:
- Host Only Network
- NAT
Base Memory:
- 2048 MB
Issue the following commands on your vm. The master node will require 2 cores and 2GB memory.
Update apt-get
> sudo su > apt-get update
Install openssh
HD Size
- 10 GB
Audio
- Disabled
Install Ubuntu or Centos and enable/install openssh if available.> apt-get install openssh-server
Enable both network interfaces
If you are installing Ubuntu server it will enable a primary network interface.
For VirtualBox VMs we are using 2 network interfaces:
- a NAT network used for accessing the internet (primary)a host only network for accessing the host from our machine without having to setup port forwarding. (primary)
- a NAT network used for accessing the internet
>ifconfig -a
Add the missing interface to your interfaces config file and reboot
...
Code Block |
---|
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto enp0s8enp0s3 iface enp0s8enp0s3 inet dhcp auto enp0s3enp0s8 iface enp0s3enp0s8 inet dhcp |
> reboot
Login and get IP address:
...
Code Block |
---|
enp0s3 Link encap:Ethernet HWaddr 08:00:27:56:82:00 inet addr:192.168.56.3 Bcast:192.168.56.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fe56:8200/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:170 errors:0 dropped:0 overruns:0 frame:0 TX packets:112 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:18488 (18.4 KB) TX bytes:19156 (19.1 KB) enp0s8 Link encap:Ethernet HWaddr 08:00:27:f0:a2:f5 inet addr:10.0.3.15 Bcast:10.0.3.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fef0:a2f5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:329 errors:0 dropped:0 overruns:0 frame:0 TX packets:141 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:389613 (389.6 KB) TX bytes:10690 (10.6 KB) ... |
Update apt-get
> sudo su > apt-get update
Install openssh
> apt-get install openssh-server
Now you can ssh into the virtual machine on the host-only network from your host
...