News for hackers. Stuff that matters.
Re:Bottlerocket, an open source Linux distribution built to ... by NathanKP on Tuesday September 01, 2020 @03:14PM (#24345726)
Hi I'm a developer advocate in the container engineering org at AWS. I think there are a few misunderstandings here that I may be able to explain better.

First Bottlerocket is not Amazon Linux 2, it is its own minimal operating system, with most components built from the ground up in Rust. This is totally different than the Amazon Linux 2 you may be familiar with (and most other operating systems for that matter). Bottlerocket is optimized for running containers with high security isolation. The host OS is extremely minimal, it does not come with bash, an interpreter, ssh, or anything beyond the system basics needed to run containers. In fact it uses an immutable root filesystem. You aren't intended to run or install things directly on the host at all.

Everything that is installed and runs on Bottlerocket runs as containers, which are kept isolated from each other and the host with best practice security features such as SELinux. For example you can connect to a container on the host via AWS Systems Manager, or you can optionally enable a container that lets you connect to it via SSH. Once again the thing you are connecting to is the container on the host though, not directly to the host.

For this initial release of Bottlerocket we are focusing on providing image variants that are prepackaged with the requirements to serve as underlying container hosts for an ECS or EKS cluster. However we also intend Bottlerocket to eventually be something that anyone can use, anywhere, even outside of AWS, if they wanted to benefit from the secure by default, container first design of Bottlerocket.

You can read more about the security features of Bottlerocket here: https://github.com/bottlerocket-os/bottlerocket/blob/develop...

And you can find a bit more of the charter / goals for the project here: https://github.com/bottlerocket-os/bottlerocket/blob/develop...

Re:Bottlerocket, an open source Linux distribution built to ... by cle on Tuesday September 01, 2020 @03:48PM (#24346184)
I wish the blog post was just this. So much clearer. Thank you.
Re:Bottlerocket, an open source Linux distribution built to ... by simonebrunozzi on Tuesday September 01, 2020 @04:51PM (#24346921)
Amazon's PR would have not allowed that.
Re:Bottlerocket, an open source Linux distribution built to ... by usrusr on Wednesday September 02, 2020 @03:09AM (#24350785)
But isn't a "developer advocate" trawling social media for opportunities to dump clarifications also a form of PR? It seems as if data tech has co-evolved the "good cop/bad cop" pattern. I'm not complaining though, so much better than "bad cop" alone.
Re:Bottlerocket, an open source Linux distribution built to ... by milesward on Tuesday September 01, 2020 @08:31PM (#24348760)
True, hugs :)
Re:Bottlerocket, an open source Linux distribution built to ... by mchusma on Tuesday September 01, 2020 @05:15PM (#24347157)
I tried to see any performance characteristics of running bottlerocket, just to understand what the expectations are there. I assume since it was not mentioned it is either similar to Amazon Linux 2 or worse (but with security advantages). Can you request a follow on post on the aws blog that describes the performance impact of Bottlerocket? If performance is better, would be nice to know that as well of course.
Re:Bottlerocket, an open source Linux distribution built to ... by robomaker2 on Tuesday September 01, 2020 @08:14PM (#24348641)
AWS-Linux is so slow because of old packages that the new OS is guaranteed to be faster. It has a recent kernel & containerd. Podman would have made it even faster.
Re:Bottlerocket, an open source Linux distribution built to ... by WrtCdEvrydy on Tuesday September 01, 2020 @04:09PM (#24346416)
Question: Will this be an AMI that can be deployed as an ECS cluster recipient on EC2? End Question.
Re:Bottlerocket, an open source Linux distribution built to ... by NathanKP on Tuesday September 01, 2020 @04:13PM (#24346471)
Yes! It already is in fact. The ECS documentation provides the list of Bottlerocket AMI's you can launch into your ECS clusters: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/...

I'd also recommend reading the ECS quickstart in the Bottlerocket repo: https://github.com/bottlerocket-os/bottlerocket/blob/develop...

Re:Bottlerocket, an open source Linux distribution built to ... by WrtCdEvrydy on Tuesday September 01, 2020 @04:18PM (#24346527)
Well... i'll be modifying some launch configurations then.
Re:Bottlerocket, an open source Linux distribution built to ... by boojing on Wednesday September 02, 2020 @02:16AM (#24350510)
Does Fargate use Bottlerocket?
Re:Bottlerocket, an open source Linux distribution built to ... by robomaker2 on Tuesday September 01, 2020 @08:14PM (#24348644)
looks like this a beta
Re:Bottlerocket, an open source Linux distribution built to ... by e12e on Tuesday September 01, 2020 @03:44PM (#24346126)
Would it be safe to say that bottlerocket is a container host for running containers under a hypervisor? Or is it intended to do full hw interfacing and run bare metal?
Re:Bottlerocket, an open source Linux distribution built to ... by NathanKP on Tuesday September 01, 2020 @03:57PM (#24346300)
Bottlerocket runs containers using containerd, so containers are visible as processes on the host, from its perspective, not currently isolated from each other via a hypervisor. Bottlerocket limits containers ability to interact with the host or each other via SELinux, among other things.

We do have firecracker-containerd (https://github.com/firecracker-microvm/firecracker-container...) which is designed to allow the containerd runtime to launch containers as microVMs via Firecracker, with that additional layer of isolation via the KVM hypervisor. This stack is not currently fully compatible with K8s or ECS though, so it is not implemented using that approach yet. Rather Bottlerocket is built as a progressive improvement on the current state of container hosts, which is that many people are running all their containers on their hosts without any strong security hardening at all.

I think from the similar naming scheme of Firecracker and Bottlerocket you can already see the pieces of the puzzle that are in progress and the future potential though.

Re:Bottlerocket, an open source Linux distribution built to ... by e12e on Tuesday September 01, 2020 @04:29PM (#24346668)
Thanks, I was more wondering what the relationship was between something like Debian GNU/linux and bottlerocket. From gp description it sounds like there's no "GNU userland", just the Linux kernel and some utility functions in rust - enough to launch containerd.

So if I have a heterogeneous collection of servers - I could install Debian, and run docker on Debian. It sounds like bottlerocket would more comfortably run on top of a hypervisor abstracting away the actual hw a bit? Eg on top of xen, kvm or VMware?

Obviously the Linux kernel can be made to run on a toaster, but maybe bottlerocket isn't ideal for that purpose?

Re:Bottlerocket, an open source Linux distribution built to ... by jhaynes on Tuesday September 01, 2020 @06:57PM (#24348099)
Answering your initial question and this one: Bottlerocket today only runs in EC2, but we've tried to make it flexible enough to run outside of a hypervisor on bare metal in the future (in fact, a few engineers on the team are really excited to get it running on their RaspberryPi's at home; toasters haven't been added to our roadmap yet ;) ).

Bottlerocket has a GNU userland like many other distros. It is just one that is stripped down of many things including removal of interpreters, shells, and package managers.

If you want to explore more deeply, you can enable the admin container and jump into a shell on the host[1] to look at the filesystem and see what Bottlerocket's userspace looks like up close and personal. You can also see a bit more of this debugging/exploration tooling explained in an AWS Partner Blog[2].

[1] https://github.com/bottlerocket-os/bottlerocket#admin-contai... [2] https://aws.amazon.com/blogs/apn/getting-started-with-bottle...

Re:Bottlerocket, an open source Linux distribution built to ... by azinman2 on Tuesday September 01, 2020 @03:48PM (#24346174)
I just installed Proxmox on a home server, and I’m using its CT containers (LXC) to run various services. Could I use this as a replacement for Proxmox?
Re:Bottlerocket, an open source Linux distribution built to ... by rubyn00bie on Tuesday September 01, 2020 @07:44PM (#24348438)
Nope. Proxmox is mostly just an administrative UI, containers are a Linux feature. You don't need Proxmox for anything, you can just run containers "natively" in Linux or VMs with KVM + QEMU. The linked above is mostly just a Linux distro geared towards a pretty specific set of use-cases.
Re:Bottlerocket, an open source Linux distribution built to ... by geoffeg on Tuesday September 01, 2020 @04:04PM (#24346368)
I read that this is more intended as the VM you run inside Proxmox, that you then run your (docker/k8) containers inside.
Re:Bottlerocket, an open source Linux distribution built to ... by srameshc on Tuesday September 01, 2020 @04:07PM (#24346396)
Isn't it somewhat similar in concept to the Container-Optimized OS that is being offered by GCP ?
Re:Bottlerocket, an open source Linux distribution built to ... by fsflover on Wednesday September 02, 2020 @03:20AM (#24350845)
> Bottlerocket is optimized for running containers with high security isolation. The host OS is extremely minimal, it does not come with bash, an interpreter, ssh, or anything beyond the system basics needed to run containers. In fact it uses an immutable root filesystem. You aren't intended to run or install things directly on the host at all.Bottlerocket is optimized for running containers with high security isolation. The host OS is extremely minimal, it does not come with bash, an interpreter, ssh, or anything beyond the system basics needed to run containers. In fact it uses an immutable root filesystem. You aren't intended to run or install things directly on the host at all.

Sounds exactly like Qubes OS [0], but the latter is probably much more secure (based on Xen and VT-d). So in comparison Bottlerocket seems like trading some of security for performance.

[0] https://qubes-os.org

Re:Bottlerocket, an open source Linux distribution built to ... by egil on Wednesday September 02, 2020 @04:44AM (#24351236)
Qubes is for end user desktop/laptop usage, not service hosting.
Re:Bottlerocket, an open source Linux distribution built to ... by fsflover on Wednesday September 02, 2020 @05:39AM (#24351505)
Re:Bottlerocket, an open source Linux distribution built to ... by cslarson on Wednesday September 02, 2020 @09:30AM (#24352995)
Could bottlerocket be the basis for desktop system where it would be easy to switch between isolated environments? It would be very handy to have a maximally secure environment, at least from software perspective, for certain operations.
Re:Bottlerocket, an open source Linux distribution built to ... by _underfl0w_ on Wednesday September 02, 2020 @10:35AM (#24353679)
You may want to look into Qubes. It's not specifically designed for running containers like this is, but it does provide a single OS with multiple isolated environments for different programs.
Re:Bottlerocket, an open source Linux distribution built to ... by __MatrixMan__ on Thursday September 03, 2020 @12:55PM (#24366035)
As _underfl0w_ said, you're pretty much describing Qubes. Using it can be eye opening--nothing works together unless you let it, which is a good way to get a feel for your attack surface / unknown dependencies.

Qubes uses VM's. Subgraph OS is another option. It tries to achieve the same thing with containers, but their latest release is pretty old--not sure how alive that project is.

Re:Bottlerocket, an open source Linux distribution built to ... by hakre on Wednesday September 02, 2020 @03:04AM (#24350757)
In the intended anyone, anywhere (specifically you wrote outside AWS) scenario you describe, is AWS offering professional support for Bottlerocket?
Re:Bottlerocket, an open source Linux distribution built to ... by fnord77 on Tuesday September 01, 2020 @11:40PM (#24349773)
Hi - Does bottlerocket use glibc or something else?
Re:Bottlerocket, an open source Linux distribution built to ... by sanxiyn on Wednesday September 02, 2020 @12:02AM (#24349870)
As you can see here https://github.com/bottlerocket-os/bottlerocket/tree/develop..., Bottlerocket uses glibc.
[dead]
Re:Bottlerocket, an open source Linux distribution built to ... by wmf on Tuesday September 01, 2020 @04:10PM (#24346435)
So did every other vendor. We have two CoreOSes, Flatcar, Container-Optimized OS from Google, Bottlerocket, k3OS, etc. Fortunately these aren't just different in name; there's a lot of experimentation going on around different ways to do updates, security, etc. I hope we'll eventually see some convergence after a few years.
Re:Bottlerocket, an open source Linux distribution built to ... by branzo on Wednesday September 02, 2020 @01:54AM (#24350384)
Two CoreOSes? The one being Fedora CoreOS and the other..?
Re:Bottlerocket, an open source Linux distribution built to ... by wmf on Wednesday September 02, 2020 @12:12PM (#24354615)
Fedora CoreOS and RHEL CoreOS.
Re:Bottlerocket, an open source Linux distribution built to ... by Bombthecat on Wednesday September 02, 2020 @03:28AM (#24350886)
Dead :)
Re:Bottlerocket, an open source Linux distribution built to ... by 013a on Tuesday September 01, 2020 @03:28PM (#24345933)
You mean, the CoreOS that was end-of-lifed four months ago?
Re:Bottlerocket, an open source Linux distribution built to ... by blixtra on Tuesday September 01, 2020 @03:47PM (#24346168)
CoreOS lives on as Flatcar Container Linux. https://twitter.com/kelseyhightower/status/12831024012520980... It's a fully-compatible, drop-in replacement.
Re:Bottlerocket, an open source Linux distribution built to ... by k__ on Tuesday September 01, 2020 @03:45PM (#24346152)
At least "Fedora CoreOS" still seems to be a thing.
Re:Bottlerocket, an open source Linux distribution built to ... by freedomben on Tuesday September 01, 2020 @04:19PM (#24346550)
And Red Hat Core OS (RHCOS) for Red Hat flavored shops.
Re:Bottlerocket, an open source Linux distribution built to ... by rosywoozlechan on Tuesday September 01, 2020 @06:06PM (#24347704)
Red Hat bought the company that created CoreOS so it's not surprising they have Red Hat/Fedora supported versions right?
Re:Bottlerocket, an open source Linux distribution built to ... by freedomben on Tuesday September 01, 2020 @09:30PM (#24349129)
Yep, very much agree. Container Linux was still very young and growing, but had some great promise. Incorporating the tech into RHEL and Fedora was a great idea IMHO. I think CoreOS was acquired for that specific purpose personally.
Re:Bottlerocket, an open source Linux distribution built to ... by branzo on Wednesday September 02, 2020 @01:57AM (#24350404)
Not sure. To me Flatcar brings the original CoreOS spirit..
Re:Bottlerocket, an open source Linux distribution built to ... by nullify88 on Wednesday September 02, 2020 @08:02AM (#24352373)
I'm not able to find concrete examples of the differences between Flatcar and Fedora CoreOS aside from FCOS using rpm-ostree.

What are the differences especially regarding their spirit and philosophy?

Re:Bottlerocket, an open source Linux distribution built to ... by merb on Wednesday September 02, 2020 @12:28PM (#24354815)
I don't think. Fedora CoreOS is more coupled to be an OpenShift node than a plain Container/K8s node. it's sad what they did. And I was a Fedora user for my whole life, but that made me reconsider.