cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "wx_csky" <yuanshuai.deve...@gmail.com>
Subject cloudstack添加kvm主机失败
Date Wed, 24 Apr 2013 02:10:44 GMT
大家好,有问题需要大家帮忙看一下

 

我在cs4.0.1中添加KVM主机出错:

2013-04-24 09:05:39,496 DEBUG [utils.ssh.SSHCmdHelper]
(catalina-exec-3:null) Executing cmd: cloud-setup-agent  -m 192.168.6.37 -z
1 -p 1 -c 2 -g 1ab192de-5e6a-39e7-842a-7e56b9a03646 -a --pubNic=cloudbr0
--prvNic=cloudbr0 --guestNic=cloudbr0

2013-04-24 09:05:46,201 DEBUG [utils.ssh.SSHCmdHelper]
(catalina-exec-3:null) cloud-setup-agent  -m 192.168.6.37 -z 1 -p 1 -c 2 -g
1ab192de-5e6a-39e7-842a-7e56b9a03646 -a --pubNic=cloudbr0 --prvNic=cloudbr0
--guestNic=cloudbr0 output:[Failed]

 

配置如下:

1.cloudstack是基本网络

2.kvm主机:centos6.4+kvm

3./etc/libvirt/libvirtd.conf配置:

 listen_tls = 0

 listen_tcp = 1

 tcp_port = 16059

 auth_tcp = "none"

 mdns_adv = 0

 

4. /etc/sysconfig/libvirtd

    LIBVIRTD_ARGS="--listen"

5.、/etc/cloud/agent/agent.properties

        host=192.168.6.37

 

6.网桥配置

/etc/sysconfig/network-scripts/ifcfg-cloudbr0

        DEVICE=cloudbr0

        TYPE=Bridge

        BOOTPROTO=static

        BROADCAST=192.168.6.255

        IPADDR=192.168.6.240

        NETMASK=255.255.255.0

        NETWORK=192.168.6.0

        GATEWAY=192.168.6.254

        ONBOOT=yes

/etc/sysconfig/network-scripts/ifcfg-eth0

        DEVICE="eth0"

        HWADDR="00:1E:67:3A:B0:4E"

        #NM_CONTROLLED="yes"

        ONBOOT="yes"

        BRIDGE=cloudbr0

 

在KVM主机上执行【cloud-setup-agent  -m 192.168.6.37 -z 1 -p 1 -c 2 -g
1ab192de-5e6a-39e7-842a-7e56b9a03646 -a --pubNic=cloudbr0 --prvNic=cloudbr0
--guestNic=cloudbr0】出现如下错误:

 

[root@node1 ~]# cloud-setup-agent  -m 192.168.6.37 -z 1 -p 1 -c 2 -g
1ab192de-5e6a-39e7-842a-7e56b9a03646 -a --pubNic=cloudbr0 --prvNic=cloudbr0
--guestNic=cloudbr0

Starting to configure your system:

Configure SElinux ...         [OK]

Configure Network ...         [OK]

Configure Libvirt ...         [Failed]

Configuration failed for service Libvirt

Try to restore your system:

Restore SElinux ...           [OK]

Restore Network ...           [OK]

Restore Libvirt ...           [Failed]

 

我不清楚问题出在哪里,有了解的麻烦告知一下,谢谢


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message