![]()
vmx file of the virtual machine, and start the virtual machine. vmx file (if exists) of the virtual machine, set msg.autoAnswer property to TRUE in the. ![]() If the action value is start and vm_autostart (the autostart property in config.json) is true, remove the msg.autoAnswer property from the. Vm_autostart – Uses jq to get the autostart property of the virtual machine from the config.json file. Vmx_path – Uses jq to get the vmxpath property of the virtual machine from the config.json file. Vm_name – Uses jq to get the name property of the virtual machine from the config.json file. In the loop, lines 29-31 define some variables. Lines 27-42 are used to traverse through all the available virtual machines in the config.json file, enable/disable msg.autoAnswer property for each virtual machine, and start/suspend the virtual machines. The autostart script uses it to determine whether to start VMs or suspend VMs. Num_vms – Uses jq to calculate the number of VMs available in the config.json file.Īction – The first command-line argument is the action to perform. Some variables are defined in lines 23-25.Ĭonfig_file – The absolute path to the config.json file. It also prints the necessary log messages to the screen. The suspend_vm function is used to suspend a virtual machine using the. ![]() The start_vm function is used to start a virtual machine using the. If this is not set, you won’t be able to start virtual machines in the background using the autostart script if it requires any user interaction to start. COLLABORA CODE SETUP AUTOSTART SERVICE ON BOOT PROWhen msg.autoAnswer is set to TRUE, VMware Workstation Pro 16 virtual machines won’t wait for any user inputs. The msg_auto_answer_disable and msg_auto_answer_enable functions are used to remove and set the msg.autoAnswer option in the. Num_vms=$(jq '.vms | length' X followed by Y and to save the autostart Bash script. usr/bin/vmrun -T ws suspend "$vmx_path" hard 2>/dev/null
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |