Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10327044
  • 博文数量: 1669
  • 博客积分: 16831
  • 博客等级: 上将
  • 技术积分: 12594
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-25 07:23
个人简介

柔中带刚,刚中带柔,淫荡中富含柔和,刚猛中荡漾风骚,无坚不摧,无孔不入!

文章分类

全部博文(1669)

文章存档

2023年(4)

2022年(1)

2021年(10)

2020年(24)

2019年(4)

2018年(19)

2017年(66)

2016年(60)

2015年(49)

2014年(201)

2013年(221)

2012年(638)

2011年(372)

分类: 云计算

2014-06-10 20:43:00

cloudstack 4.x系列自动安装脚本

autoinstall_cloudstack.sh
脚本下载地址

这个脚本是cloudstack日本用户组开发。

 

What is this?

This is an easy installation script for CloudStack 4.x. This script automates installation on a fresh CentOS 6.x node by using minimal netinstall.(CentOS需要最小化安装) All you have to do is running this script with options ‘-canm’. After a while you will see welcome message on the CloudStack web UI.

This script also saves installation steps of CloudStack on multiple nodes with Management Servers, Computing Nodes and Storage Servers.

How to use 使用方法

Download this script into wherever you like on the server that CloudStack will be installed. When you run this script with ‘-h’(help) optoin, you will see available options for the script.

./autoinstall_cloudstack.sh -h

Options

Option Function
-c install the common packages 安装常用包
-n install NFS server 安装NFS存储
-a install the agent for computing nodes 在计算节点安装agent
-m install the Management Server 安装管理节点
-h show help 显示帮助
-r reboot after the installation 安装完成后重启

Usage:

  • ‘-cm’: when you want to install only the management server 只安装管理服务器
  • ‘-cn’: when you want to install only the NFS server 只安装NFS服务
  • ‘-ca’: when you want to install only the agent for computing nodes 安装计算节点

The ‘-c’(common) option will set SELinux to permissive, firewall and network.

Installing CloudStack on single node, type command bellow:

在一台设备上安装CloudStack,可执行下列命令

./autoinstall_cloudstack.sh -cnamr

Tips

  • You may need to install ‘wget’ or ‘openssh-clients’ package with yum command before downloading this script.
  • If you want to save time to input credentials to login by SSH, enter the ssh public key of your client machine to SSH_PUBLIC_KEY at the 3rd line of the script (optional).

Concerns

This script sets up the network for CloudStack requirements automatically, and it may works only on servers with 1 NIC. 这个脚本只适合服务器是一块网卡的情况

This script sets up network bridges as:

# brctl show
bridge name bridge id               STP enabled     interfaces
cloud0      8000.fe00a9fe0074       no              vnet0
                                                    vnet3
cloudbr0    8000.80ee733704b5       no              eth0
                                                    vnet1
                                                    vnet2
                                                    vnet4
                                                    vnet5
                                                    vnet6
virbr0      8000.52540079e395       yes             virbr0-nic

Steps to install CloudStack on single server

  • Install CentOS 6.X from the netinstall disk.
  • Install and configure CloudStack
    yum install wget -y
    wget 
    sh ./autoinstall_cloudstack.sh -cnmar
  • Enter some informantion which is necessary for installation such as hostname and ip address.
  • The management server will be rebooted automatically. After rebooting, access “” by using web browser on a client machine.
  • Enter the username and password below.
    • username: admin
    • password: password
  • Enter the information of your cloud system through the Basic Installation Wizard.
  • !DO NOT FORGET! After creating a zone, reboot the SecondaryStorageVM.
  • Go to Infrastructure => System VMs => s-1-VM => click Reboot System VM button (icon of whirling arrow)
  • Go to Templates => CentOS 5.5 => Wait until “Ready” status changes from “” to “Yes”.
阅读(1103) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~