Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VMware Tools resume script did not run successfully
#1
I've just installed Vimarun to test as I simply am wanting my VM to run on startup with the GUI. I was using a startup script before but as you know that only runs in the background.

Everything ALMOST works perfect for my use case. when my system boots up, VMware loads, my VM starts to load but I get a popup that says The VMware Tools resume script did not run successfully in this virtual machine. The VM will not continue until I hit the OK button.

If I hit the OK button the VM does continue to load, but the problem for me is I need it to load without any user input, so no error/popup screen. 

VMworkstation 16
Host OS: Win11
Guest OS: HomeAssistant OS

For what it's worth, I'm not too concerned about the VM shutting down or suspending etc whenever my Host OS reboots for any reason. I just need it to start automatically with the GUI in the foreground.

Any thoughts?

So basically, if I didn't get this error/popup, this would be absolutely perfect for me.
Reply
#2
Hi,

Sure.

VMware Tools has a mechanism that can run a script on resume or startup.
In this case it is the resume script that is the culprit. There's a default resume script that appears to have a problem running, you can also set it to run a custom resume script.
The default resume script is mostly used to renew IP addresses in case the IP address is assigned via DHCP as the IP address might have been used by something else after resume.

The official VMware documentation about VMware Tools scripts can be found here:
https://docs.vmware.com/en/VMware-Tools/...D9CE9.html


Here's a few threads on VMTN about similar issues, that might help:
https://communities.vmware.com/t5/VMware...-p/2750403

https://communities.vmware.com/t5/VMware...ue#M111835

Let me know if that helps and if not then please tell me which version of HAOS you installed and which flavor so I can have a look later this week (no time for installing OS's today I'm afraid).
--
Wil
Reply
#3
(2022-02-08, 09:26:06)wila Wrote: Hi,

Sure.

VMware Tools has a mechanism that can run a script on resume or startup.
In this case it is the resume script that is the culprit. There's a default resume script that appears to have a problem running, you can also set it to run a custom resume script.
The default resume script is mostly used to renew IP addresses in case the IP address is assigned via DHCP as the IP address might have been used by something else after resume.

The official VMware documentation about VMware Tools scripts can be found here:
https://docs.vmware.com/en/VMware-Tools/...D9CE9.html


Here's a few threads on VMTN about similar issues, that might help:
https://communities.vmware.com/t5/VMware...-p/2750403

https://communities.vmware.com/t5/VMware...ue#M111835

Let me know if that helps and if not then please tell me which version of HAOS you installed and which flavor so I can have a look later this week (no time for installing OS's today I'm afraid).
--
Wil


Thanks Wil, 

My understanding is that those scripts would be installed on the guest OS correct? which HAOS I don't believe supports that.

The good news is that for now I have a work around, I set 
Code:
powerType.suspend = "soft"

to

Code:
powerType.suspend = "hard"

For now I can at least shutdown the host os without any popups and on restart it restarts the guest OS successfully with no popups.
To be honest I need to do some digging to fully understand the implications of changing this from soft to hard but at least I can get the system to run without user input as required.
Reply
#4
Hi,

Yes, the scripts are installed in the guest OS, along with open vmware tools.
As HAOS is based on Linux I would expect it to be possible to install.
If the installer notices that it is running under VMware, it might even be installed.

re. your workaround.

Good one, I had forgotten about changing the power state from "soft" to "hard".
That should be fine.

The difference between a soft suspend / resume and a hard suspend / resume is running the vmware tools scripts.

See also my more elaborate explanation here:
https://communities.vmware.com/t5/VMware...ue#M168974

--
Wil
Reply
#5
(2022-02-08, 22:34:02)wila Wrote: Hi,

Yes, the scripts are installed in the guest OS, along with open vmware tools.
As HAOS is based on Linux I would expect it to be possible to install.
If the installer notices that it is running under VMware, it might even be installed.

re. your workaround.

Good one, I had forgotten about changing the power state from "soft" to "hard".
That should be fine.

The difference between a soft suspend / resume and a hard suspend / resume is running the vmware tools scripts.

See also my more elaborate explanation here:
https://communities.vmware.com/t5/VMware...ue#M168974

--
Wil

excellent, thank you! that works for me, all my IP's (related to any of this) are all static set by my router so I'm not worried about anything changing in a sleep/suspend mode.

I really appreciate the quick help and info, you've definitely earned a license purchase.  Smile
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)