Chinaunix首页 | 论坛 | 博客
  • 博客访问: 166415
  • 博文数量: 28
  • 博客积分: 2604
  • 博客等级: 少校
  • 技术积分: 290
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-13 12:59
文章分类

全部博文(28)

文章存档

2013年(3)

2009年(3)

2008年(8)

2007年(14)

我的朋友

分类: 云计算

2013-01-06 13:13:41

一、 安装libvirt,配置
1 查看是否安装kvm
#rpm -qa | grep kvm
2 如果没有安装,运行下面命令,安装kvm
#yum install kvm
3 查看是否安装 libvirt
#rpm -qa | grep libvirt
4 如果没有安装,运行下面命令,安装libvirt
#yum install libvirt
5 配置libvirt ,vi 修改文件 /etc/libvirt/qemu.conf ,确保下面的内容没有注掉       vnc_listen=0.0.0.0
6 运行下面命令,重启libvirtd 进程
#service libvirtd restart

二、安装SSVM
 /usr/lib64/cloud/common/scripts/storage/secondary/cloud-install-sys-tmplt -m /nfs/kvmsecondary -u -h kvm -F
//二级存储里不能和xenserve有相同的目录,他们都会创建template目录
########################################
 /usr/lib64/cloud/common/scripts/storage/secondary/cloud-install-sys-tmplt -m /nfs/kvmsecondary -u -h kvm -F
--2012-12-03 20:06:50--  
Connecting to 10.10.1.201:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 286036668 (273M) [application/x-bzip2]
Saving to: “/usr/lib64/cloud/common/scripts/storage/secondary/6ec9bce6-9dce-45bb-a418-f6cffabab38c.qcow2”

100%[==========================================================================>] 286,036,668 11.2M/s   in 25s     

2012-12-03 20:07:15 (10.9 MB/s) - “/usr/lib64/cloud/common/scripts/storage/secondary/6ec9bce6-9dce-45bb-a418-f6cffabab38c.qcow2” saved [286036668/286036668]

Uncompressing to /usr/lib64/cloud/common/scripts/storage/secondary/6ec9bce6-9dce-45bb-a418-f6cffabab38c.qcow2.tmp (type bz2)...could take a long time
Moving to /nfs/kvmsecondary/template/tmpl/1/3///6ec9bce6-9dce-45bb-a418-f6cffabab38c.qcow2...could take a while
Successfully installed system VM template  to /nfs/kvmsecondary/template/tmpl/1/3/
########################################
从[全局设置]->[选择视图 全局设置]->[查找 management.network.cidr]修改全局参数management.network.cidr 的值为 10.10.1.0/24  
从[全局设置]->[选择视图 全局设置]->[查找 secstorage.allowed.internal.sites]修改全局参数secstorage.allowed.internal.sites 的值为 10.10.1.0/24

三、在KVM主机上安装代理:
[root@ic-cs-m02 CloudStack-non-OSS-140]# ./install.sh 
Setting up the temporary repository...
Cleaning Yum cache...
Loaded plugins: fastestmirror, presto
Cleaning repos: base cloud-temp
2 metadata files removed
Welcome to the Apache CloudStack (Incubating) Installer.  What would you like to do?

    M) Install the Management Server   
    A) Install the Agent
    B) Install BareMetal Agent
    S) Install the Usage Monitor
    D) Install the database server     
    Q) Quit
阅读(4656) | 评论(0) | 转发(0) |
0

上一篇:如何确定您安装的 AIX 的级别!

下一篇:没有了

给主人留下些什么吧!~~