INTERCLOUD

  • Home
  • About
  • Protocol
  • Gateway
    • Intercloud Operationvs. Client-cloud Operation
    • Architecture
    • Security Measures
  • Installation
    • Download
    • The Pre-Requisites and Tools
    • Configuration Procedures
    • Running the Gateway
  • Development
    • The Pre-Defined API Classes
    • Invoking an API Method UsingJSON(Object Storage)
    • Invoking an API Method UsingJSON(Virtual Machine)
    • Developing a Native Java Application
  • Mobile Intercloud
    • Blocks

Download

Pre-requisites

The Gateway runs on Windows Server 2008 R2 or above, a public IP address, with the following software:

Java JDK 8 x64 ( Mirror)

Oracle Database Express Edition 11g Release 2 (Mirror)

Minio Server – An object storage server, optional (Mirror)

StarWind V2V Converter – A VM disk converter, optional (Mirror)

Development Tools

Eclipse IDE for Java Developers Luna or above (Mirror)

Oracle SQL Developer – For database management, optional (Mirror)

Source code/Stable binary builds

Installation

The installation procedures consist of the following:

  1. Pre-requisites and Tools
  2. Configuration Procedures
  3. Running the Gateway

Pre-requisites and Tools

Java JDK 8

  1. Run the setup program and follow the guides to complete the installation.

Oracle Database Express Edition

  1. Run the setup program.
  2. When you are prompt to input a system password, use p@ssw0rd.
  3. Follow the guides to complete the installation.

Eclipse IDE for Java Developers

  1. Extract the downloaded zip package to C:\

Minio Server (An object storage server, Optional)

Note: If you are using other object storage services such as Amazon S3 or Google, you don’t need Minio.

  1. Place the downloaded exe file to C:\

StarWind V2V Converter (A VM disk converter, Optional)

Note: If your Gateway does not support VM operations, or you don’t need cross-hypervisor VM transfer, you don’t need StarWind V2V Converter.

  1. Run the setup program and follow the guides to complete the installation.

Oracle SQL Developer (For database management, Optional)

Note: This software is only intended for advanced users who wish to dig in database records.

  1. Extract the downloaded zip to C:\

Aria2 and Caddy Server (Built-in data transfer utilities)

The Intercloud Gateway includes builds of aria2 1.33.1 and Caddy Server 0.8.2 to facilitate Intercloud data transfer. These included builds of programs are open-source. You don’t have to do anything as they are integrated with the Gateway.

Configuration Procedures

Firewall Initialization

To allow the Intercloud Gateway to communicate with other Gateways, you must allow those IP addresses of the foreign Gateways to communicate via TCP ports 20, 21, 80, 443, 2001, 2002, 9000 and UDT port 9000.

Database Initialization

Oracle database is an essential part of the Gateway. It supports the Gateway by keeping tracks on everything.

  1. Open a browser and visit http://127.0.0.1:8080/apex/f?p=4950 or double-click [Get Started With Oracle] on your desktop.
  2. Click [Application Express].
  3. Login with username SYSTEM and password p@ssw0rd.
  4. Create a new user for the database and a new workspace. Specify with username INTERCLOUD and password p@ssw0rd.
  5. Close the browser.

Minio Server (Optional)

Note: If you are using other object storage services such as Amazon S3 or Google, you don’t need Minio.

Minio Server is an open-source object storage server that is compatible with the Gateway.

  1. In Command Prompt, under the minio installation directory, type server /minio and press [Enter]. A screen similar to the one below will show.
  2. Open a browser (Firefox is recommended), visit http://127.0.0.1:9000. The following screen will show.
  3. Copy the [Access Key] and [Secret Key] from the Command Prompt window in Step 1 to the Browser window in Step 2. Click the button to login.
  4. Click the button located at the right-bottom of the browser window, then click to add a bucket.
  5. Input intercloud and press [Enter].
  6. Minio setup is finished. You may upload file objects to the intercloud bucket.

Importing the Gateway Project to Eclipse

In order to develop and operate the Intercloud Gateway, we have to import it to Eclipse. You may get the latest version of Gateway in two ways:

  • Method 1: Click the button above to download the latest 7ZIP bundle, extract and import to Eclipse
  • Method 2: Get the codes with SVN (https://iccp.cf:18089/svn/Intercloud), then use the codes to create a project in Eclipse

Method 1 is simpler so we will discuss it here.

  1. Download a latest 7ZIP bundle from here. The file name should be like Intercloud_M*.7z.
  2. Extract the file to C:\share\workspace\. Afterwards, the folder should contain the following.
  3. Start Eclipse. Run C:\eclipse\eclipse.exe.
  4. Select the workspace: C:\share\workspace
  5. The project “Intercloud” should appear in the “Package Explorer”.

Initializing the Intercloud Gateway

Before running the Gateway, we have to initialize it first. Don’t worry, these are one-time procedures.

Now that we add some tables to the database.

  1. In Eclipse, locate Configuration.java in the package hk.edu.polyu.intercloud.main.
  2. Right-click Configuration.java, then run it as a Java application.
  3. A dialog appears. Click [Database].
  4. Next, click [Initialize].

    Note: The [Drop All] method DELETES all data and may be useful if you no longer use the Gateway.

  5. A “Finished!” dialog will appear. Click [OK].

Then, we need to generate the configuration files and send a certificate signing request to CA server.

  1. Run the Configuration class again.
  2. A dialog appears. Click [Config Files].
  3. The following dialog reminds you that you can refer to the documentations for advanced users and edit the properties files manually. However, basic properties files are enough for general use. Click [OK] to continue.
  4. Input the domain name of the Gateway and click [OK].
  5. Input the email of applicant for authentication and click [OK].
  6. Select the role of the Gateway. Click [Cloud] unless you are setting up an advanced role like Root or Exchange.
  7. Input the log file location and file name, which logs the errors when running the Gateway. For example, log/error.log. Click [OK].
  8. Select your object storage provider from the drop-down list, or select [Not Provided] if object storage service is not provided. Click [OK] to continue. Follow the instructions to generate a properties file for object storage.
    Here we use Minio as an example. Note that you should select the appropriate provider for your own case.

    Example: Minio

    1. Run Minio if it is not running. To run Minio, type C:\minio server /minio in Command Prompt and press [Enter].

      Click [OK] in this dialog.
    2. Copy the Endpoint URL from the console and paste it to the dialog below. Click [OK].
      The following is only an example.
    3. Copy the Access Key from the console and paste it to the dialog below. Click [OK].
      The following is only an example.
    4. Copy the Secret Key from the console and paste it to the dialog below. Click [OK].
      The following is only an example.
    5. Input the name of the bucket to be used. Normally, you should input intercloud. Click [OK].
    6. Check if the contents are correct. Click [Yes] to confirm, or [No] to modify the object storage properties.
  9. After setting the properties for object storage, we shall set the properties for VM service. In this dialog, click your VM product. If VM service is not provided, click [Not Provided].

    Follow the steps for configuring VM proterties.
  10. Check if the contents are correct. Click [Yes] to confirm, or [No] to modify the gateway properties.
  11. Then a certificate signing request is generated and it will be received within 10 minutes if the gateway is open.

To enable the communication with other Gateways, we have to add them to the database.

  1. Run the Configuration class again.
  2. A dialog appears. Click [Add Friends].
  3. Click [Yes] to add a Gateway.
  4. Input the domain name of the Gateway, click [OK].
  5. Select the role of the Gateway. Click [CLOUD] unless you are setting up an advanced role like Root or Exchange.
  6. The following dialog will appear again. If you need to add another Gateway, click [Yes] to repeat the above steps. Otherwise, click [No] or [Cancel] to finish.

All configuration procedures are done. You can now start testing and developing the Gateway.

Running the Gateway

To run the Gateway,

  1. Locate Configuration.java in the package hk.edu.polyu.intercloud.main in Eclipse.
  2. Right-click Main.java, then run it as a Java application.
  3. If the following dialog pops up, the Gateway has been started. If you need to stop the Gateway, click [Stop].

Intercloud

  • Room QT418, Department of Computing, The Hong Kong Polytechnic University, Hong Kong

  • +852 27667869

  • intercloud@comp.polyu.edu.hk

© 2019 Provision. All rights reserved | Design by W3layouts