Email alert VM error

This is for discussing general topics about how to use VirtualBox.
Post Reply
zireaeltw
Posts: 2
Joined: 25. Oct 2021, 21:46

Email alert VM error

Post by zireaeltw »

Hello!!

How can I get vitualbox to send me email alerts when there is a failure with a vm? :?:

thanks :D
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Email alert VM error

Post by scottgus1 »

Virtualbox does not do this natively. You'll have to roll your own solution.

Virtualbox has a basic status indicator ('vboxmanage showvminfo "vm name" ', piped through 'find' or 'grep' for the line starting with "State") but it only monitors the VM 'hardware', which can stay running even if the OS inside dies.

A script running inside the VM can send 'heartbeat' signals out to a monitor script running on the host via 'vboxmanage guestproperty' if Guest Additions are in the VM, or to the host or another PC over a network.

If the host monitor script fails to pick up heartbeats from a VM, the script could then send an email through the host PC's usual command-line methods.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Email alert VM error

Post by scottgus1 »

I removed your other two posts on this subject. Duplicate posts are not allowed.
zireaeltw
Posts: 2
Joined: 25. Oct 2021, 21:46

Re: Email alert VM error

Post by zireaeltw »

scottgus1 wrote:I removed your other two posts on this subject. Duplicate posts are not allowed.
sorry, I thought my posts were not being published well. Thank you so much
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Email alert VM error

Post by mpack »

And I removed a third topic, posted for some reason in the "Third Party Apps" forum. Posts in the latter forum have to be ok'd by a mod before they become visible.
Post Reply