docs: update vmware.sh

Add `"` to handle vmware network interfaces with non-characters name

Signed-off-by: Fredrik Lundhag <f@mekk.com>
Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
This commit is contained in:
Fredrik Lundhag 2024-07-25 16:11:55 +02:00 committed by Andrey Smirnov
parent 117628aa60
commit 341b55cd37
No known key found for this signature in database
GPG Key ID: FE042E3D4085A811
2 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ create () {
echo "GOVC_NETWORK is unset, assuming default VM Network";
else
echo "GOVC_NETWORK set to ${GOVC_NETWORK}";
govc vm.network.change -vm ${CLUSTER_NAME}-control-plane-${i} -net ${GOVC_NETWORK} ethernet-0
govc vm.network.change -vm ${CLUSTER_NAME}-control-plane-${i} -net "${GOVC_NETWORK}" ethernet-0
fi
govc vm.power -on ${CLUSTER_NAME}-control-plane-${i}
@ -87,7 +87,7 @@ create () {
echo "GOVC_NETWORK is unset, assuming default VM Network";
else
echo "GOVC_NETWORK set to ${GOVC_NETWORK}";
govc vm.network.change -vm ${CLUSTER_NAME}-worker-${i} -net ${GOVC_NETWORK} ethernet-0
govc vm.network.change -vm ${CLUSTER_NAME}-worker-${i} -net "${GOVC_NETWORK}" ethernet-0
fi

View File

@ -60,7 +60,7 @@ create () {
echo "GOVC_NETWORK is unset, assuming default VM Network";
else
echo "GOVC_NETWORK set to ${GOVC_NETWORK}";
govc vm.network.change -vm ${CLUSTER_NAME}-control-plane-${i} -net ${GOVC_NETWORK} ethernet-0
govc vm.network.change -vm ${CLUSTER_NAME}-control-plane-${i} -net "${GOVC_NETWORK}" ethernet-0
fi
govc vm.power -on ${CLUSTER_NAME}-control-plane-${i}
@ -87,7 +87,7 @@ create () {
echo "GOVC_NETWORK is unset, assuming default VM Network";
else
echo "GOVC_NETWORK set to ${GOVC_NETWORK}";
govc vm.network.change -vm ${CLUSTER_NAME}-worker-${i} -net ${GOVC_NETWORK} ethernet-0
govc vm.network.change -vm ${CLUSTER_NAME}-worker-${i} -net "${GOVC_NETWORK}" ethernet-0
fi