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

add CentOS 6.3 kvm compute error

Hey ALL:
        I have installed cloudstack 3.0.5 .

the compute node's OS is CentOS 6.3 x64

I use the install.sh to install the cloud-agent on the node
here is the versions of the kvm

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

I have edit the qemu.conf,make the
 vnc="0.0.0.0" to be used


and Append the below section into /etc/cgconfig.conf
group virt {
cpu {
cpu.shares = 9216;
}


[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

could someone help me ? Thanks

-- 
白清杰 (Born Bai)

Beijing Open Vision Information Technology Co.,Ltd

Mail: linuxbqj@gmail.com

Re: add CentOS 6.3 kvm compute error

Posted by "linuxbqj@gmail.com" <li...@gmail.com>.
Thanks Bryan
it's resolved


2012/11/29 Bryan Whitehead <dr...@megahappy.net>

> Run "/etc/init.d/cgconfig restart"
>
> After you do that restart libvirtd.
>
>
> On Wed, Nov 28, 2012 at 10:25 PM, linuxbqj@gmail.com <linuxbqj@gmail.com
> >wrote:
>
> > Hey ALL:
> >         I have installed cloudstack 3.0.5 .
> >
> > the compute node's OS is CentOS 6.3 x64
> >
> > I use the install.sh to install the cloud-agent on the node
> > here is the versions of the kvm
> >
> > 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
> >
> > I have edit the qemu.conf,make the
> >  vnc="0.0.0.0" to be used
> >
> >
> > and Append the below section into /etc/cgconfig.conf
> > group virt {
> > cpu {
> > cpu.shares = 9216;
> > }
> >
> >
> > [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
> >
> > could someone help me ? Thanks
> >
> > --
> > 白清杰 (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: add CentOS 6.3 kvm compute error

Posted by Bryan Whitehead <dr...@megahappy.net>.
Run "/etc/init.d/cgconfig restart"

After you do that restart libvirtd.


On Wed, Nov 28, 2012 at 10:25 PM, linuxbqj@gmail.com <li...@gmail.com>wrote:

> Hey ALL:
>         I have installed cloudstack 3.0.5 .
>
> the compute node's OS is CentOS 6.3 x64
>
> I use the install.sh to install the cloud-agent on the node
> here is the versions of the kvm
>
> 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
>
> I have edit the qemu.conf,make the
>  vnc="0.0.0.0" to be used
>
>
> and Append the below section into /etc/cgconfig.conf
> group virt {
> cpu {
> cpu.shares = 9216;
> }
>
>
> [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
>
> could someone help me ? Thanks
>
> --
> 白清杰 (Born Bai)
>
> Beijing Open Vision Information Technology Co.,Ltd
>
> Mail: linuxbqj@gmail.com
>