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

2012-07-04 Thread Martin Kletzander
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
 


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2012-07-04 Thread Andrew Cathrow


- Original Message -
 From: Martin Kletzander mklet...@redhat.com
 To: xuejie chen xuejieche...@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
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2012-07-04 Thread Martin Kletzander
On 07/04/2012 02:36 PM, Andrew Cathrow wrote:
 
 
 - Original Message -
 From: Martin Kletzander mklet...@redhat.com
 To: xuejie chen xuejieche...@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?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2012-07-04 Thread xuejie chen
Hi,


2012/7/4 Martin Kletzander mklet...@redhat.com:
 On 07/04/2012 02:36 PM, Andrew Cathrow wrote:


 - Original Message -
 From: Martin Kletzander mklet...@redhat.com
 To: xuejie chen xuejieche...@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.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2012-07-04 Thread xuejie chen
2012/7/5 xuejie chen xuejieche...@gmail.com:
 Hi,


 2012/7/4 Martin Kletzander mklet...@redhat.com:
 On 07/04/2012 02:36 PM, Andrew Cathrow wrote:


 - Original Message -
 From: Martin Kletzander mklet...@redhat.com
 To: xuejie chen xuejieche...@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.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2012-07-03 Thread xuejie chen
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


log.tgz
Description: GNU Zip compressed data
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users