FreeSBC:Cloud:OpenStack Installation

From TBwiki
Revision as of 07:37, 23 October 2017 by Cbilodeau (Talk | contribs)
Jump to: navigation, search

Contents

Requirements

Minimal Cloud requirements:

  • 64 bits infrastructures only
  • 4 vCPU
  • 8G RAM
  • Virtio NIC interface
  • qemu-kvm CPU exposed as 'host' or minimally 'core2duo'
  • One Ethernet adapter for management
  • One or more Ethernet adapter(s) for data
Sessions Disk Space

Up to 10,000

40 Gb

10,000-50,000

80 Gb

Above 50,000

100 Gb

For better performance (see optimization section)

  • SR-IOV or MacVTap compatible NICs
  • Overcommit set to 1:1
  • No CPU (including hyperthreading) shared between infrastructure and compute section
  • Dedicated memory allocation to VM

Getting the Image

Please contact our sales team at sales@telcobridges.com to get a copy of the latest TBSC Image.

Installation on OpenStack cloud

TSBC OpenStack Minimal Flavor

In OpenStack, a flavor defines the compute, memory, and storage capacity of a virtual server, also known as an instance. If you do not already have a flavor that meets the listed minimal requirements, you will have to create a new one.

Creating a Flavor

  1. Log in to the Dashboard and select the admin project from the drop-down list.
  2. In the Admin tab, open the System tab and click the Flavors category.
  3. Click Create Flavor.
  4. In the Create Flavor window, enter or select the parameters for the flavor in the Flavor Information tab.
    • Name : TelcoBridges TSBC Flavor
    • VCPUs : 4
    • RAM (MB) : 8192
    • Root Disk (GB) : 20
    • Other fields are left to their default value
      OpenStackMinimalFlavorCreate.png
  5. In the Flavor Access tab, you can control access to the flavor by moving projects from the All Projects column to the Selected Projects column.
    Only projects in the Selected Projects column can use the flavor. If there are no projects in the right column, all projects can use the flavor.
  6. Click Create Flavor.

References

TBSC OpenStack Image

A virtual machine image is a single file that contains a virtual disk that has a bootable operating system installed on it. Images are used to create virtual machine instances within the cloud.

You will need to upload the latest TSBC image into your OpenStack before you can launch a virtual machine instance running the TSBC software.

Upload an Image

Follow this procedure to upload an image to a project:

  1. Log in to the dashboard.
  2. Select the appropriate project from the drop down menu at the top left.
  3. On the Project tab, open the Compute tab and click Images category.
  4. Click Create Image.
  5. The Create An Image dialog box appears.
  6. Enter the following values:
    • Image Name : TelcoBridges TSBC xx.yy.zz (Where xxx.yy.zz is changed to the version number of the TSBC image)
    • Image Description: TelcoBridges TSBC version xx.yy.zz
    • Image Source : .qcow2 file. Must not be compressed (tar.gz).
    • Image File : Browse for the image file on your file system and add it.
    • Format: QCOW2
    • Architecture: x86_64
    • Minimum Disk (GB) : 20
    • Minimum RAM (MB): 8192
    • Visibility : The access permission for the image. Public or Private, depending on your needs.
    • Protected: Select this check box to ensure that only users with permissions can delete the image. Yes or No.
      OpenStackImageUpload.png
  7. Image Metadata : Leave empty.
  8. Click Create Image.
    The image is queued to be uploaded. It might take some time before the status changes from Queued to Active.

References

TSBC OpenStack Instance

Instances are virtual machines that run inside OpenStack's cloud. You will need to launch a new instance from the TSBC Image created in the #Upload an Image section

Launching an instance

  1. Log in to the dashboard.
  2. Select the appropriate project from the drop down menu at the top left.
  3. On the Project tab, open the Compute tab and click Instances category.
  4. The dashboard shows the instances with its name, its private and floating IP addresses, size, status, task, power state, and so on.
  5. Click Launch Instance.
  6. In the Launch Instance dialog box, specify the following values:
    1. Details tab
      • Instance Name : Assign a name to the virtual machine. For example: TelcoBridges TSBC.
      • Availability Zone : By default, this value is set to the availability zone given by the cloud provider (for example, us-west or apac-south). For some cases, it could be nova.
      • Count : 1
        OpenStackLaunchInstanceDetailsTab.png
    2. Source tab
      • Instance Boot Source : Boot from image.
      • Create new Volume : No
      • Select Image Name : Select TelcoBridges TSBC xx.yy.zz as created in #Upload an Image section.
        OpenStackLaunchInstanceSourceTab.png
    3. Flavor tab
    4. Networks tab
      • Selected Networks: If you are installing a standalone SBC, the TSBC will need access to WAN and MGMT networks. For transcoding on TSBC-TRANS, or HA pair installation, the TSBC will also need access to CTRL0, CTRL1 and TRANS0 networks. Please refer to TSBC-SW:Networking for details on network requirements. Important: For optimal performance, it is recommended to use SR-IOV or MacVTap ports to access LAN and WAN networks, see TSBC-SW:Cloud:OpenStack_Optimizations for details.
        OpenStackLaunchInstanceNetworkTab.png
    5. Network Ports tab
      • Ports : For optimal performances, SR-IOV and MacVTap ports should be used to access LAN and WAN networks. If you do choose to use Network Ports to attach to LAN and WAN networks, do not attach to them in Networks Tabs. See TSBC-SW:Cloud:OpenStack_Optimizations for details.
        OpenStackLaunchInstanceNetworkPortsTab.png
    6. Security Groups tab
      • Security Groups: Activate the security groups that you want to assign to the instance. Security groups are a kind of cloud firewall that define which incoming network traffic is forwarded to instances. If you have not created any security groups, you can assign only the default security group to the instance. Warning: Make sure the selected security group allows ingress traffic.
        OpenStackLaunchInstanceSecurityGroupTab.png
    7. Key Pair tab
      • Key Pair : SSH access to the TSBC with a password is disabled by default on the TSBC. You will need to provide your SSH public key here in order to get SSH access into the TSBC.
        OpenStackLaunchInstanceKeyPairTab.png
  7. Click Launch Instance.
    The TSBC instance will starts on a compute node in your cloud.
    When the instance state is changed to Active, you will be able to the TSBC using SSH or a web browser as described in the next section..

References

Accessing the TSBC-SW

TSBC SSH Access

There is no root password by default, you will need to SSH onto the TSBC using SSH private key matching the public provided in the Key Pair tab when Launching the TSBC instance. Login using tbcloud as username.

For example, if you TSBC management IP is 192.168.178.30:

 > ssh tbcloud@192.168.178.30
   ECDSA key fingerprint is 5d:94:a1:93:0f:a4:7a:5d:41:cc:29:49:79:5a:58:f3.
   Are you sure you want to continue connecting (yes/no)? yes
   Warning: Permanently added '192.168.178.30' (ECDSA) to the list of known hosts.
   
   CentOS-7-x86_64-Minimal-1511/112/190195:197392, Fri  7 Apr 17:41:46 EDT 2017
   [tbcloud@tsbc ~]$

Accessing the TSBC-SW web portal

  1. Open a web browser to the management IP of the TSBC, on port 12358. Example if your server address is 192.168.178.30, the URL would be:
    http://192.168.178.30:12358
  2. You should get to the TSBC Configuration Wizard
    TSBC WebPortal Configuration wizard.jpg

From here, you can go to Web Portal Initial Configuration Guide to continue the installation, and/or optimize your server to get the maximum out of your server.

Web Portal Initial Configuration

Click on the following link to pursue installation from the web portal: TSBC-SW:WebPortal:Initial Configuration

Optimizations

Click on the following link for OpenStack optimizations: TSBC-SW:Cloud:OpenStack_Optimizations

Personal tools