-
Notifications
You must be signed in to change notification settings - Fork 655
open-vm-tools won't shutdown or restart the VM #1543
Comments
@joshwget is this going to be related to the bind-mount changes? |
@SvenDowideit Yes. I'll check it out. |
@joshwget I saw this in v0.8.0-rc4 on VMWare Fusion 8.5 on my Mac. I also had issues with VMWare being able to reconcile the VM state even when shutting it down from inside the VM. Starting to use v0.8.0-rc6 today. |
I got as far as discovering that the container that vmtoolsd runs in can't see /sbin/shutdown and friends, and does in fact log an error about it. I just needed to look in the right place, that is, the service container's log. |
useful info! |
this sounds like #1377 |
On the surface, yes. However, I'm able to suspend and resume without error. If I run sh: 1: /sbin/shutdown: not found This happens for every invocation of the shutdown or reboot commands, in any order. It's worth noting that I don't get the VIX error when I do this from the ESXi console, only from the viclient (management) application. Running a shell with root@docker-test:/# ls -ld /sbin/shutdown
ls: cannot access '/sbin/shutdown': No such file or directory In fact, it's nowhere to be found: root@docker-test:/# find / -name shutdown
root@docker-test:/# If anyone has any suggestions on where to look next, I'd be more than happy to investigate further. I haven't yet been able to piece together exactly where the open-vm-tools service is created and started. |
I'm part way through trying something out while I wait to see if there are any big issues found in v0.8.0-rc9 and this latest comment gives me an idea! :) |
@joshwget I added |
I'm pretty sure that's all that's needed. Probably better on the service file for the final fix though. |
@gizmotronic I've updated the service file - can you try on a new v0.8.0-rc9 vm? |
ok, moved the entrypoint back into the Dockerfile - there's no good reason why that is working for me, and the yml file isn't but its something to look into post 0.8 @gizmotronic please test |
It's now working properly. Thanks! |
Hi, open-vm-tools seems not to work again.
|
I can confirm that it's broken again, but suggest opening a new ticket, as this one is long since closed. This is not related to #2074, though if this issue was fixed, that one would surface next. |
Thank you for your comment. I opened a new ticket #2121 . |
RancherOS Version: 0.8.0_353fa60 – local build from master as of earlier today, no customization
Where are you running RancherOS? vSphere Hypervisor 5.5u3 (ESXi) virtual machine, iPXE, diskless
open-vm-tools installs and correctly reports state to the host. However, attempting to restart the guest VM only logs a message, and doesn't actually trigger a restart. Attempting to shut down the VM results in error 3009. According to the VIX API reference, this is:
3009 – VIX_E_POWEROP_SCRIPTS_NOT_AVAILABLE
Cannot execute scripts.
This is a regression from 0.7.1, where it worked correctly.
The text was updated successfully, but these errors were encountered: