From 7eff160afa849bcf321df5b58c20725a12f76f8e Mon Sep 17 00:00:00 2001 From: Gunjan Vyas Date: Tue, 21 Jan 2025 12:31:44 +0530 Subject: [PATCH] [WIP] [Spike] gvforwarder as a systemd service --- createdisk.sh | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/createdisk.sh b/createdisk.sh index 054e516f..8d437c57 100755 --- a/createdisk.sh +++ b/createdisk.sh @@ -97,10 +97,34 @@ if podman manifest inspect quay.io/crcont/routes-controller:${OPENSHIFT_VERSION} image_tag=${OPENSHIFT_VERSION} fi +# create the tap device interface with specified mac address +# this mac address is used to allocate a specific IP to the VM +# when tap device is in use. +${SSH} core@${VM_IP} 'sudo bash -x -s' < /etc/systemd/system/gvisor-tap-vsock.service + podman create --name=gvisor-tap-vsock quay.io/crcont/gvisor-tap-vsock:latest + podman cp gvisor-tap-vsock:/vm /usr/local/bin/ + podman rm gvisor-tap-vsock + tee /etc/systemd/system/gvisor-tap-vsock.service <