How can a VM message the host #337
-
Hi everyone, I would like to run a script on the host that is triggered by the VM. Is there a suggested way to do this? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There is no such builtin functionality since such triggering would be a pretty big violation for contract of Virtual Machines being isolated from the host. A common patter is when you have a unidirectional communication from the host into VM. Usually integrations SSH into VMs and execute scripts there. There might be some hacky workaround like mounting a folder from the host so a VM can write something into it. Than the host can monitor the folder and execute triggers. But it sounds a bit too much IMO. What kind of things you'd like to trigger on the host from VMs? |
Beta Was this translation helpful? Give feedback.
There is no such builtin functionality since such triggering would be a pretty big violation for contract of Virtual Machines being isolated from the host.
A common patter is when you have a unidirectional communication from the host into VM. Usually integrations SSH into VMs and execute scripts there. There might be some hacky workaround like mounting a folder from the host so a VM can write something into it. Than the host can monitor the folder and execute triggers. But it sounds a bit too much IMO.
What kind of things you'd like to trigger on the host from VMs?