-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pre-install-payload: Handle the nydus-snapshotter
nydus-snapshotter / nydus will be used to get rid of the containerd fork we have, allowing us to do both the image pulling on the host side and inside the guest. NOTE: This PR should NOT be merged as it's, as it breaks s390x payload build. Signed-off-by: ChengyuZhu6 <chengyu.zhu@intel.com> Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
- Loading branch information
ChengyuZhu6
committed
Sep 20, 2023
1 parent
9080fe4
commit b40adfd
Showing
8 changed files
with
236 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
COCO_CONTAINERD_VERSION = 1.6.8.2 | ||
OFFICIAL_CONTAINERD_VERSION = 1.7.0 | ||
VFIO_GPU_CONTAINERD_VERSION = 1.7.0.0 | ||
NYDUS_SNAPSHOTTER_VERSION = v0.12.0 | ||
NYDUS_VERSION= v2.2.3 | ||
|
||
BASH = bash | ||
|
||
reqs-image: | ||
coco_containerd_version=$(COCO_CONTAINERD_VERSION) \ | ||
official_containerd_version=$(OFFICIAL_CONTAINERD_VERSION) \ | ||
vfio_gpu_containerd_version=$(VFIO_GPU_CONTAINERD_VERSION) \ | ||
nydus_snapshotter_version=${NYDUS_SNAPSHOTTER_VERSION} \ | ||
nydus_version=${NYDUS_VERSION} \ | ||
$(BASH) -x payload.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...l/pre-install-payload/remote-snapshotter/nydus-snapshotter/config-coco-guest-pulling.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version = 1 | ||
|
||
# Snapshotter's own home directory where it stores and creates necessary resources | ||
root = "/var/lib/containerd-nydus" | ||
|
||
# The snapshotter's GRPC server socket, containerd will connect to plugin on this socket | ||
address = "/run/containerd-nydus/containerd-nydus-grpc.sock" | ||
|
||
[daemon] | ||
# Enable proxy mode | ||
fs_driver = "proxy" | ||
|
||
[snapshot] | ||
# Insert Kata volume information to `Mount.Options` | ||
enable_kata_volume = true |
40 changes: 40 additions & 0 deletions
40
...ll/pre-install-payload/remote-snapshotter/nydus-snapshotter/config-coco-host-sharing.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
version = 1 | ||
# Snapshotter's own home directory where it stores and creates necessary resources | ||
root = "/var/lib/containerd-nydus" | ||
# The snapshotter's GRPC server socket, containerd will connect to plugin on this socket | ||
address = "/run/containerd-nydus/containerd-nydus-grpc.sock" | ||
# No nydusd daemon needed | ||
daemon_mode = "none" | ||
|
||
[daemon] | ||
# Use `blockdev` for tarfs | ||
fs_driver = "blockdev" | ||
# Path to nydus-image binary | ||
nydusimage_path = "/opt/confidential-containers/bin/nydus-image" | ||
|
||
[remote] | ||
skip_ssl_verify = true | ||
|
||
[snapshot] | ||
# Insert Kata volume information to `Mount.Options` | ||
enable_kata_volume = true | ||
|
||
[experimental.tarfs] | ||
# Whether to enable nydus tarfs mode. Tarfs is supported by: | ||
# - The EROFS filesystem driver since Linux 6.4 | ||
# - Nydus Image Service release v2.3 | ||
enable_tarfs = true | ||
|
||
# Mount rafs on host by loopdev and EROFS | ||
mount_tarfs_on_host = false | ||
|
||
# Mode to export tarfs images: | ||
# - "none" or "": do not export tarfs | ||
# - "layer_verity_only": only generate disk verity information for a layer blob | ||
# - "image_verity_only": only generate disk verity information for all blobs of an image | ||
# - "layer_block": generate a raw block disk image with tarfs for a layer | ||
# - "image_block": generate a raw block disk image with tarfs for an image | ||
# - "layer_block_with_verity": generate a raw block disk image with tarfs for a layer with dm-verity info | ||
# - "image_block_with_verity": generate a raw block disk image with tarfs for an image with dm-verity info | ||
export_mode = "image_block_with_verity" |
Oops, something went wrong.