Scripting Hooks ?

Is there a way to start some script after a VM is resumed ?

Background:
I use Ubuntu 7.04 with Avahi (=Bonjour) to announce the server's web service under Safari.
When I resume, I have to restart the Avahi daemon which seems to initiate some kind of broadcast.
Otherwise it doesn't become visible on Safari's Bonjour menu.

Same prob with Netatalk .. sometimes it also hangs after sleep.

-- Harald
 
Last edited:
Where should I look ?

To assure that you got me right:
It's not about the Mac's sleep mode. It's about Parallels Desktop's sleep function. When I quit Parallels, it asks me to suspend or to quit the VM immideately and I choose "suspend". When resuming the VM I run into the probs above.

From the guest OS's point of view there is no chance to detect if it was resumed or not.
 
Putting a script into /etc/acpi/resume works when I put it into sleep mode via KDE's exit menu, but fails when I put the VM into sleep.

It looks to me like the VM is just halted and not like it runs into ACPI mode. There is also nothing logged in /var/messages that it was put to sleep or resumed. It's halted and resumed without any notice to the guest.
 
Back
Top