Skip to content

Commit 196e372

Browse files
committed
Document Google Cloud installation
1 parent 98070e6 commit 196e372

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,30 @@ Following installation, launch a basic test RunCVM Container/VM:
289289
docker run --runtime=runcvm --rm -it hello-world
290290
```
291291

292+
### Install on Google Cloud
293+
294+
Create an image that will allow instances to have VMX capability:
295+
296+
```console
297+
gcloud compute images create debian-12-vmx --source-image-project=debian-cloud --source-image-family=debian-12 --licenses="https://compute.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx"
298+
```
299+
300+
Now launch a VM, install Docker and RunCVM:
301+
302+
```console
303+
cat >/tmp/startup-script.sh <<EOF
304+
#!/bin/bash
305+
306+
apt update && apt -y install apt-utils kmod wget iproute2 systemd \
307+
ca-certificates curl gnupg udev dbus jq && \
308+
mkdir -p /etc/docker && echo '{"userland-proxy": false}' >/etc/docker/daemon.json && \
309+
curl -fsSL https://get.docker.com | bash && \
310+
curl -s -o - https://raw.githubusercontent.com/newsnowlabs/runcvm/main/runcvm-scripts/runcvm-install-runtime.sh | sudo REPO=newsnowlabs/runcvm:latest sh
311+
EOF
312+
313+
gcloud compute instances create runcvm-vmx-test --zone=us-central1-a --machine-type=n2-highmem-2 --network-interface=network-tier=PREMIUM,stack-type=IPV4_ONLY,subnet=default --metadata-from-file=startup-script=/tmp/startup-script.sh --no-restart-on-failure --maintenance-policy=TERMINATE --provisioning-model=SPOT --instance-termination-action=STOP --no-service-account --no-scopes --create-disk=auto-delete=yes,boot=yes,image=debian-12-vmx,mode=rw,size=50,type=pd-ssd --no-shielded-secure-boot --shielded-vtpm --shielded-integrity-monitoring --labels=goog-ec-src=vm_add-gcloud --reservation-affinity=any
314+
```
315+
292316
## Upgrading
293317

294318
To upgrade, follow this procedure:

0 commit comments

Comments
 (0)