Start a VM at PC startup

Solved
Anonymous user -  
 Hanen92 -
Hello,

I have a VM under VMware Workstation 9 and I have been trying for a while to find a script to start it at the boot of my PC but without success.

I followed https://www.developpez.net/forums/d1045505/systemes/virtualisation/vmware/faire-demarrer-automatiquement-vm-demarrage-windows/
"C:\Program Files (x86)\VMware\VMware Workstation\vmware.exe" "E:\FreeNAS\FreeNAS.vmx" allows me to launch VMware but the VM does not start...

http://syskb.com/scripter-larret-ou-le-demarrage-dune-machine-virtuelle-sur-vmware-server/

Note that I do not have vmware-cmd...

But I am stuck now... If you have any ideas, I take them ;-)

Configuration: Windows 7 64bits SP1 Firefox // MacBook Pro OS 10.7 Firefox

--
Google is your friend

1 answer

Anonymous user
 
I created a .bat file in C:\Program Files (x86)\VMware\VMware VIX

with the code:
vmrun -T ws start "E:\FreeNAS\FreeNAS.vmx"

and that's it, problem solved for me

--
Google is your friend
4
PlayFox
 
2019, Still useful thank you!
0
epoke347
 
Hello,

If you want the VM to start at Windows startup without needing to log in, simply create a "String Value" registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

Key "String Value"

"VWmware"="\"C:\\Program Files (x86)\\VMware\\VMware Workstation\\vmrun.exe\" -T ws start \"D:\\DSM (2)\\DSM (2).vmx\" nogui"

Replace "D:\\DSM (2)\\DSM (2).vmx" with the location of your VMX file.
-1
Hanen92 > epoke347
 
Hello,
I tried your method but when starting, the Windows session starts normally and does not take into account the modification on the registry key.
:(
0