Displaying 5 results from an estimated 5 matches for "elementsmetadata".
2014 Feb 26
2
VM Creation Timestamp
Hello,
Is there any way to query libvirt, ideally through virsh CLI utility or
similar, to get a timestamp of when a VM was created.
Or to put it another way, a timestamp of when a domain's UUID was allocated.
Many thanks,
--
Tony Atkinson
2020 Aug 17
2
Post-firewall hook to insert custom rules?
Hello, I have a set of iptables rules that I need to insert *after* libvirt
has set up all of its firewall rules. Is there a hook that I can tap into in
order to run something like a custom script to make sure this happens? Any ideas?
-GN
2020 Aug 17
0
Re: Post-firewall hook to insert custom rules?
...s commandline:
/etc/libvirt/hooks/network network_name started begin -
stdin will contain the entire network XML definition in case you want
details, or want to extract some task-specific metadata from the network
definition (syntax for that is here:
https://libvirt.org/formatnetwork.html#elementsMetadata )
The same script will be called before the network is started, after it's
shut down, and whenever a guest interface is attached or detached from
the network - the details are in the web page linked above.
2014 Feb 26
0
Re: VM Creation Timestamp
...p of when a VM was created.
> Or to put it another way, a timestamp of when a domain's UUID was allocated.
Sorry, there is no such information currently tracked in <domain> xml.
You could use the metadata element to track this information yourself:
http://libvirt.org/formatdomain.html#elementsMetadata
but if we decide to add it in libvirt proper, it would not appear any
sooner than someone writes a patch (and certainly won't be in the
upcoming 1.2.2 release, since we're past feature freeze)
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libv...
2014 Feb 26
1
Re: VM Creation Timestamp
...ed.
>> Or to put it another way, a timestamp of when a domain's UUID was allocated.
>
> Sorry, there is no such information currently tracked in <domain> xml.
> You could use the metadata element to track this information yourself:
> http://libvirt.org/formatdomain.html#elementsMetadata
>
> but if we decide to add it in libvirt proper, it would not appear any
> sooner than someone writes a patch (and certainly won't be in the
> upcoming 1.2.2 release, since we're past feature freeze)
When you say "creation timestamp", do you mean the time at which t...