mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 21:40:01 +08:00
Create vhost
This commit is contained in:
parent
d80bc38c2d
commit
8c85d3d987
@ -17,6 +17,15 @@ set -eu
|
|||||||
|
|
||||||
configureDHCP() {
|
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"
|
VM_NET_TAP="_VmMacvtap"
|
||||||
echo "Info: Retrieving IP via DHCP using MAC ${VM_NET_MAC}..."
|
echo "Info: Retrieving IP via DHCP using MAC ${VM_NET_MAC}..."
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user