<div dir="ltr"><font size="4">hey guys,</font><div><font size="4">I tried to launch lxc container on openstack hanava+Red Hat Enterprise Linux Server 6.3 .</font></div><div><font size="4">Based on <a href="http://docs.openstack.org">docs.openstack.org</a> and mail list,I did following things</font></div>
<div><font size="4">1,change nova.conf</font></div><div><font size="4">2,compile nbd and qemu-nbd</font></div><div><font size="4">3,<span style="font-family:arial,sans-serif">extract </span><font face="arial, sans-serif">ubuntu-12.04-server-cloudimg-amd64.tar.gz</font><span style="font-family:arial,sans-serif"> and use the </span><font face="arial, sans-serif">precise-server-cloudimg-amd64.img </font><span style="font-family:arial,sans-serif">file to create image and update </span><span style="font-family:arial,sans-serif"> "hypervisor_type=lxc"</span></font></div>
<div><font face="arial, sans-serif" size="4">but something still wrong when I launch instance.Error message as following:</font></div><div><span style="font-family:arial,sans-serif;font-size:14px"> </span>2014-04-21 16:03:04.861 2734 ERROR nova.virt.libvirt.driver [req-36c49e80-9ebf-4993-8780-6f58dc57599b c858177430bc430b9bb5698c4e8da2ce a54652c546694dbbac7ebe55f210003c] [instance: 79c6678e-4972-4f33-a024-60aef5438522] Failed to cleanup directory /var/lib/nova/instances/79c6678e-4972-4f33-a024-60aef5438522: [Errno 13] Permission denied: '/var/lib/nova/instances/79c6678e-4972-4f33-a024-60aef5438522/rootfs/lib64/ld-linux-x86-64.so.2'</div>
<div>2014-04-21 16:03:05.171 2734 ERROR nova.compute.manager [req-36c49e80-9ebf-4993-8780-6f58dc57599b c858177430bc430b9bb5698c4e8da2ce a54652c546694dbbac7ebe55f210003c] [instance: 79c6678e-4972-4f33-a024-60aef5438522] Error: internal error guest failed to start: 2014-04-21 08:03:03.735+0000: 27293: info : libvirt version: 0.9.10, package: 21.el6_3.5 (Red Hat, Inc. <<a href="http://bugzilla.redhat.com/bugzilla">http://bugzilla.redhat.com/bugzilla</a>>, 2012-09-26-15:22:32, <a href="http://x86-022.build.eng.bos.redhat.com">x86-022.build.eng.bos.redhat.com</a>)</div>
<div>2014-04-21 08:03:03.735+0000: 27293: error : lxcControllerRun:1484 : Failed to query file context on /var/lib/nova/instances/79c6678e-4972-4f33-a024-60aef5438522/rootfs: No data available</div><div><font size="4">I checked the compute node, "/var/lib/nova/instances/79c6678e-4972-4f33-a024-60aef5438522/rootfs" and "/var/lib/nova/instances/79c6678e-4972-4f33-a024-60aef5438522/rootfs/lib64/ld-linux-x86-64.so.2" have been created. I think there are something wrong in creating image.<span style="font-family:arial,sans-serif">Has anybody seen the same problem and any solution?If i want to make a lxc image,what shoud i do?</span></font></div>
<div><font size="4"><span style="font-family:arial,sans-serif"><br></span></font></div><div><font size="4"><span style="font-family:arial,sans-serif">Thanks & Best regards!</span></font></div><div><font size="4"><span style="font-family:arial,sans-serif">Yoon</span></font></div>
</div>