Containerd
Liquid Metal uses containerd
to download and manage the images which are mounted
into MicroVMs as kernel and OS volumes.
Download the all-in-one provision script:
wget https://raw.githubusercontent.com/liquidmetal-dev/flintlock/main/hack/scripts/provision.sh
chmod +x provision.sh
Create thinpool
Flintlock relies on containerd's devicemapper snapshotter to provide filesystem devices for Firecracker microvms. This is how the images are stored. In a production we would use a dedicated disk, but here we will use a loopback device.
Run the script to create the thinpool:
sudo ./provision.sh devpool
Output
Verify that the device has been created with sudo dmsetup ls
:
flintlock-dev-thinpool (253:0)
Configure and start containerd
This section will start containerd
as a service. If you run docker
locally,
you may already have a containerd
service running. This new service will run
parallel to that service and should not affect it.
If you have any doubts or encounter problems, you can disable the original service.
Run the script to install containerd
in dev mode:
sudo ./provision.sh containerd --dev
This command will:
- Install the latest version of
containerd
- Create various state dirs
- Save a development config file under
/etc/containerd/config-dev.toml
- Start
containerd
as asystemd
service
Output
Verify that the service started with systemctl status containerd-dev.service
.
Output
Now we can move on to installing flintlock.