Hi Daniel,

Thanks for your immidiate reply. The starting of virtual guest was ok on
our machine. We are facing this issue while executing the "cpu-stats
<domain name>" command.
I have collected the debug logs as you suggested and attaching the same.

<<libvirt_testing_starting_VG.log >> --> Log collected while starting the
virtual guest
<<libvirt_testing_cpu_stats.log >>  --->  Log collected while executing
cpu-stats comamnd
<<CLA_new-0.xml  >>  ---> Domian.xml used for configuration of virtual
guest

Can you please check and let us know your opinion.

Thanks
Abhinay
On Thu, Aug 22, 2013 at 1:43 PM, Daniel P. Berrange <berra...@redhat.com>wrote:

> On Thu, Aug 22, 2013 at 01:35:29PM +0200, arun abhinay wrote:
> > Hi Daniel,
> >
> > Thanks a lot for your reply.
> >
> > We have mounted all the cgoup controllers at  "/dev/cgroup_<controller>"
> as
> > mentioned below.
> > ls /dev/ | grep cgroup
> > cgroup_cpu    cgroup_cpuacct       cgroup_cpuset         cgroup_mem
> >
> > On further debugging we dound that the "VCPU" directories are not being
> > created for our domains and hence the comamnd "cpu-stats <domain>" is
> > failing.
> > Below is the snippet of logs collected with debug logs enabled for
> libvirt.
> >
> > 2013-08-21 15:03:35.162+0000: 1273: error : virCgroupMakeGroup:708 : Make
> > group /machine/anusha.libvirt-qemu/vcpu0
> > 2013-08-21 15:03:35.162+0000: 1273: error : virCgroupMakeGroup:729 :
> > Makecontroller /dev/cgroup_cpu/machine/anusha.libvirt-qemu/vcpu0/
> > 2013-08-21 15:03:35.162+0000: 1273: error : virCgroupMakeGroup:745 :
> Failed
> > to create controller cpu for group
>
> Is that a debug log from when you started the guest, or from
> when you run the cpu-stats command.  We need a full log from
> when you started the guest to try & diagnose this.
>
> Run libvirtd with
>
>   LIBVIRT_LOG_FILTERS="1:cgroup"
> LIBVIRT_LOG_OUTPUTS=1:file:/tmp/libvirt.log /usr/sbin/libvirtd
>
> and start the guest, and then upload the log somewhere we can see it
>
> Daniel
> --
> |: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/:|
> |: http://libvirt.org              -o-             http://virt-manager.org:|
> |: http://autobuild.org       -o-         http://search.cpan.org/~danberr/:|
> |: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc:|
>

Attachment: libvirt_testing_starting_VG.log
Description: Binary data

Attachment: libvirt_testing_cpu_stats.log
Description: Binary data

# cat CLA_new.xml
<domain type='kvm' id='13'>
<name>CLA_new-0</name>
<memory unit='KiB'>786432</memory>
<currentMemory unit='KiB'>786432</currentMemory>
<vcpu placement='static'>1</vcpu>
<os>
<type arch='x86_64' machine='pc'>hvm</type>
<kernel>/tftpboot/cs1/vmlinuz</kernel>
<initrd>/tftpboot/cs1/initrd.img</initrd>
<cmdline>nohz=off highres=off ses=cs1 hw=VMware fews=192.168.255.250 if=eth0 mode=initial</cmdline>
<boot dev='hd'/>
<bootmenu enable='yes'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/local/bin/qemu-system-x86_64</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw'/>
<source file='/root/linux-0.2.img'/>
<target dev='hda' bus='ide'/>
<alias name='ide0-0-0'/>
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
</disk>
<controller type='ide' index='0'>
<alias name='ide0'/>
</controller>
<interface type='network'>
<mac address='00:50:56:00:00:01'/>
<source network='internal'/>
<target dev='vnet0'/>
<model type='e1000'/>
<alias name='net0'/>
</interface>
<interface type='network'>
<source network='external'/>
<target dev='vnet1'/>
<model type='e1000'/>
<alias name='net1'/>
</interface>
<serial type='pty'>
<source path='/dev/pts/1'/>
<target port='0'/>
<alias name='serial0'/>
</serial>
<console type='pty' tty='/dev/pts/1'>
<source path='/dev/pts/1'/>
<target type='serial' port='0'/>
<alias name='serial0'/>
</console>
<graphics type='vnc' port='5900' autoport='yes'/>
<video>
<model type='cirrus' vram='9216' heads='1'/>
<alias name='video0'/>
</video>
<memballoon model='virtio'>
<alias name='balloon0'/>
</memballoon>
</devices>
</domain>
_______________________________________________
libvirt-users mailing list
libvirt-users@redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users

Reply via email to