- #How to ssh from mac to virtualbox how to#
- #How to ssh from mac to virtualbox install#
- #How to ssh from mac to virtualbox update#
Now, run these commands on each node accordingly to set up proper host names On master: $ hostctl set-hostname master.192.168.56.7.xip.io With xip.io, a DNS entry like this: will be resolved to IP_ADDRESS ip (the node needs to be connected to the internet). To make it simple, I use the xip.io option. This can be configured either with an internal DNS resolver (eg: DNSMasq), or by using a public wildcard DNS resolver like xip.io or nip.io. OpenShift requires wildcard DNS resolution in order to resolve OpenShift routes. # Reboot system to apply any kernel updates
#How to ssh from mac to virtualbox install#
# install ansible-2.4.3.0 from CentOS archives Sudo yum -y -enablerepo=epel install pyOpenSSL Sudo sed -i -e "s/^enabled=1/enabled=0/" /etc//epel.repo # disable EPEL repo to prevent package conflicts
# Install the Extra Packages for Enterprise Linux (EPEL) repository
#How to ssh from mac to virtualbox update#
Update the path if you plan to use a non-root Sudo yum -y install centos-release-openshift-origin39 wget git net-tools \īind-utils yum-utils iptables-services bridge-utils bash-completion \ # Install the CentOS OpenShift Origin v3.9 repo & all base packages # simple bash script to install base packages for OKD v3.9 Put this script into a bash file: $ vi base_bash.sh Once you have the 3 VMs prepared with CentOS 7 installed and configured, we can install the base tools necessary for the installation process on all nodes.
In this case, I manually created the partition as following Partitioning for master VMĪnd here is the network configuration for the interface associated to the Host-only adapter for the master VM which you can replicate to the remaining 2 nodes ( compute: 192.168.56.8 and infra: 192.168.56.9) accordingly ( $ nmtui) Master’s Host-only subnet configuration Launch the OS installation by following the instruction as if you’re installing a normal CentOS machine.
#How to ssh from mac to virtualbox how to#
For more details how to do that, refer to my previous post which I setup a similar topology for my IBM Cloud Private experiment here I use NAT adapter to to enable internet connectivity from the VMs through the shared internet connection on my Mac, and attach all VMs to a Host-only adapter for them to communicate to each other as well as enabling connection (eg: SSH, etc) from my Mac to the VMs. First we need to make sure all the nodes can communicate to each other and to the internet. In this experiment, I’m using VirtualBox 6.0 for Mac, and CentOS 7 Minimal base image for all nodes in the cluster. Here is how the cluster will look like: OpenShift 3.9 on a Mac with VirtualBox Despite the minimum infrastructure requirement for an OpenShift cluster is 4 CPUs, 16 GB RAM for master, 8 GB RAM for nodes, and a lot more, I decided to give it a go on my poor little Mac, using VirtualBox.