To enable us to easily access the worker nodes from the kubemaster for system administration, and possibly configuration management with Ansible at a later date, we can easily setup an SSH key-pair as follows:įrom the kubemaster VM, create the ssh key-pair as follows: ssh-keygen -t rsa -b 4096 Change the hosts file on each machine as follows: sudo vi /etc/hostsĪdd the following: 172.23.242.120 kubemaster Updating the hosts files allows for communication over hostname rather than IP address. I recommend from here you complete configuring all three VMs before moving onto the next part: shutdown -r now Next, modify the network file as follows: sudo vi /etc/sysconfig/networkĪdd the following to the file: NETWORKING=yes Once complete, you can save you changes by pressing the Esc key then: :wq! Press the insert key to modify the file, change BOOTPROTO from dhcp to static and add the IPADDR as below: BOOTPROTO=static Next we need to set the static IP in the ifcfg-eth0 file: cd /etc/sysconfig/network-scripts/ To follow this again for the workernodes, change the IP accordingly.įirst backup the nf file: sudo cp /etc/nf /etc/
#Centos vm for windows 10 how to#
The following will instruct you how to do this with the kubemaster VM’s IP address. The next important steps will be to configure static IPs and then configure the hosts file.
First job will be to update the OS which can be achieved with the following command:Īfter the updates are all installed you can either move onto the next part for the kubemaster VM, or complete part 1 again for workernode1 and workernode2. Once the installation is complete you can log into the VM with the admin username and password.The INSTALLATION SUMMARY page should look as follows: I set mine the same as the root password as it’s only a lab environment. Enter the Full name and User name as admin, tick “Make this user administrator”, and enter a password for it. Select Time & Date and set your location. Select Root Password and create a root password. NOTE: the image below was taken when creating workernode1.
First switch Ethernet (eth0) to ON, then enter the Host Name as kubemaster and click done.
#Centos vm for windows 10 install#
Start by selecting the language and keyboard layout you want to install Power on the first Virtual machine and boot from the CentOS ISO. Get-NetIPAddress -InterfaceAlias "vEthernet (Default Switch)" -AddressFamily "IPv4" | Select InterfaceAlias,IPAddressĮach VM in the Hyper-V setup is as follows Hyper-V Configuration