Skip to content

Commit 390b248

Browse files
authored
feat: update output messages for ssh and storage pool (#91)
1 parent d4f9527 commit 390b248

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

kvm-install-vm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ _EOF_
521521
--name=${VMNAME} \
522522
--type=dir \
523523
--target=${VMDIR}/${VMNAME} \
524-
|| die "Could not create storage pool."
524+
|| die "Could not create storage pool. VM may already exist. Try removing first."
525525

526526
# Add custom MAC Address if specified
527527
NETWORK_PARAMS="$(join ',' \
@@ -622,7 +622,10 @@ _EOF_
622622
fi
623623

624624
printf "\n"
625-
output "SSH to ${VMNAME}: 'ssh ${LOGIN_USER}@${IP}' or 'ssh ${LOGIN_USER}@${VMNAME}'"
625+
output "SSH to ${VMNAME}:"
626+
output " ssh ${IP}"
627+
output " ssh ${LOGIN_USER}@${IP}"
628+
output " ssh ${LOGIN_USER}@${VMNAME}"
626629
CONSOLE=$(virsh domdisplay ${VMNAME})
627630
# Workaround because VNC port number shown by virsh domdisplay is offset from 5900
628631
if [ "${GRAPHICS}" = 'vnc' ]

0 commit comments

Comments
 (0)