Re:Docker and Canonical Partner on Commercially-Supported Do...
by markshuttle on Wednesday November 30, 2016 @11:13AM
(#13071885)
The VM experience ("guests") without the VM overhead. A virtual machine like Xen or KVM or ESX lets you run a guest kernel of a different OS, like WIndows. LXD avoids the overhead of hardware virtualisation and the guest OS, which means it only supports Linux guests, but they run at native speeds.
[ Parent
| on HN ]
Re:Docker and Canonical Partner on Commercially-Supported Do...
by walterbell on Wednesday November 30, 2016 @11:25AM
(#13071999)
> without the VM overhead
or the VM security
Re:Docker and Canonical Partner on Commercially-Supported Do...
by tyingq on Wednesday November 30, 2016 @11:31AM
(#13072063)
LXD does at least (unlike docker) default to unprivileged containers
Re:Docker and Canonical Partner on Commercially-Supported Do...
by bonzini on Wednesday November 30, 2016 @12:02PM
(#13072393)
Any local kernel vulnerability will let you attack other containers on the same machine. This is a much bigger attack surface than Xen or KVM. It's nice in that it gives the same experience as "traditional" hypervisors (at least the basic features), but it's only applicable if you trust that the application inside the container will not be compromised.
Re:Docker and Canonical Partner on Commercially-Supported Do...
by dustinkirkland on Wednesday November 30, 2016 @12:57PM
(#13072940)
On the flip side, when there is a kernel vulnerability, there's only 1 kernel to update! If you're running the Canonical Livepatch Service, for instance, critical security vulnerabilities are patch in real time, without reboot, and all containers running immediately benefit from the patch. Conversely, if you're running 50 Linux Xen or KVM machines, you have 51 kernels to update. So yeah, do think about what "attack surface" actually means, when comparing LXD and Full Virtualization.
Re:Docker and Canonical Partner on Commercially-Supported Do...
by bonzini on Wednesday November 30, 2016 @02:52PM
(#13074072)
If you manage so many hosts you had better use Ansible, or Satellite or whatever so that updating 1 or 50 or 500 hosts is the same effort.
Re:Docker and Canonical Partner on Commercially-Supported Do...
by marcoceppi on Wednesday November 30, 2016 @12:29PM
(#13072681)
On the same vein, there are plenty of Xen machines that are vulnerable despite the host OS being updated (which, honestly, I don't thing happens as quickly as it should considering it requires a restart for new kernel params). With things like live-patching, updating the kernel once, while running, makes sure all guests are also updated as well.
It's a trade off, but one that seems to trend towards more secure despite potentially a few quirks.
Re:Docker and Canonical Partner on Commercially-Supported Do...
by tyingq on Wednesday November 30, 2016 @12:29PM
(#13072680)
LXD supports using different id maps per container, which mitigates some of that.
I get that containers will always have a larger attack surface than Xen/KVM. Just thought it was worth mentioning that some container approaches are thinking about security more than others.