How to get some specific information about the VM inside hookscript?

linum

Renowned Member
Sep 25, 2011
99
3
73
I want to add/remove the MAC addresses of my VMd during start/stop to ovs. I think I need to create a hookscript and make calls like
Bash:
ovs-appctl fdb/add <OVS_BRIDGE_NAME> tap<VMID>i<NETNUM> 0 de:ad:be:ff:00
I could parse most information with a call to
qm config <VMID>
but maybe some of the required information is available elsewhere?