<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
DIV.FoxDiv20130812103158553375 {
LINE-HEIGHT: 1.5; FONT-FAMILY: 微 COLOR: #000000; FONT-SIZE: 11pt; 36719: ; 38597: ; 40657:
}
BODY {
LINE-HEIGHT: 1.5; FONT-FAMILY: ΢ÈíÑźÚ; COLOR: #000000; FONT-SIZE: 10.5pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 8.00.7601.17514"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>Hi yong,</DIV>
<DIV> </DIV>
<DIV>It seems you didn't mount all of the 'cpuacct', 'devices'
& 'memory' cgroups. You can see If you missed mounting one of
them in the cgroup dir "/sys/fs/cgroup" or execute command "mount" to see
which cgroup you mounted.</DIV>
<DIV> </DIV>
<DIV>Thanks</DIV>
<DIV> </DIV>
<DIV>On 2013-08-11 15:31 , <A
href="mailto:diaominribao@gmail.com">µóÃñ</A> wrote:</DIV>
<DIV>
<TABLE width="100%">
<TBODY>
<TR>
<TD width="100%">
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="BACKGROUND-COLOR: white" class=FoxDiv20130812103158553375>
<DIV dir=ltr>
<DIV>
<DIV>
<DIV>hello<BR></DIV>I have a problem when trying to get LXC running on
CentOS6.4 + OpenStack Grizzly .<BR></DIV><BR></DIV>
<DIV>I did flowing things<BR></DIV>
<DIV>1. Change nova.conf ,"libvirt_type=lxc"<BR></DIV>
<DIV>2.compile nbd and qemu-nbd<BR></DIV>
<DIV>3.create image and update" --property
hypervisor_type=<SPAN>lxc"</SPAN><BR>4."mount none -t cgroup -o
cpuacct,memory,devices,cpu,freezer,blkio /cgroup",based on <A
href="https://wiki.openstack.org/wiki/LXC">https://wiki.openstack.org/wiki/LXC</A><BR></DIV>
<DIV><BR></DIV>
<DIV>When I launch instance,something still wrong.I got the following
error message from nova-compute node (I am not quite sure whether there
are other error msgs or not):</DIV>
<DIV><PRE><BR>2013-08-11 14:51:52.556 ERROR nova.compute.manager [req-d04d50c4-e77f-4b84-af1d-912a3b3e1f00 70fdefb4da394e789641bb96e40cb649 20220930f9e74cfab0185eb8c7623fb7] [instance: c0211c19-3385-4fac-928a-5b821746cd82] Instance failed to spawn<BR>
2013-08-11 14:51:52.556 4640 TRACE nova.compute.manager [instance: c0211c19-3385-4fac-928a-5b821746cd82] Traceback (most recent call last):<BR>2013-08-11 14:51:52.556 4640 TRACE nova.compute.manager [instance: c0211c19-3385-4fac-928a-5b821746cd82] File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1103, in _spawn<BR>
2013-08-11 14:51:52.556 4640 TRACE nova.compute.manager [instance: c0211c19-3385-4fac-928a-5b821746cd82] block_device_info)<BR>2013-08-11 14:51:52.556 4640 TRACE nova.compute.manager [instance: c0211c19-3385-4fac-928a-5b821746cd82] File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 1528, in spawn<BR>
2013-08-11 14:51:52.556 4640 TRACE nova.compute.manager [instance: c0211c19-3385-4fac-928a-5b821746cd82] block_device_info)<BR>2013-08-11 14:51:52.556 4640 TRACE nova.compute.manager [instance: c0211c19-3385-4fac-928a-5b821746cd82] File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2444, in _create_domain_and_network<BR>
2013-08-11 14:51:52.556 4640 TRACE nova.compute.manager [instance: c0211c19-3385-4fac-928a-5b821746cd82] domain = self._create_domain(xml, instance=instance)<BR>2013-08-11 14:51:52.556 4640 TRACE nova.compute.manager [instance: c0211c19-3385-4fac-928a-5b821746cd82] File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2405, in _create_domain<BR>
2013-08-11 14:51:52.556 4640 TRACE nova.compute.manager [instance: c0211c19-3385-4fac-928a-5b821746cd82] domain.createWithFlags(launch_flags)<BR>2013-08-11 14:51:52.556 4640 TRACE nova.compute.manager [instance: c0211c19-3385-4fac-928a-5b821746cd82] File "/usr/lib/python2.6/site-packages/eventlet/tpool.py", line 187, in doit<BR>
2013-08-11 14:51:52.556 4640 TRACE nova.compute.manager [instance: c0211c19-3385-4fac-928a-5b821746cd82] result = proxy_call(self._autowrap, f, *args, **kwargs)<BR>2013-08-11 14:51:52.556 4640 TRACE nova.compute.manager [instance: c0211c19-3385-4fac-928a-5b821746cd82] File "/usr/lib/python2.6/site-packages/eventlet/tpool.py", line 147, in proxy_call<BR>
2013-08-11 14:51:52.556 4640 TRACE nova.compute.manager [instance: c0211c19-3385-4fac-928a-5b821746cd82] rv = execute(f,*args,**kwargs)<BR>2013-08-11 14:51:52.556 4640 TRACE nova.compute.manager [instance: c0211c19-3385-4fac-928a-5b821746cd82] File "/usr/lib/python2.6/site-packages/eventlet/tpool.py", line 76, in tworker<BR>
2013-08-11 14:51:52.556 4640 TRACE nova.compute.manager [instance: c0211c19-3385-4fac-928a-5b821746cd82] rv = meth(*args,**kwargs)<BR>2013-08-11 14:51:52.556 4640 TRACE nova.compute.manager [instance: c0211c19-3385-4fac-928a-5b821746cd82] File "/usr/lib64/python2.6/site-packages/libvirt.py", line 708, in createWithFlags<BR>
2013-08-11 14:51:52.556 4640 TRACE nova.compute.manager [instance: c0211c19-3385-4fac-928a-5b821746cd82] if ret == -1: raise libvirtError ('virDomainCreateWithFlags() failed', dom=self)<BR>2013-08-11 14:51:52.556 4640 TRACE nova.compute.manager [instance: c0211c19-3385-4fac-928a-5b821746cd82] libvirtError: internal error The 'cpuacct', 'devices' & 'memory' cgroups controllers must be mounted<BR>
<BR>2013-08-11 14:52:40.804 ERROR nova.compute.manager [req-d04d50c4-e77f-4b84-af1d-912a3b3e1f00 70fdefb4da394e789641bb96e40cb649 20220930f9e74cfab0185eb8c7623fb7] [instance: c0211c19-3385-4fac-928a-5b821746cd82] Error: ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 848, in _run_instance\n set_access_ip=set_access_ip)\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1107, in _spawn\n LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', ' File "/usr/lib64/python2.6/contextlib.py", line 23, in __exit__\n self.gen.next()\n', ' File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1103, in _spawn\n block_device_info)\n', ' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 1528, in spawn\n block_device_info)\n', ' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2444, in _create_domain_and_network\n domain = self._create_domain(xml, instance=instance)\n', ' File "/usr/lib/python2.6/site-packages/nova/virt/libvirt/driver.py", line 2405, in _create_domain\n domain.createWithFlags(launch_flags)\n', ' File "/usr/lib/python2.6/site-packages/eventlet/tpool.py", line 187, in doit\n result = proxy_call(self._autowrap, f, *args, **kwargs)\n', ' File "/usr/lib/python2.6/site-packages/eventlet/tpool.py", line 147, in proxy_call\n rv = execute(f,*args,**kwargs)\n', ' File "/usr/lib/python2.6/site-packages/eventlet/tpool.py", line 76, in tworker\n rv = meth(*args,**kwargs)\n', ' File "/usr/lib64/python2.6/site-packages/libvirt.py", line 708, in createWithFlags\n if ret == -1: raise libvirtError (\'virDomainCreateWithFlags() failed\', dom=self)\n', "libvirtError: internal error The 'cpuacct', 'devices' & 'memory' cgroups controllers must be mounted\n"]<BR>
<BR></PRE></DIV>
<DIV>
<DIV>but I do mount subsys on /cgroup.Has anybody seen the same problem
and any solution?<BR><BR></DIV>
<DIV>Thanks,<BR></DIV>
<DIV>Yoon<BR></DIV></DIV></DIV></DIV></BLOCKQUOTE></TD></TR></TBODY></TABLE></DIV>
<DIV> </DIV>
<DIV><SPAN>
<DIV style="FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV>------------------ <BR>Best
regards!<BR>GuanQiang</DIV></DIV></SPAN></DIV>
<DIV>10:31:58</DIV></BODY></HTML>