Test set static bridge for SSH connection

This commit is contained in:
nemo 2019-09-09 11:07:35 +02:00
parent e7fba14ba5
commit 9e4c3b2644

View file

@ -348,6 +348,8 @@ echo "INFO : Get the FE80 IPv6 of the new VM..."
VM_MAC=$(grep net0 /etc/pve/qemu-server/${VM_ID}.conf | cut -d '=' -f 2 | cut -d ',' -f 1)
VM_FE80=$(ipv6calc --action prefixmac2ipv6 --in prefix+mac --out ipv6addr fe80:: $VM_MAC)
VM_BRIDGE_DEV="vmbr1"
# Define SSH host
SSH_HOST="root@${VM_FE80}%${VM_BRIDGE_DEV}"