<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css> <!--@import url(scrollbar.css); --></STYLE>

<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>                   body{FONT-SIZE:12pt; FONT-FAMILY:宋体,serif;}         </STYLE>

<META name=GENERATOR content="MSHTML 8.00.7601.17514"><BASE 
target=_blank></HEAD>
<BODY 
style="LINE-HEIGHT: 1.3; BORDER-RIGHT-WIDTH: 0px; MARGIN: 12px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" 
marginheight="0" marginwidth="0">
<DIV><FONT face="Times New Roman">Hi Pádraig<BR>I think you are right. I met the 
same probelm just as 念远 did when I tried lxc with openstack 
folsom.</FONT></DIV>
<DIV><FONT face="Times New Roman">To solve the problem, I tried to modify the 
function setup_container, adding a partition argument to _DiskImage(...) just as 
follow:</FONT></DIV><FONT face="Times New Roman">
<DIV><BR> #img = _DiskImage(image=image, use_cow=use_cow, 
mount_dir=container_dir)                                                                                          
<BR> img = _DiskImage(image=image, 
partition=FLAGS.libvirt_inject_partition, use_cow=use_cow, 
mount_dir=container_dir) </DIV>
<DIV><BR>And it works! </FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV><FONT face="Times New Roman">But I still have a little doubt about the lxc 
image. <BR>It seems to me that many kvm images can not be used to create lxc 
while another little few can.<BR>Why does this happen?</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV><FONT face="Times New Roman">thanks,<BR>Guan Qiang.</FONT></DIV>
<DIV><FONT face="Times New Roman"></FONT> </DIV>
<DIV><FONT face="Times New Roman">On 10/21/2012 06:17 PM, Pádraig 
wrote:<BR>>On 10/19/2012 09:15 PM, 念远 wrote: <BR>>> Hi,all! 
<BR>>> <BR>>> In my ubuntu server (12.04.1), install openstack 
folsom, but i can't boot instance,nova-compute.log display blow log ! 
<BR>>> <BR>>> who can help me,thanks! <BR>><BR>>> 
2012-10-20 08:58:45 TRACE nova.compute.manager [instance: 
d0a1c023-800c-4f1f-bb27-fb8279c6712e]   File "/usr/lib/python2.7/di 
<BR>>> st-packages/nova/virt/disk/api.py", line 326, in setup_container 
<BR>>> 2012-10-20 08:58:45 TRACE nova.compute.manager [instance: 
d0a1c023-800c-4f1f-bb27-fb8279c6712e]     raise 
exception.NovaExcep <BR>>> tion(img.errors) <BR>>> 2012-10-20 
08:58:45 TRACE nova.compute.manager [instance: 
d0a1c023-800c-4f1f-bb27-fb8279c6712e] NovaException: <BR>>> 2012-10-20 
08:58:45 TRACE nova.compute.manager [instance: 
d0a1c023-800c-4f1f-bb27-fb8279c6712e] -- <BR>>> 2012-10-20 08:58:45 TRACE 
nova.compute.manager [instance: d0a1c023-800c-4f1f-bb27-fb8279c6712e] Failed to 
mount filesystem: U <BR>>> nexpected error while running command. 
<BR>><BR>>Are you using a partitioned image? <BR>>LXC doesn't currently 
support that. <BR>>You should be able copy out the partition of interest 
<BR>>if this is that case, and use that directly image. 
</FONT></DIV></BODY></HTML>