bottkars / vmxtoolkit

vmxtoolkit is the Powershell extension to VMware Workstation
Apache License 2.0
117 stars 32 forks source link

nogui option for start-vmx #1

Closed bjoernbessert closed 9 years ago

bjoernbessert commented 9 years ago

Hi,

when i start a VM with start-vmx, the VM is registered in VMware Workstation GUI and focussed.

If i try to remove the VM later with remove-vmx, the following error occurs:

PS S:\VMs> get-vmx -Path 'S:\VMs' .\id8348384-mssql01 | remove-vmx
WARNUNG: Error: This VM is in use. Please close VMX id8348384-mssql01 in Vmware UI and try again
WARNUNG: id8348384-mssql01
WARNUNG: Error: This VM is in use.

If "vmrun start ..." is called with "nogui" parameter, the VM isn't registered in the GUI and "remove-vmx" succeeds.

I can't fully close VMware Workstation GUI (because other VM's are running) and besides that, we want to fully automate VM startup and removal.

Therefore, i would like to propose an option to choose the nogui parameter.

Or is there another option in "remove-vmx" to deregister/remove the VM?

bottkars commented 9 years ago

will add this by tomorow !

bottkars commented 9 years ago

added to harmony