As far as I am aware, KVM uses the cpu hardware to run completely different operating systems independently of the host.<div><br></div><div>LXC is similar to Linux-VServer, or virtuozzo, where you are always running a base kernel, and can run multiple init's at the same time. Each init (and any processes spawed from that init) are completely isolated, which gives the appearance of a different operating system being run. Note that each container uses the same host kernel, so you cant run software that requires older or newer kernels, or kernels which require specific modules that are not in the host kernel. But you get the benefit that you dont need to switch out entire OS images and/or virtualize hardware, processes are simply scheduled as they would be normally. The only overhead is the extra memory/cpu that the extra processes take up. </div>

<div><br></div><div>I like using linux-vserver as I can access my guests filesystem from my host instance (as its usually just a subdirectory of the main filesystem). I also like it as I can control the networking interfaces from the host with ease, and my firewall is controlled from the host, so I know what traffic is going in/out etc and what ports are open for all ip's on the box, through my firewall rules in the central location. I'm not sure how LXC works this way, as I think they virtualize the networking as well, which is why I'm keen to try it out :)</div>

<div><br></div><div>Take what I say with a grain of salt too :)</div><div><br></div><div>Matt.</div><div><br></div><div><br></div><div> <br><br><div class="gmail_quote">On 19 July 2011 00:26, Always Learning <span dir="ltr"><<a href="mailto:centos@u6.u22.net">centos@u6.u22.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
On Mon, 2011-07-18 at 12:32 +0100, Karanbir Singh wrote:<br>
<br>
<br>
> afaik, LXC was on target for 6.2<br>
<br>
</div>Can someone please summarise the main differences between KVM (Kernel<br>
Virtual Machine) and LXC (Linux Containers) which are similar to BSD<br>
jails ?<br>
<br>
Can one put KVMs into any quantity of LXCs ?<br>
<br>
Do LXCs run only with the main operating system, whereas KVM can run<br>
with a guest operating system ?<br>
<br>
Puuzzled.<br>
<font color="#888888"><br>
<br>
--<br>
With best regards,<br>
<br>
Paul.<br>
England,<br>
EU.<br>
</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
CentOS-virt mailing list<br>
<a href="mailto:CentOS-virt@centos.org">CentOS-virt@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos-virt" target="_blank">http://lists.centos.org/mailman/listinfo/centos-virt</a><br>
</div></div></blockquote></div><br></div>