ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • Openstack Train Installation on Oracle Virtual Box (1)
    Cloud/Openstack_K8s_Docker 2020. 5. 11. 15:18

    <Laptop Spec>

    CPU : 4 Cores, I7-8650U

    RAM : 64GB

    OS : Window 10

     

     

    <Pre-requirement>

    1. Oracle VirtualBox installation

    2. Centos7 download

     

     

     

    <Setting up Oracle VirtualBox>

    1. Creating Controller and Compute VM

       1.1 Controller VM Creation

    VM name, OS selection, Memory Size 25GB

     

    Disk Size, Disk location

       1.2 Compute VM Creation

     

    Compute VM, Memory size 25GB
    Disk Location and Disk Size

     

    2. Setting up Network of VM  

       2.1 Host-Only Network

       Global Tools > Create > IP address : 10.10.1.1, mask : 255.255.255.0 > Apply

       This Host-Only Network is for SSH connection to VMs from the host

     

       2.2 Network Topology for Openstack

    Oracle Virtual Box Network

      

       2.3 Setting VM Network

          2.3.1 Controller and Compute VM Network

          Controller > Settings > Network

          VMs have two interfaces. one is for External. another one is internal.

          Bridged Adapter is for External.

    Bridge mode for External

            Adapter2 is for the Internal network between Compute and Controller node.

            * Note : Host-Only Ethernet Adapter for 192.168.56.0/24

         

          Host-only for SSH connection from host to internal VMs

          Please take care of Adapter2 name which you created

     

             Please set the compute node network adapters which is same with controller.

     

     

     

    <CentOS 7 Installation>

    I will pass these steps. please install Centos7 minimal package.

     

    1. Network status on Controller.

    enp0s3 is under my home AP network as bridge mode. it got IP through DHCP from my HOME AP.

    enp0s8 is NAT Network to communicate between only controller and compute. no need to connecte to internet.

    enp0s9 is Host-only for SSH connection to VM on compute or controller.

    [root@controller ~]# ip a
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
           valid_lft forever preferred_lft forever
        inet6 ::1/128 scope host
           valid_lft forever preferred_lft forever
    2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
        link/ether 08:00:27:3a:75:f1 brd ff:ff:ff:ff:ff:ff
        inet 192.168.1.31/24 brd 192.168.1.255 scope global enp0s3
           valid_lft forever preferred_lft forever
        inet6 fe80::a00:27ff:fe3a:75f1/64 scope link
           valid_lft forever preferred_lft forever
    3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
        link/ether 08:00:27:a2:00:99 brd ff:ff:ff:ff:ff:ff
        inet 192.168.56.31/24 brd 192.168.56.255 scope global enp0s8
           valid_lft forever preferred_lft forever
        inet6 fe80::a00:27ff:fea2:99/64 scope link
           valid_lft forever preferred_lft forever
    4: enp0s9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
        link/ether 08:00:27:ec:0d:c8 brd ff:ff:ff:ff:ff:ff
        inet 10.10.1.31/24 brd 10.10.1.255 scope global enp0s9
           valid_lft forever preferred_lft forever
        inet6 fe80::a00:27ff:feec:dc8/64 scope link
           valid_lft forever preferred_lft forever

    2. Network status on Compute

    [root@compute ~]# ip a
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
        link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
        inet 127.0.0.1/8 scope host lo
           valid_lft forever preferred_lft forever
        inet6 ::1/128 scope host
           valid_lft forever preferred_lft forever
    2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
        link/ether 08:00:27:5b:f3:ac brd ff:ff:ff:ff:ff:ff
        inet 192.168.1.32/24 brd 192.168.1.255 scope global enp0s3
           valid_lft forever preferred_lft forever
        inet6 fe80::a00:27ff:fe5b:f3ac/64 scope link
           valid_lft forever preferred_lft forever
    3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
        link/ether 08:00:27:52:70:57 brd ff:ff:ff:ff:ff:ff
        inet 192.168.56.32/24 brd 192.168.56.255 scope global enp0s8
           valid_lft forever preferred_lft forever
        inet6 fe80::a00:27ff:fe52:7057/64 scope link
           valid_lft forever preferred_lft forever
    4: enp0s9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
        link/ether 08:00:27:a4:91:03 brd ff:ff:ff:ff:ff:ff
        inet 10.10.1.32/24 brd 10.10.1.255 scope global enp0s9
           valid_lft forever preferred_lft forever
        inet6 fe80::a00:27ff:fea4:9103/64 scope link
           valid_lft forever preferred_lft forever

     

    <Setting up Environment for openstack>

    1. Disable NetworkManager on both Controller and Compute

    [root@Controller network-scripts]# systemctl stop NetworkManager
    [root@Controller network-scripts]# systemctl disable NetworkManager
    [root@Controller network-scripts]# systemctl status NetworkManager
    ● NetworkManager.service - Network Manager
       Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)
       Active: inactive (dead)
         Docs: man:NetworkManager(8)

    2. Disable Firewall on both

    [root@Controller network-scripts]# systemctl stop firewalld
    [root@Controller network-scripts]# systemctl disable firewalld
    [root@Controller network-scripts]# systemctl status firewalld

     

    3. Setup Hostname

    [root@Controller network-scripts]# vim /etc/hosts
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    192.168.1.32 compute

    [root@compute network-scripts]# vim /etc/hosts
    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    192.168.1.31 controller

     

    4. SELINUX on both

    setenforce 0
    [root@Controller ~]# vim /etc/selinux/config
    #SELINUX=enforcing
    SELINUX=permissive

     

     

    5. Update YUM

    [root@Controller network-scripts]# yum update -y

     

    댓글

Designed by Tistory.