You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also the Virtual Host Credentials, does it use ssh to authenticate for powering on and off the machine, if that's the case, I believe this extension won't work on windows, unless you set up an openssh-server on windows
yeah I think you can get to work on windows, after you install openssh-server on windows
The power_on file
/usr/bin/maas login maas http://localhost/MAAS `cat ~/VBox_extensions/maas-api-key`# Retrieve the id from the MAAS Power address
vm_to_start=${1//:}# Loop through all the zones to send the request to all the VBox host machinesforzone_descriptionin`maas maas zones read| grep '"description": "'| cut -d: -f 2`do# Remove the "s
vbox_host_credentials=${zone_description//\"}# Check if there is the @ sign, typical of ssh user@addressif [[ ${vbox_host_credentials}==*"@"* ]]
then# Create the command string
command_to_execute="ssh ${vbox_host_credentials} '~/VBox_host_extensions/startvm ${vm_to_start//-}'"# Execute the command stringeval"${command_to_execute}"# Log the commandecho -e "VirtualBox-Power ON:"`date`"\n" \
"Credentials: ${vbox_host_credentials}\n" \
"ID: ${vm_to_start}\n">> /tmp/VBox.log
fidone
As you can see, it is actually using ssh to push the remote execution command.
I am running virtualbox on windows desktop.
would this extension work?
The text was updated successfully, but these errors were encountered: