[Openstack] [OpenStack] Launch LXC container Error

刁民 diaominribao at gmail.com
Mon Apr 21 09:29:14 UTC 2014


hey guys,
I tried to launch lxc container on openstack hanava+Red Hat Enterprise
Linux Server  6.3 .
Based on  docs.openstack.org and mail list,I did following things
1,change nova.conf
2,compile nbd and qemu-nbd
3,extract ubuntu-12.04-server-cloudimg-amd64.tar.gz and use the
precise-server-cloudimg-amd64.img file to create image and update
 "hypervisor_type=lxc"
but something still wrong when I launch instance.Error message as following:
 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'
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. <http://bugzilla.redhat.com/bugzilla>,
2012-09-26-15:22:32, x86-022.build.eng.bos.redhat.com)
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
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.Has
anybody seen the same problem and any solution?If i want to make a lxc
image,what shoud i do?

Thanks & Best regards!
Yoon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20140421/4bde5cc0/attachment.html>


More information about the Openstack mailing list