[lxc-users] Clarification

Sean McNamara smcnam at gmail.com
Sat May 26 23:09:08 UTC 2018


That's correct. LXC and LXD are not a hypervisor; the container runs
user-space code on the same kernel as the host kernel. Windows has its
own separate kernel and its userspace is incapable of running on the
Linux kernel for many reasons (different executable format, different
kernel ABI/API, different responsibilities for userspace vs. kernel,
etc.)

*Some* Windows programs can be emulated with limited success using
Wine, but Wine will probably never support 100% of all Windows
programs at full functionality. If you wanted to run a specific
Windows-only program that happened to be supported by Wine in an LXC
or LXD container, you could do that by installing a Linux distribution
in a container, and running the program under wine in the container.
That would probably work, but your results would depend on how well
Wine supports the program you need to run.

If you really want to just run *Windows itself* rather than emulating
certain programs, the only way to do that on top of Linux is to use a
proper hypervisor, like KVM, VMware, or VirtualBox. They will emulate
physical *hardware* and run the real Windows kernel on top of your
base operating system -- with a performance cost, of course.



On Sat, May 26, 2018 at 6:51 PM, Thouraya TH <thouraya87 at gmail.com> wrote:
> Hi all,
> containers share the same operating system as the host.
> so i cnanot do  lxc-create -n c1 -o windows on ubuntu system ? that's it ?
> i can create windows container only on windows system using docker for
> example ?
> Thank you so much for answer.
> Kind regards.
>
>
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users


More information about the lxc-users mailing list