代码改变世界

3 - Install CentOS with Virtual Machine

2021-06-05 07:28  WayneWei  阅读(57)  评论(0编辑  收藏  举报

Prerequisites:

  • Hyper-V Virtual machine
  • CentOS7 iso image

Install CentOS on Hyper-V Virtual machine:

  1. Launch virtual machine k8s-master.
    Highlight vitual machine k8s-master which we just created, then click on Start
  2. Once k8s-master started, then click on Connect, then we will get a new prompt window to start installation.

  3. Tap arrow key on keyboard to select first option Install CentOS 7, then Enter. After a few health check, we'll enter into Installation wizard.

     

  4. Pick your favorite language or mother language, i will leave it as default English, then click on Continue.
    Now we enter to am important screen, be careful to configure each options here
  5. Click on Date & Time, pick Asia, City for Shanghai
  6. Keyboard leave it as default
  7. LANGUAGE SUPPORT leave it as default
  8. INSTALLATION SOURCE leave it as default
  9. SOFTWARE SELECTION, as it's going to be a Linux Server, highly suggest do not choose GUI, try to survive with Command line.
    We choose Minimal Install, and Add-Ons Compatibility Libraries, Development Tools
  10. INSTALLATION DESTINATION, we go with Automatic participation
  11. KDUMP, leave it as default
  12. NETWORK & HOST NAME, enable Ethernet (eth0)
  13. SECURITY POLICY, leave it as default. Then click on Begin Installation, went into system installation.


  14. Click on ROOT PASSWORD, change root password to what you like. Then wait installation to finished.
  15. Once installation finished, click on Reboot to restart CentOS
  16. After restart, we get CentOS install successfully ! you can login with root user, enter it's password you changed on step 14
  17. All done. Remember to repeat all above steps to install CentOS7 for virtual machine k8s-node1. 
    Next we will configure networks for virtual machine, setup Internal adapter let us connect to Virtual machine CentOS with xshell or MobaXterm, then setup External adapter to enable Virtual machine connect to Internet.