Hey Qiu Yu,<br><br>I am a beginner to both lxc and openstack swift. Can you please clarify some of my doubts related to openstack swift and lxc?<br><br><br>1. I want to set up a small cloud storage environment in my laptop. I mean i need to host storage services for some clients and i want to virtualize this environment. Is openstack swift enough for the above purpose or should i install nova, glance and swift?<br>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 8 November 2012 22:10, Sujay M <span dir="ltr"><<a href="mailto:sujay.m17@gmail.com" target="_blank">sujay.m17@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey Qiu Yu,<br><br>I am a beginner to both lxc and openstack swift. Can you please clarify some of my doubts related to openstack swift and lxc?<br><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">
On 8 November 2012 21:39, unicell <span dir="ltr"><<a href="mailto:unicell@gmail.com" target="_blank">unicell@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hi,<div><br></div><div>I'm trying to manage LXC instances through OpenStack, which use libvirt as a virtualization driver layer. After launching LXC instance, I simply could not attach to the console.</div>
<div><br></div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>virsh # list</div></div>
<div><div> Id Name State</div></div><div><div>----------------------------------</div></div><div><div>14366 instance-00000078 running</div></div><div><div><br></div></div><div><div>virsh # console 14366</div>
</div><div><div>Connected to domain instance-00000078</div></div><div><div>Escape character is ^]</div></div></blockquote><div><br></div><div>And it keeps stuck here.</div><div><br></div><div>Initially I thought it could be a cgroup device config issue, and tried to "echo ‘c 5:1 rwm' >/cgroup/devices/libvirt/lxc/instance-00000078/devices.allow“, to add /dev/console access right to the container. But it does not work, console stilll not working.</div>
<div><br></div><div>Before the cgroup tweaking, devices.list are as follows</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>[root@localhost libvirt]# cat /cgroup/devices/libvirt/lxc/instance-0000007a/devices.list</div>
<div><br></div><div><div>c 1:3 rwm</div></div><div><div>c 1:5 rwm</div></div><div><div>c 1:7 rwm</div></div><div><div>c 1:8 rwm</div></div><div><div>c 1:9 rwm</div></div><div><div>c 5:0 rwm</div></div><div><div>c 5:2 rwm</div>
</div><div><div>c 136:* rwm</div></div></blockquote>
<div><br></div><div>I'm not quite sure what kind of issue could possibly cause this console access issue. Cause I'm now using two different guest OS templates on two different host OSes. Following are some symptoms I observed.</div>
<div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><br></div><div>* (g) for container guest OS</div><div>* (h) for host OS</div><div>* NOTE: Ubuntu guest os are generated by lxc-create -t ubuntu, which is an Ubuntu 12.04 based lxc template.</div>
<div> CentOS guest os are handcrafted by myself, taking reference of <a href="http://wiki.1tux.org/wiki/Lxc/Installation/Guest/Centos/6" target="_blank">http://wiki.1tux.org/wiki/Lxc/Installation/Guest/Centos/6</a></div>
<div>
<ol><li>Ubuntu (g) launched by lxc-start on Ubuntu 12.04 host, console works</li><li>Ubuntu (g) launched by OpenStack / libvirt on Ubuntu 12.04 host, console works</li><li>Ubuntu (g) launched by OpenStack / libvirt on CentOS 6.3 host, console NOT works</li>
<li>CentOS (g) launched by lxc-start on Ubuntu 12.04 host, console works</li><li>CentOS (g) launched by OpenStack / libvirt on Ubuntu12.04 host, console NOT works</li><li>CentOS (g) launched by OpenStack / libvirt on CentOS 6.3 host, console NOT works</li>
</ol></div></blockquote></div><div>So somehow I feel it could be something related to LXC template rootfs, but Host OS do make a difference (2 vs. 3). lxc-start / libvirt also makes a difference (4 vs. 5), but that might be caused by cgroup setting.</div>
<div><br></div><div>Could someone shed me some clues to further digging this issue? Thanks! </div><div><br></div><div>--<br>Qiu Yu<br>
</div>
<br></div></div>------------------------------------------------------------------------------<br>
Everyone hates slow websites. So do we.<br>
Make your web apps faster with AppDynamics<br>
Download AppDynamics Lite for free today:<br>
<a href="http://p.sf.net/sfu/appdyn_d2d_nov" target="_blank">http://p.sf.net/sfu/appdyn_d2d_nov</a><br>_______________________________________________<br>
Lxc-users mailing list<br>
<a href="mailto:Lxc-users@lists.sourceforge.net" target="_blank">Lxc-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/lxc-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/lxc-users</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Best Regards,<br><br>Sujay M<br>Final year B.Tech<br>Computer Engineering<br>NITK Surathkal<br><br>contact: +918971897571<br>
<br>
</font></span></div>
</blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br><br>Sujay M<br>Final year B.Tech<br>Computer Engineering<br>NITK Surathkal<br><br>contact: +918971897571<br><br>
</div>