[xen-tools-discuss] Accessing VM configuration parameters in hooks
Tamas Gal
tamas.gal at fau.de
Wed Mar 22 09:43:17 CET 2017
Dear all,
I am using xen and xen-tools to automatise the VM creation which works fine including the copying of some custom configuration files to the newly created VMs.
I need however some other things to setup on dom0, for example the rsnapshot configuration, which needs an entry of each newly created VM.
I looked at the hooks but they only provide the `prefix` as input parameter, but I need the hostname to do something like
echo "backup lvm://vg0/${VM_HOSTNAME}/ ${VM_HOSTNAME}/" >> /etc/rsnapshot.conf
to activate the backup on dom0.
What is the common way to do things like this? Or do I need to modify the original xen-create-image script manually, where I have access to all the VM parameters?
Best,
Tom
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://xen-tools.org/pipermail/xen-tools-discuss/attachments/20170322/7a6b2348/attachment.html>
More information about the xen-tools-discuss
mailing list