diff options
-rwxr-xr-x | kvmx | 5 | ||||
-rw-r--r-- | kvmxfile | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -450,6 +450,11 @@ function kvmx_up { $DIRNAME/$BASENAME xephyr $VM fi + if [ ! -z "$startup_command" ] && [ "$ssh_support" == "y" ]; then + echo "Running $startup_command..." + echo "nohup $startup_command" | kvmx ssh $VM &> /dev/null & + fi + kvmx_status } @@ -36,6 +36,10 @@ shared_folder_mountpoint="/home/$user/code/$VM" #provision_command="/usr/local/share/kvmx/provision/development" #provision_command="/usr/local/share/kvmx/provision/desktop-basic" +# Startup command +#startup_command="/path/to/custom/command" +#startup_command="hydractl upgrade" + # Graphics # See https://wiki.archlinux.org/index.php/QEMU#Graphics #graphics="-vga std -nographic -vnc :$GUEST_DISPLAY" |