From 0491c4dbdbccef6eda3a5509fa9ac8a0e80494e5 Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 22 Mar 2022 06:27:04 -0400 Subject: [PATCH] Update haos-vm.sh --- vm/haos-vm.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/vm/haos-vm.sh b/vm/haos-vm.sh index f5b821e6..5d18e431 100644 --- a/vm/haos-vm.sh +++ b/vm/haos-vm.sh @@ -188,8 +188,11 @@ echo -e "${CM} ${CL} \r" sed -i 's/$/ console=ttyS0/' ${TEMP_MOUNT}/cmdline.txt qm set $VMID -serial0 socket >/dev/null ) -#echo -en "${GN} Starting Home Assistant OS VM... " -#qm start $VMID -#echo -e "${CM} ${CL} \n" +echo -en "${GN} Starting Home Assistant OS VM... " +qm start $VMID +sleep 15 +echo -e "${CM} ${CL} \n" +CURRENT_IP=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -f1 -d'/') +echo -e "${CURRENT_IP}" -echo -e "${GN} Completed Successfully!${CL} (${VM_NAME}) VM ID is ${BL}${VMID}${CL} \n" +echo -e "${GN} Completed Successfully!${CL} (${VM_NAME}) VM ID is ${BL}${VMID}${CL} IP is ${BL}${CURRENT_IP}${CL}\n"