[libvirt] interface.script not launched (KVM/qemu)

Hi, I use kvm and libvirt for running windows on a fedora-core9. Problem: I defined a interface script which should run, if the KVM/qemu starts, but libvirt does not tell kvm to use the script: Part of my domain.xml: <interface type="bridge"> <source bridge="br-guest"/> <script path='bridge-kvm.sh'/> <model type='e1000'/> </interface> Part of the logfile of qemu in /var/log/libvirt/qemu LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin / /usr/bin/qemu-kvm \ -S -M pc -m 250 -smp 1 -name winxp100 -monitor pty -boot c \ -drive file=/tmp/winxp100,if=ide,index=0,boot=on \ -net nic,macaddr=52:54:00:79:d5:c9,vlan=0,model=e1000 \ -net tap,fd=14,script=,vlan=0,ifname=vnet0 \ -serial pty -parallel none -usb -usbdevice tablet -vnc 0.0.0.0:0 There, you can see the empty script directive "...,script=,...." root@kvm ~]$ rpm -qa | grep libvirt libvirt-0.5.1-2.fc9.x86_64 How can I fix this problem ? regards Danny

On Sat, Jan 10, 2009 at 04:22:59PM +0100, Daniel Schwager wrote:
Hi,
I use kvm and libvirt for running windows on a fedora-core9.
Problem: I defined a interface script which should run, if the KVM/qemu starts, but libvirt does not tell kvm to use the script:
Part of my domain.xml:
<interface type="bridge"> <source bridge="br-guest"/> <script path='bridge-kvm.sh'/> <model type='e1000'/> </interface>
The <script> tag is not relevant for the 'type=bridge' networking config. It is used by 'type=ethernet' networking for configuring ad-hoc setup, eg Xen's routed style networking, or other arbitrary non-bridged setups.
How can I fix this problem ?
Use the 'type=ethernet' config mode, and have your script configure whatever it needs Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
participants (2)
-
Daniel P. Berrange
-
Daniel Schwager