[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[libvirt] invoking interface.script - missing interface name of domain
- From: "Daniel Schwager" <Daniel Schwager dtnet de>
- To: <libvir-list redhat com>
- Cc: Sebastian Ries <Sebastian Ries dtnet de>, Daniel Schwager <Daniel Schwager dtnet de>
- Subject: [libvirt] invoking interface.script - missing interface name of domain
- Date: Tue, 20 Jan 2009 16:12:06 +0100
Hi,
i would like to write a small script
- bringing up my qemu-kvm interface and
- connecting it to a bridge
using the following XML domain-syntax :
....
<interface type='ethernet'>
<script path='/etc/kvm/qemu-ifup'/>
</interface>
....
The script will invoked (from qemu-kvm I thinkg) but
I can't find any arguments like "interface name" - so
my script cannot setup the bridge correctly because of
missing information about the interface name.
At the moment, I look to the PPID (parent pid of the script) and
parse the qemu commandline (ps ef) to find out the interfacename -
but it's only a workaround.
Q: Is there a way to get informed about the interface libvirt/quemu used
for the new domain ?
regards
Danny
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]