From 8c85d3d987c924128a77d84a3b16ee54396fc2fc Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 20 Apr 2023 05:41:23 +0200 Subject: [PATCH] Create vhost --- run/network.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/run/network.sh b/run/network.sh index d023008..28a6f06 100644 --- a/run/network.sh +++ b/run/network.sh @@ -17,6 +17,15 @@ set -eu configureDHCP() { + # Create /dev/vhost-net + if [ ! -c /dev/vhost-net ]; then + [ ! -d /dev/vhost-net ] && mkdir -m 755 /dev/vhost-net + mknod /dev/vhost-net c 10 238 + chmod 666 /dev/vhost-net + fi + + [ ! -c /dev/vhost-net ] && echo "Error: VHOST interface not available..." && exit 85 + VM_NET_TAP="_VmMacvtap" echo "Info: Retrieving IP via DHCP using MAC ${VM_NET_MAC}..."