diff --git a/createdisk.sh b/createdisk.sh index a90a5eb5..4ae65ae7 100755 --- a/createdisk.sh +++ b/createdisk.sh @@ -16,7 +16,7 @@ INSTALL_DIR=${1:-crc-tmp-install-data} OPENSHIFT_VERSION=$(${JQ} -r .clusterInfo.openshiftVersion $INSTALL_DIR/crc-bundle-info.json) BASE_DOMAIN=$(${JQ} -r .clusterInfo.baseDomain $INSTALL_DIR/crc-bundle-info.json) BUNDLE_TYPE=$(${JQ} -r .type $INSTALL_DIR/crc-bundle-info.json) -ADDITIONAL_PACKAGES="cloud-init" +ADDITIONAL_PACKAGES="cloud-init gvisor-tap-vsock-gvforwarder" case ${BUNDLE_TYPE} in microshift) @@ -94,23 +94,35 @@ 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/containers/systemd/gvisor-tap-vsock.container <