zstackio / zstack

ZStack - the open-source IaaS software http://zstack.org (国内用户请至 http://zstack.io)
Apache License 2.0
1.31k stars 392 forks source link

Is there a timeline for when LXC support will appear in zstack? #23

Open bmullan opened 9 years ago

bmullan commented 9 years ago

I saw the note:

Note: LXC/Docker and SR-IOV are not supported in the current version(0.6).

Is there any target timeline for when LXD and LXC support might be implemented?

https://linuxcontainers.org/lxd/introduction/

https://linuxcontainers.org/lxc/introduction/

thanks brian

bmullan commented 9 years ago

With the release of LXC 1.x there are now several language bindings for the LXC API: python3 (in-tree, long term support in 1.0.x) lua (in tree, long term support in 1.0.x) Go ruby python2 Haskell

https://linuxcontainers.org/lxc/introduction/

zxwing commented 9 years ago

what's the usage of LXC? using as VMs? Currently we haven't planned any timeline for LXC. We want to learn more requirements for it before digging into code.

bmullan commented 9 years ago

Yes. I'd like to use LXC containers instead of hw virtualized machines that you would get if you used vmware, virtualbox, kvm etc.

In LXC (linuxcontainers.org) I can download & install many different linux distro's in my Ubuntu 14.04 host. LXC has templates for ubuntu, centos, opensuse, debian and others. The only requirement obviously is that the containers all run the same kernel has the "host".

With LXC I have had as many as 100 containers running (nested) on my Ubuntu 14.04 desktop. I can't get more than a dozen or so hw VMs to run on same hardware so scalability is a big factor. That and LXC works great also on ARM servers too.

So I think something like ZStack as an IaaS for LXC would be a great solution for not only myself but many others.

Thanks. Brian Mullan

On Wed, May 6, 2015 at 12:47 PM, zxwing notifications@github.com wrote:

what's the usage of LXC? want to use it as VMs?

— Reply to this email directly or view it on GitHub https://github.com/zstackorg/zstack/issues/23#issuecomment-99534584.

connermo commented 9 years ago

IMHO LXC & ZStack are running on different levels of virtualization. You can have a CoreOS image running on ZStack to make LXC work.

bmullan commented 9 years ago

Not sure I understand? zstack in its architecture describes an IaaS to me? zstack's workloads use KVM vm's.

The only thing I was suggesting is that adding LXD/LXC mark shuttleworth's OpenStack Conference preso talks about lxd/lxc support into zstack would seem to enable server density increases to public/private IaaS providers/users of zstack while still fully supporting KVM.

lxc already has templates for centos, debian (many releases), oracle linux, ubuntu (many releases), So my example is a zstack user who wants a CentOS server. zstack could spin up either an LXC container with CentOS running -or- spin up a KVM vm & then deploy Centos into it.

It (lxd/lxc) would just be an additional zstack "compute" resource type in addition to kvm.

Obviously, there is the use-case limitation with any linux container technology vs KVM and that's KVMs ability to boot/run a WIndows OS where in linux containers (openvz, lxc, spawn etc) the guest OS needs to be able to share the linux kernel of the "host".

zxwing commented 9 years ago

You're right. ZStack now is IaaS software based on KVM (and VMWare, LXC in future). For CoreOS and Docker, we consider they as the technology for software distributing. We will integrate them to ZStack as an upper layer.

sequoiar commented 8 years ago

+1