VMWare Workstation Auto-run Guest on reboot

VMWare workstation 15.1 and above does NOT support auto start virtual machine after reboot. This future has been disabled for some unknown reason!

To solve this problem (under Linux host) we can define our own “systemd service” and execute in in every reboot.( In Windows , you need to add a service to Task Scheduler)

Below is the service file content for this reason;

(This file needs to be created in /etc/systemd/system/vmware-custom-autorun.service)

[Unit]

Description=VMware-Guest Auto Start - by SaEeD
Requires=network.target
After=network.target vmware.service

[Service]

Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/vmrun start '/Path/To/VM-Machine.vmx' nogui
ExecStartPost=/bin/sleep 5
ExecReload=/usr/bin/vmrun reset '/Path/To/VM-Machine.vmx' nogui soft
ExecStop=/usr/bin/vmrun stop '/Path/To/VM-Machine.vmx' nogui soft
TimeoutSec=30

[Install]

WantedBy=multi-user.target

 

Hope this helps and good luck 🙂

— Saeed

 



BTC: bc1qrxmjgsc5a2fwn7zplpcu7665uq39tp2ss7luwk

Comments are closed.