You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-cn@cloudstack.apache.org by "linuxbqj@gmail.com" <li...@gmail.com> on 2012/11/29 07:14:50 UTC

centos 6.3 添加kvm 计算节点失败

Hey ALL:

我在添加KVM计算节点时,系统报错,libvirted也启动不起来了,有人知道原因么

计算节点:
      CentOS 6.3 x64
  cloudstack 3.0.5-1


libvirt-devel-0.9.10-21.el6_3.6.x86_64
libvirt-java-0.4.7-1.el6.noarch
virt-viewer-0.5.2-9.el6.x86_64
virt-what-1.11-1.1.el6.x86_64
libvirt-0.9.10-21.el6_3.6.x86_64
libvirt-client-0.9.10-21.el6_3.6.x86_64
libvirt-java-devel-0.4.7-1.el6.noarch
libvirt-python-0.9.10-21.el6_3.6.x86_64
virt-manager-0.9.0-14.el6.x86_64
python-virtinst-0.600.0-8.el6.noarch
virt-top-1.0.4-3.13.el6.x86_64

qemu-kvm-0.12.1.2-3.209.el6.4.x86_64
qemu-img-0.12.1.2-3.209.el6.4.x86_64


使用脚本安装,只安装cloud-agent
qemu.conf 已经修改了vnc的配置

在/etc/cgconfig.conf 中添加了
group virt {
    cpu {
        cpu.shares = 9216;
        }
}



agent初始化
[root@ ~]# cloud-setup-agent
Welcome to Cloud Agent Setup:
Please input the Management Server Name/IP:[localhost]192.168.2.9

Please input the Zone Id:[default]15d8d9e4-73fc-4830-8b6d-85bfb25ed968

Please input the Pod Id:[default]03ea301c-bdf2-48e9-a753-1b9cfd61f03e

Please input the Cluster Id:[]2dcc5a45-d08e-4588-b5c1-89d5af7b8dd8

Please choose which network used to create VM:[cloudbr0]

Starting to configure your system:
Configure SElinux ...         [OK]
Configure Network ...         [OK]
Configure Libvirt ...         [Failed]
Traceback (most recent call last):
  File "/usr/bin/cloud-setup-agent", line 112, in <module>
    syscfg.config()
  File "/usr/lib/python2.6/site-packages/cloudutils/syscfg.py", line 76, in
conf
    raise CloudInternalException()
TypeError: __init__() takes exactly 2 arguments (1 given)


启动时报错
#/etc/init.d/libvirtd start
Starting libvirtd daemon: cgroup change of group failed
                                                           [FAILED


有人知道原因么?



-- 
白清杰 (Born Bai)

Beijing Open Vision Information Technology Co.,Ltd

Mail: linuxbqj@gmail.com

Re: centos 6.3 添加kvm 计算节点失败

Posted by "linuxbqj@gmail.com" <li...@gmail.com>.
thanks so much!

It's ok to type english

I will try cloudstack 4.0 later


2012/11/30 Edison Su <Ed...@citrix.com>

> Centos 6.3 is supported only on Cloudstack 4.0.
> Better to try Cloudstack 4.0, which is the first Apache release.
> BTW, I'll answer any technical questions in this mailing list, so please
> if you have questions, just post here:) Can't type Chinese in my xen
> desktop, sorry.
>
> > -----Original Message-----
> > From: linuxbqj@gmail.com [mailto:linuxbqj@gmail.com]
> > Sent: Wednesday, November 28, 2012 10:15 PM
> > To: cloudstack-users-cn@incubator.apache.org
> > Subject: centos 6.3 添加kvm 计算节点失败
> >
> > Hey ALL:
> >
> > 我在添加KVM计算节点时,系统报错,libvirted也启动不起来了,有人
> > 知道原因么
> >
> > 计算节点:
> >       CentOS 6.3 x64
> >   cloudstack 3.0.5-1
> >
> >
> > libvirt-devel-0.9.10-21.el6_3.6.x86_64
> > libvirt-java-0.4.7-1.el6.noarch
> > virt-viewer-0.5.2-9.el6.x86_64
> > virt-what-1.11-1.1.el6.x86_64
> > libvirt-0.9.10-21.el6_3.6.x86_64
> > libvirt-client-0.9.10-21.el6_3.6.x86_64
> > libvirt-java-devel-0.4.7-1.el6.noarch
> > libvirt-python-0.9.10-21.el6_3.6.x86_64
> > virt-manager-0.9.0-14.el6.x86_64
> > python-virtinst-0.600.0-8.el6.noarch
> > virt-top-1.0.4-3.13.el6.x86_64
> >
> > qemu-kvm-0.12.1.2-3.209.el6.4.x86_64
> > qemu-img-0.12.1.2-3.209.el6.4.x86_64
> >
> >
> > 使用脚本安装,只安装cloud-agent
> > qemu.conf 已经修改了vnc的配置
> >
> > 在/etc/cgconfig.conf 中添加了
> > group virt {
> >     cpu {
> >         cpu.shares = 9216;
> >         }
> > }
> >
> >
> >
> > agent初始化
> > [root@ ~]# cloud-setup-agent
> > Welcome to Cloud Agent Setup:
> > Please input the Management Server Name/IP:[localhost]192.168.2.9
> >
> > Please input the Zone Id:[default]15d8d9e4-73fc-4830-8b6d-85bfb25ed968
> >
> > Please input the Pod Id:[default]03ea301c-bdf2-48e9-a753-1b9cfd61f03e
> >
> > Please input the Cluster Id:[]2dcc5a45-d08e-4588-b5c1-89d5af7b8dd8
> >
> > Please choose which network used to create VM:[cloudbr0]
> >
> > Starting to configure your system:
> > Configure SElinux ...         [OK]
> > Configure Network ...         [OK]
> > Configure Libvirt ...         [Failed]
> > Traceback (most recent call last):
> >   File "/usr/bin/cloud-setup-agent", line 112, in <module>
> >     syscfg.config()
> >   File "/usr/lib/python2.6/site-packages/cloudutils/syscfg.py", line 76,
> in conf
> >     raise CloudInternalException()
> > TypeError: __init__() takes exactly 2 arguments (1 given)
> >
> >
> > 启动时报错
> > #/etc/init.d/libvirtd start
> > Starting libvirtd daemon: cgroup change of group failed
> >                                                            [FAILED
> >
> >
> > 有人知道原因么?
> >
> >
> >
> > --
> > 白清杰 (Born Bai)
> >
> > Beijing Open Vision Information Technology Co.,Ltd
> >
> > Mail: linuxbqj@gmail.com
>



-- 
白清杰 (Born Bai)

Beijing Open Vision Information Technology Co.,Ltd

Mail: linuxbqj@gmail.com

RE: centos 6.3 添加kvm 计算节点失败

Posted by Edison Su <Ed...@citrix.com>.
Centos 6.3 is supported only on Cloudstack 4.0.
Better to try Cloudstack 4.0, which is the first Apache release.
BTW, I'll answer any technical questions in this mailing list, so please if you have questions, just post here:) Can't type Chinese in my xen desktop, sorry.

> -----Original Message-----
> From: linuxbqj@gmail.com [mailto:linuxbqj@gmail.com]
> Sent: Wednesday, November 28, 2012 10:15 PM
> To: cloudstack-users-cn@incubator.apache.org
> Subject: centos 6.3 添加kvm 计算节点失败
> 
> Hey ALL:
> 
> 我在添加KVM计算节点时,系统报错,libvirted也启动不起来了,有人
> 知道原因么
> 
> 计算节点:
>       CentOS 6.3 x64
>   cloudstack 3.0.5-1
> 
> 
> libvirt-devel-0.9.10-21.el6_3.6.x86_64
> libvirt-java-0.4.7-1.el6.noarch
> virt-viewer-0.5.2-9.el6.x86_64
> virt-what-1.11-1.1.el6.x86_64
> libvirt-0.9.10-21.el6_3.6.x86_64
> libvirt-client-0.9.10-21.el6_3.6.x86_64
> libvirt-java-devel-0.4.7-1.el6.noarch
> libvirt-python-0.9.10-21.el6_3.6.x86_64
> virt-manager-0.9.0-14.el6.x86_64
> python-virtinst-0.600.0-8.el6.noarch
> virt-top-1.0.4-3.13.el6.x86_64
> 
> qemu-kvm-0.12.1.2-3.209.el6.4.x86_64
> qemu-img-0.12.1.2-3.209.el6.4.x86_64
> 
> 
> 使用脚本安装,只安装cloud-agent
> qemu.conf 已经修改了vnc的配置
> 
> 在/etc/cgconfig.conf 中添加了
> group virt {
>     cpu {
>         cpu.shares = 9216;
>         }
> }
> 
> 
> 
> agent初始化
> [root@ ~]# cloud-setup-agent
> Welcome to Cloud Agent Setup:
> Please input the Management Server Name/IP:[localhost]192.168.2.9
> 
> Please input the Zone Id:[default]15d8d9e4-73fc-4830-8b6d-85bfb25ed968
> 
> Please input the Pod Id:[default]03ea301c-bdf2-48e9-a753-1b9cfd61f03e
> 
> Please input the Cluster Id:[]2dcc5a45-d08e-4588-b5c1-89d5af7b8dd8
> 
> Please choose which network used to create VM:[cloudbr0]
> 
> Starting to configure your system:
> Configure SElinux ...         [OK]
> Configure Network ...         [OK]
> Configure Libvirt ...         [Failed]
> Traceback (most recent call last):
>   File "/usr/bin/cloud-setup-agent", line 112, in <module>
>     syscfg.config()
>   File "/usr/lib/python2.6/site-packages/cloudutils/syscfg.py", line 76, in conf
>     raise CloudInternalException()
> TypeError: __init__() takes exactly 2 arguments (1 given)
> 
> 
> 启动时报错
> #/etc/init.d/libvirtd start
> Starting libvirtd daemon: cgroup change of group failed
>                                                            [FAILED
> 
> 
> 有人知道原因么?
> 
> 
> 
> --
> 白清杰 (Born Bai)
> 
> Beijing Open Vision Information Technology Co.,Ltd
> 
> Mail: linuxbqj@gmail.com