`
ajax_xu
  • 浏览: 154874 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

cloudstack开发环境如何搭建(linux下)

 
阅读更多
注:此文档是针对ant方式管理 maven方式的还需另外配置,内容来自官方网站

Step 1:
Install the tools and dependencies:
For fedora the package names are ant ant-devel, openjdk, openjdk-devel

Tools:
yum install ant ant-devel openjdk openjdk-devel mysql mysql-server tomcat
for example
yum install java-1.6.0-openjdk.i686 java-1.6.0-openjdk-devel.i686
Dependencies:
yum install jakarta-commons-collections jakarta-commons-dbcp.noarch apache-commo
ns-logging.noarch jakarta-commons-pool jakarta-commons-httpclient.noarch ws-comm
ons-util.noarch glibc-devel gcc python MySQL-python openssh-clients

Tomcat:
Download tomcat6.0.33 from http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.3
3/bin/ instead of using distribution's default tomcat. Set CATALINA_HOME and CAT
ALINA_BASE to path where you extract tomcat in environment variable, it would be better off setting them in .bashrc as it will take effect every time you log in.

Note: Tomcat6.0.35 has some known issue with CloudStack, please avoid it

SSHKEY:
Run:
sh-keygen -t rsa -q
to create sshkey for your account if you don't have one

Step 2: Configuration

Start the MySQL service :

# service mysqld start

Step 3: Get the source

$ git clone https://github.com/CloudStack/CloudStack.git

For subsequent pulls, do:
$ git pull

Step 4: Building, testing, and deploying CloudStack using Ant :

Ant is a Java-based build tool designed to be cross-platform, easy to use, extensible, and scalable. Ant is controlled by providing a text file that tells how to perfo
rm all the stages of building, testing, and deploying a project. These files are build files, and every project that uses Ant must have at least one named as build.xml
. You can see build.xml in your CloudStack source.

Type to build CloudStack :
$ ant clean-all build-all

Type to deploy mgt server :
$ ant  deploy-server

Type to deploy database :
$ ant deploydb

Type to run mgt server:
$ ant debug

If all of the above process is successful. You are done the single server CloudStack installation.Now your CloudStack Management Server is running.

Open your browser and type the bellow url in address bar:

http://localhost:8080/client/

OR

http://management-server-ip-address:8080/client

You can see CloudStack Management Console page via a web browser.  It will show you management consle login page. You can use the default username and password and lea
ve domain as blank.

The default credentials are “admin” for user and “password” for password. The domain field should be left blank. A blank
domain field is defaulted to the ROOT domain.

NOTE : This document is very basic CloudStack development installation. If you are very new to CloudStack and want to feel the power of CloudStack very quickly in RPM
based distro, this document will guide very clear step to get it done. Since I am new to CloudStack, I doing this documentation by learning from community. I will keet
update new information in this guide to make it more valuable resource.
分享到:
评论

相关推荐

    cloudstack云平台搭建(windows版本)

    Cygwin是一款为Windows提供类似Unix Bash Shell环境的模拟器,它是CloudStack开发环境的关键组件。可以从官网下载Cygwin的安装程序(http://cygwin.com/setup.exe)。安装过程中需选择必要的软件包,包括git和vim。...

    CloudStack 在Windows 平台上的开发环境设置

    在Windows平台上设置CloudStack的开发环境是一项重要的任务,尤其对于那些希望在非Linux环境下进行CloudStack开发的人员来说。这个过程涉及到多个步骤,包括安装必要的软件、配置环境变量以及添加特定的插件,以确保...

    eclipse debug方式部署cloudstack4.0

    3. 开发环境搭建:搭建Apache CloudStack开发环境的部分主要介绍了如何在Linux环境下安装和配置必要的开发工具和依赖。例如,安装OpenJDK,这是Java开发的环境之一。在Linux系统中,可以通过包管理器如yum或apt-get...

    基于CloudStack和KVM的云计算IaaS平台构建.pdf

    云计算可以分为三种服务模式:IaaS(基础设施即服务)、PaaS(平台即服务)和SaaS(软件即服务),分别提供给用户计算、存储、网络等基础设施资源,提供应用程序开发和运行环境,以及提供具有特定功能的应用程序。...

    cloudstack

    - **Linux**:CloudStack主要在Linux环境下运行,因此熟悉Linux操作系统和相关工具对于部署和维护CloudStack非常重要。 综上所述,CloudStack 是一个强大的云计算平台,借助PHP等技术,能够帮助企业快速构建高效、...

    linux虚拟化技术研究

    6. 自动化和编排工具:开发用于自动化创建、部署和管理虚拟机的工具,如OpenStack、CloudStack等,提高虚拟化环境的可管理性和灵活性。 随着Linux虚拟化技术的不断演进,越来越多的企业和组织开始采用Linux作为虚拟...

    虚拟机安装VMware workstation

    它允许用户在不干扰主机系统的情况下运行各种操作系统,这对于开发者测试软件兼容性、系统管理员维护不同环境或技术爱好者探索新的操作系统非常有帮助。同时,由于虚拟机的隔离性,即使虚拟机中发生问题,也不会对...

    java二次开发源码下载-monkeybox:已弃用,请参阅https://github.com/rhtyd/mbx

    盒设置开发环境。 笔记: 本指南假设您运行的是最新的基于 debian 的 GNU/Linux 发行版,例如 Ubuntu。 本指南在Ubuntu 17.10进行了测试。 您的笔记本电脑/平台至少有 16GB RAM 和支持 x86_64 Intel-VT 或 AMD-V 的 ...

    开源力量公开课视频教程系列

    - **Cloudstack云计算平台部署**(文件源66):指导如何部署和管理基于Apache CloudStack的私有云或公有云环境。 - **实时操作系统RT-Thread详解**(文件源67):深入分析RT-Thread的体系结构及关键特性,适合嵌入式...

    KVM虚拟化技术:实战与原理解析

    KVM虚拟化技术是一种开源的虚拟化解决方案,它利用Linux内核中的虚拟机管理模块(KVM模块)和QEMU模拟器,能够将Linux系统转变为一个功能齐全的虚拟化环境。KVM主要支持x86架构以及64位的处理器,并支持硬件辅助虚拟...

    智云大数据云计算信息化实验室解决方案.pptx

    以及虚拟化技术、KVM、Xen、VMware的部署与使用,CloudStack云计算平台的搭建,Hadoop系统、HDFS/MapReduce编程、HBase/Hive数据库开发和Mahout数据挖掘等。 虚拟化技术是云计算的核心组成部分,它通过虚拟化软件层...

    关于虚拟化、开源云和PaaS采用情况的调查数据

    其次,Linux KVM(Kernel-based Virtual Machine)以23.3%的使用率位居第二,它是Linux内核的一个模块,提供全虚拟化解决方案。Microsoft Hyper-V则以19.6%的使用率排在第三,这表明微软在企业级虚拟化市场中也占据...

    关于云计算的学习笔记关于云计算的学习笔记

    1. **全虚拟化**:允许虚拟机操作系统在未经修改的情况下运行。 2. **半虚拟化**:要求对客户操作系统进行修改以便更好地与虚拟化层协作。 3. **容器化**:更轻量级的虚拟化技术,不需要模拟硬件层,而是共享主机...

    ceph官网文档pdf版

    - 说明了如何在 CloudStack 环境下集成 Ceph 块设备。 - 包括配置存储池、创建卷等操作。 - **rbd——管理 RADOS 块设备 (RBD) 映像** - 描述了 rbd 工具的功能和使用方法。 - 包括创建映像、列出映像等命令。 ...

    中外对比之国内云计算平台的三大特点.pdf

    - Microsoft Azure:文档指出,Azure为用户提供了一个全面的云计算平台,支持Windows和Linux操作系统,以及各种应用程序的开发和部署。 - VMware:作为虚拟化技术的领导者,VMware提供vCloud服务,这是一项基于...

    IT运维工程师的23个细节进阶.pdf

    1. **云技术**:Opennebula, OpenStack, CloudStack是常见的开源云计算平台,用于构建私有云或混合云环境,提供资源管理和自动化服务。 2. **虚拟化技术**:Xen, KVM, LXC是流行的虚拟化技术,用于创建和管理虚拟机...

    关于云计算的学习笔记

    - **按需自助服务**:用户可以在不与服务提供商进行人工交互的情况下,自动获取所需的计算资源。 - **广泛的网络接入**:用户可以通过标准的客户端(如移动电话、笔记本电脑等)访问网络中的资源和服务。 - **资源...

Global site tag (gtag.js) - Google Analytics