[libvirt] interface.script not launched (KVM/qemu)
Daniel P. Berrange
berrange at redhat.com
Mon Jan 12 10:51:35 UTC 2009
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 :|
More information about the libvir-list
mailing list