LoggingVM

Have anybody created a LoggingVM?

Which Saltstack modules and packages did you use?

How did you network this to dom0?

This would help a little.

1 Like

Just create a script in Domain-0 that gets added to the libxl hook.

This allows for retrieval of the log files if that is what you are after…

OR…

Just put it in the rc.local that is executed on boot…

Just make sure on first boot, the folder is moved and then things are done.

cat /var/log/kmsg >> /rw/config/log/kmsg
rm -rf /var/log
ln -s /rw/config/log /var/log

and done… You now have persistent logging in a guest that is NOT a Disposable VM.

Other than that, I have multiple logging guests…

What sort of logging are you after?

If you want one guest that has logs from all other guests then I can alter one of my scripts to enable things to happen for it. I tend to play around with scripts to do many things when I need things done. So I may have something that can work or be altered to work to do most anything you may need.

1 Like