一、 安装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
阅读(4706) | 评论(0) | 转发(0) |