Skip to content

Commit 0f412b8

Browse files
authored
Merge pull request #1552 from AkihiroSuda/dev
templates: update Nomad to v0.9.4; link net-user-v2 from README
2 parents 3556b6f + bebbd09 commit 0f412b8

File tree

4 files changed

+15
-12
lines changed

4 files changed

+15
-12
lines changed

docs/network.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ The "vzNAT" network does not need the `socket_vmnet` binary and the `sudoers` fi
196196

197197
## Lima user-v2 network
198198

199+
| :zap: Requirement | Lima >= 0.16.0 |
200+
|-------------------|----------------|
201+
199202
user-v2 network provides a user-mode networking similar to the [default user-mode network](#user-mode-network--1921685024-) and also provides support for `vm -> vm` communication.
200203

201204
> **Warning**

examples/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ Optional feature enablers:
4545
- [`vmnet.yaml`](./vmnet.yaml): ⭐enable [`vmnet.framework`](../docs/network.md)
4646
- [`experimental/9p.yaml`](experimental/9p.yaml): [experimental] use 9p mount type
4747
- [`experimental/riscv64.yaml`](experimental/riscv64.yaml): [experimental] RISC-V
48+
- [`experimental/net-user-v2.yaml`](experimental/net-user-v2.yaml): [experimental] user-v2 network
49+
to enable VM-to-VM communication without root privilege
4850

4951
Lost+found:
5052
- ~`centos.yaml`~: Removed in Lima v0.8.0, as CentOS 8 reached [EOL](https://www.centos.org/centos-linux-eol/).

examples/experimental/net-user-v2.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Example to run lima instance with experimental user-v2 network enabled
2+
# This example requires Lima v0.16.0 or later.
23
images:
34
- location: "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img"
45
arch: "x86_64"

examples/nomad.yaml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,19 @@
88
# https://github.com/Roblox/nomad-driver-containerd/tree/master/example
99

1010
# This example requires Lima v0.7.0 or later.
11-
12-
# Image is set to focal (20.04 LTS) for long-term stability
13-
# TODO: Upgrade to 22.04 LTS when nomad-driver-containerd supports cgroup v2: https://github.com/Roblox/nomad-driver-containerd/pull/133
1411
images:
1512
# Try to use release-yyyyMMdd image if available. Note that release-yyyyMMdd will be removed after several months.
16-
- location: "https://cloud-images.ubuntu.com/releases/20.04/release-20220302/ubuntu-20.04-server-cloudimg-amd64.img"
13+
- location: "https://cloud-images.ubuntu.com/releases/22.04/release-20230518/ubuntu-22.04-server-cloudimg-amd64.img"
1714
arch: "x86_64"
18-
digest: "sha256:243157ea0390890d6e60ce5e08e0249b16e23b6b313b63aed50f39f92b020afe"
19-
- location: "https://cloud-images.ubuntu.com/releases/20.04/release-20220302/ubuntu-20.04-server-cloudimg-arm64.img"
15+
digest: "sha256:afb820a9260217fd4c5c5aacfbca74aa7cd2418e830dc64ca2e0642b94aab161"
16+
- location: "https://cloud-images.ubuntu.com/releases/22.04/release-20230518/ubuntu-22.04-server-cloudimg-arm64.img"
2017
arch: "aarch64"
21-
digest: "sha256:fb2b4efdbf0011bd2a9fd49e9d31efdd252966c889f07b5d246351ec5734a329"
18+
digest: "sha256:b47f8be40b5f91c37874817c3324a72cea1982a5fdad031d9b648c9623c3b4e2"
2219
# Fallback to the latest release image.
2320
# Hint: run `limactl prune` to invalidate the cache
24-
- location: "https://cloud-images.ubuntu.com/releases/20.04/release/ubuntu-20.04-server-cloudimg-amd64.img"
21+
- location: "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img"
2522
arch: "x86_64"
26-
- location: "https://cloud-images.ubuntu.com/releases/20.04/release/ubuntu-20.04-server-cloudimg-arm64.img"
23+
- location: "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-arm64.img"
2724
arch: "aarch64"
2825

2926
# Mounts are disabled in this example, but can be enabled optionally.
@@ -43,12 +40,12 @@ provision:
4340
apt-get install -y nomad consul golang-cfssl
4441
sed -e '/^client/a \ \ cni_path = "/usr/local/libexec/cni"\n\ \ cni_config_dir = "/etc/cni/net.d"' -i /etc/nomad.d/nomad.hcl
4542
# install containerd-driver
46-
DRIVER_VERSION=0.9.3
43+
DRIVER_VERSION=0.9.4
4744
case $(uname -m) in
48-
amd64|x86_64)
45+
x86_64)
4946
curl -sSL -o containerd-driver https://github.com/Roblox/nomad-driver-containerd/releases/download/v${DRIVER_VERSION}/containerd-driver
5047
;;
51-
arm64|aarch64)
48+
aarch64)
5249
curl -sSL -o containerd-driver https://github.com/Roblox/nomad-driver-containerd/releases/download/v${DRIVER_VERSION}/containerd-driver-arm64
5350
;;
5451
esac

0 commit comments

Comments
 (0)