{"id":489,"date":"2021-08-11T15:04:03","date_gmt":"2021-08-11T05:04:03","guid":{"rendered":"https:\/\/ghiassy.net\/?p=489"},"modified":"2021-08-11T15:06:54","modified_gmt":"2021-08-11T05:06:54","slug":"vmware-workstation-auto-run-guest-on-reboot","status":"publish","type":"post","link":"https:\/\/ghiassy.net\/?p=489","title":{"rendered":"VMWare Workstation Auto-run Guest on reboot"},"content":{"rendered":"<p><span style=\"color: #00ff00;\">VMWare workstation 15.1 and above does NOT support auto start virtual machine after reboot. This future has been disabled for some unknown reason!<\/span><\/p>\n<p><span style=\"color: #00ff00;\">To solve this problem (under Linux host) we can define our own &#8220;<strong>systemd service<\/strong>&#8221; and execute in in every reboot.( In Windows , you need to add a service to Task Scheduler)<br \/>\n<\/span><\/p>\n<p><span style=\"color: #00ff00;\">Below is the service file content for this reason;<\/span><\/p>\n<p><span style=\"color: #00ff00;\"><!--more--><\/span><\/p>\n<p><span style=\"color: #00ff00;\">(This file needs to be created in <strong>\/etc\/systemd\/system\/<\/strong>vmware-custom-autorun.service)<\/span><\/p>\n<pre class=\"lang:sh decode:true \" title=\"vmware-guest-autorun.service\">[Unit]\r\n\r\nDescription=VMware-Guest Auto Start - by SaEeD\r\nRequires=network.target\r\nAfter=network.target vmware.service\r\n\r\n[Service]\r\n\r\nType=oneshot\r\nRemainAfterExit=yes\r\nExecStart=\/usr\/bin\/vmrun start '\/Path\/To\/VM-Machine.vmx' nogui\r\nExecStartPost=\/bin\/sleep 5\r\nExecReload=\/usr\/bin\/vmrun reset '\/Path\/To\/VM-Machine.vmx' nogui soft\r\nExecStop=\/usr\/bin\/vmrun stop '\/Path\/To\/VM-Machine.vmx' nogui soft\r\nTimeoutSec=30\r\n\r\n[Install]\r\n\r\nWantedBy=multi-user.target<\/pre>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #00ff00;\">Hope this helps and good luck \ud83d\ude42<\/span><\/p>\n<p><span style=\"color: #00ff00;\">&#8212; Saeed<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8220;systemd service&#8221; and execute in in every reboot.( In Windows , you need to add a service to Task Scheduler) [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,6],"tags":[],"class_list":["post-489","post","type-post","status-publish","format-standard","hentry","category-linux","category-servers"],"_links":{"self":[{"href":"https:\/\/ghiassy.net\/index.php?rest_route=\/wp\/v2\/posts\/489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ghiassy.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ghiassy.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ghiassy.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ghiassy.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=489"}],"version-history":[{"count":4,"href":"https:\/\/ghiassy.net\/index.php?rest_route=\/wp\/v2\/posts\/489\/revisions"}],"predecessor-version":[{"id":493,"href":"https:\/\/ghiassy.net\/index.php?rest_route=\/wp\/v2\/posts\/489\/revisions\/493"}],"wp:attachment":[{"href":"https:\/\/ghiassy.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ghiassy.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ghiassy.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}