Enable tap mode network and vhost

This commit is contained in:
Jianfeng Jiang
2024-10-22 02:02:19 +00:00
committed by Tate, Hongliang Tian
parent 1b23182dcc
commit 7c3e3738a1
6 changed files with 56 additions and 5 deletions

View File

@ -15,4 +15,4 @@ else
IMAGE_NAME="asterinas/asterinas:${VERSION}"
fi
docker run -it --privileged --network=host --device=/dev/kvm -v ${ASTER_SRC_DIR}:/root/asterinas ${IMAGE_NAME}
docker run -it --privileged --network=host --device=/dev/kvm --device=/dev/vhost-net -v ${ASTER_SRC_DIR}:/root/asterinas ${IMAGE_NAME}