[Users] Unable to run VM with "Unable to create cgroup" error message

Hi everyone, I created a Desktop VM1 with all default settings and added a 2G Disk to the VM1 in WebAdmin. But when I run the vm, it returns failure with the follow error message in WebAdmin. "VM VM1 is down. Exit message: Unable to create cgroup for VM1" My DateCenter contains one host(with OS is CentOS 6, VDSM version is 4.9.6 and libvirt version is 0.9.4) and one NFS domain. And The cgroup Directory have already exits on the host. But why cannot I run the VM1? There are some error message in VDSM log -------- File "/usr/lib64/python2.6/site-packages/libvirt.py", line 2087, in createXML if ret is None: raise libvirtError('virDomainCreateXML() failed', conn=self) libvirtError: Unable to create cgroup for VM1: No such file or directory ---------- There are some error message in libvirt log --------- error : virNetClientProgramDispatchError:170 : Unable to create cgroup for VM1: No such file or directory" --------- There are log files in attachment Best wishes, Xuejie Chen

Hi, the only problem I could imagine is that there is really some directory missing, but you said it is there. Fromt his point I see two things you can try: 1) run libvirt with debugging output enabled [1] 2) try to create the directories manually Hopefully it'll give us more information on what's wrong. Martin On 07/03/2012 11:55 AM, xuejie chen wrote:
Hi everyone,
I created a Desktop VM1 with all default settings and added a 2G Disk to the VM1 in WebAdmin. But when I run the vm, it returns failure with the follow error message in WebAdmin. "VM VM1 is down. Exit message: Unable to create cgroup for VM1"
My DateCenter contains one host(with OS is CentOS 6, VDSM version is 4.9.6 and libvirt version is 0.9.4) and one NFS domain. And The cgroup Directory have already exits on the host. But why cannot I run the VM1?
There are some error message in VDSM log -------- File "/usr/lib64/python2.6/site-packages/libvirt.py", line 2087, in createXML if ret is None: raise libvirtError('virDomainCreateXML() failed', conn=self) libvirtError: Unable to create cgroup for VM1: No such file or directory ----------
There are some error message in libvirt log --------- error : virNetClientProgramDispatchError:170 : Unable to create cgroup for VM1: No such file or directory" ---------
There are log files in attachment
Best wishes, Xuejie Chen
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Sorry, I almost always forget the links :) [1] http://libvirt.org/logging.html Martin P.S.: don't hesitate to send other info and ask, I'd be happy to help, although I'm going away for week and a half. On 07/04/2012 10:12 AM, Martin Kletzander wrote:
Hi,
the only problem I could imagine is that there is really some directory missing, but you said it is there. Fromt his point I see two things you can try: 1) run libvirt with debugging output enabled [1] 2) try to create the directories manually
Hopefully it'll give us more information on what's wrong.
Martin
On 07/03/2012 11:55 AM, xuejie chen wrote:
Hi everyone,
I created a Desktop VM1 with all default settings and added a 2G Disk to the VM1 in WebAdmin. But when I run the vm, it returns failure with the follow error message in WebAdmin. "VM VM1 is down. Exit message: Unable to create cgroup for VM1"
My DateCenter contains one host(with OS is CentOS 6, VDSM version is 4.9.6 and libvirt version is 0.9.4) and one NFS domain. And The cgroup Directory have already exits on the host. But why cannot I run the VM1?
There are some error message in VDSM log -------- File "/usr/lib64/python2.6/site-packages/libvirt.py", line 2087, in createXML if ret is None: raise libvirtError('virDomainCreateXML() failed', conn=self) libvirtError: Unable to create cgroup for VM1: No such file or directory ----------
There are some error message in libvirt log --------- error : virNetClientProgramDispatchError:170 : Unable to create cgroup for VM1: No such file or directory" ---------
There are log files in attachment
Best wishes, Xuejie Chen
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

----- Original Message -----
From: "Martin Kletzander" <mkletzan@redhat.com> To: "xuejie chen" <xuejiechen52@gmail.com> Cc: users@ovirt.org Sent: Wednesday, July 4, 2012 4:12:07 AM Subject: Re: [Users] Unable to run VM with "Unable to create cgroup" error message
Hi,
the only problem I could imagine is that there is really some directory missing, but you said it is there. Fromt his point I see two things you can try: 1) run libvirt with debugging output enabled [1] 2) try to create the directories manually
Is the cgroupfs mounted?
Hopefully it'll give us more information on what's wrong.
Martin
On 07/03/2012 11:55 AM, xuejie chen wrote:
Hi everyone,
I created a Desktop VM1 with all default settings and added a 2G Disk to the VM1 in WebAdmin. But when I run the vm, it returns failure with the follow error message in WebAdmin. "VM VM1 is down. Exit message: Unable to create cgroup for VM1"
My DateCenter contains one host(with OS is CentOS 6, VDSM version is 4.9.6 and libvirt version is 0.9.4) and one NFS domain. And The cgroup Directory have already exits on the host. But why cannot I run the VM1?
There are some error message in VDSM log -------- File "/usr/lib64/python2.6/site-packages/libvirt.py", line 2087, in createXML if ret is None: raise libvirtError('virDomainCreateXML() failed', conn=self) libvirtError: Unable to create cgroup for VM1: No such file or directory ----------
There are some error message in libvirt log --------- error : virNetClientProgramDispatchError:170 : Unable to create cgroup for VM1: No such file or directory" ---------
There are log files in attachment
Best wishes, Xuejie Chen
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On 07/04/2012 02:36 PM, Andrew Cathrow wrote:
----- Original Message -----
From: "Martin Kletzander" <mkletzan@redhat.com> To: "xuejie chen" <xuejiechen52@gmail.com> Cc: users@ovirt.org Sent: Wednesday, July 4, 2012 4:12:07 AM Subject: Re: [Users] Unable to run VM with "Unable to create cgroup" error message
Hi,
the only problem I could imagine is that there is really some directory missing, but you said it is there. Fromt his point I see two things you can try: 1) run libvirt with debugging output enabled [1] 2) try to create the directories manually
Is the cgroupfs mounted?
I checked and libvirt should complain if it is not mounted. But to be sure, is it?

Hi, 2012/7/4 Martin Kletzander <mkletzan@redhat.com>:
On 07/04/2012 02:36 PM, Andrew Cathrow wrote:
----- Original Message -----
From: "Martin Kletzander" <mkletzan@redhat.com> To: "xuejie chen" <xuejiechen52@gmail.com> Cc: users@ovirt.org Sent: Wednesday, July 4, 2012 4:12:07 AM Subject: Re: [Users] Unable to run VM with "Unable to create cgroup" error message
Hi,
the only problem I could imagine is that there is really some directory missing, but you said it is there. Fromt his point I see two things you can try: 1) run libvirt with debugging output enabled [1] 2) try to create the directories manually
Is the cgroupfs mounted?
I checked and libvirt should complain if it is not mounted. But to be sure, is it? I do not know how to check it. where the cgroupfs should be mounted to?
there are some cgroup directory infomation. ------------------ #ll / ..... drwxr-xr-x. 3 root root 0 Jul 2 16:56 cgroup .... # ls /cgroup cgroup.procs cpu.cfs_period_us cpu.cfs_quata_us .... ------------------------ there are user and group is root root. Is it because the libvirt donot have permission to operate the cgroup? Thanks a lot. xuejie chen.

2012/7/5 xuejie chen <xuejiechen52@gmail.com>:
Hi,
2012/7/4 Martin Kletzander <mkletzan@redhat.com>:
On 07/04/2012 02:36 PM, Andrew Cathrow wrote:
----- Original Message -----
From: "Martin Kletzander" <mkletzan@redhat.com> To: "xuejie chen" <xuejiechen52@gmail.com> Cc: users@ovirt.org Sent: Wednesday, July 4, 2012 4:12:07 AM Subject: Re: [Users] Unable to run VM with "Unable to create cgroup" error message
Hi,
the only problem I could imagine is that there is really some directory missing, but you said it is there. Fromt his point I see two things you can try: 1) run libvirt with debugging output enabled [1] 2) try to create the directories manually
Is the cgroupfs mounted?
I checked and libvirt should complain if it is not mounted. But to be sure, is it? I do not know how to check it. where the cgroupfs should be mounted to?
I have confirmed the cgroupfs did not mounted. Thanks a lot. xuejie chen.

2012/7/5 xuejie chen <xuejiechen52@gmail.com>:
2012/7/5 xuejie chen <xuejiechen52@gmail.com>:
Hi,
2012/7/4 Martin Kletzander <mkletzan@redhat.com>:
On 07/04/2012 02:36 PM, Andrew Cathrow wrote:
----- Original Message -----
From: "Martin Kletzander" <mkletzan@redhat.com> To: "xuejie chen" <xuejiechen52@gmail.com> Cc: users@ovirt.org Sent: Wednesday, July 4, 2012 4:12:07 AM Subject: Re: [Users] Unable to run VM with "Unable to create cgroup" error message
Hi,
the only problem I could imagine is that there is really some directory missing, but you said it is there. Fromt his point I see two things you can try: 1) run libvirt with debugging output enabled [1] 2) try to create the directories manually
Is the cgroupfs mounted?
I checked and libvirt should complain if it is not mounted. But to be sure, is it? I do not know how to check it. where the cgroupfs should be mounted to?
I have confirmed the cgroupfs did not mounted. There is libvirtd's conf and log in attachment may be useful.
Thanks a lot XuejieChen

On 07/05/2012 11:34 AM, xuejie chen wrote:
2012/7/5 xuejie chen<xuejiechen52@gmail.com>:
Hi,
2012/7/4 Martin Kletzander<mkletzan@redhat.com>:
On 07/04/2012 02:36 PM, Andrew Cathrow wrote:
----- Original Message -----
From: "Martin Kletzander"<mkletzan@redhat.com> To: "xuejie chen"<xuejiechen52@gmail.com> Cc: users@ovirt.org Sent: Wednesday, July 4, 2012 4:12:07 AM Subject: Re: [Users] Unable to run VM with "Unable to create cgroup" error message
Hi,
the only problem I could imagine is that there is really some directory missing, but you said it is there. Fromt his point I see two things you can try: 1) run libvirt with debugging output enabled [1] 2) try to create the directories manually Is the cgroupfs mounted?
I checked and libvirt should complain if it is not mounted. But to be sure, is it? I do not know how to check it. where the cgroupfs should be mounted to?
yum install libcgroup-tools on fedora then run libcgroup to check it. I have confirmed the cgroupfs did not mounted. You should make sure cgroupfs is mounted firstly, I'm not sure whether it can be automatically mounted by ovirt, and then you can successfully create a libvirt sub-group in cgroup. Thanks a lot. xuejie chen. _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (4)
-
Alex Jia
-
Andrew Cathrow
-
Martin Kletzander
-
xuejie chen