diff --git a/createdisk.sh b/createdisk.sh index 054e516f..be0710df 100755 --- a/createdisk.sh +++ b/createdisk.sh @@ -97,12 +97,38 @@ 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/gvforwarder + podman rm gvisor-tap-vsock + tee /etc/systemd/system/gv-user-network@.service <