[libvirt-users] Howto set the option script=no for a tap device in the xml file

Christian Spann Christian.Spann at uni-ulm.de
Tue May 17 17:21:15 UTC 2011

Hello again,

Digging into the source code with my colleague we found out that setting
<script path='no'/> does the trick. But to get this flag interpreted one
has to select the interface type "ethernet". Otherwise libvirt will
ignore the script element and try to add the tap device to the bridge by

Unfortunately libvirt does currently not support the downscript
parameter of qemu-kvm. But this only results in a error msg when
shutting down the vm. If I find some time the next days I will try to
produce a patch for this.



Am 16.05.2011 16:39, schrieb Christian Spann:
> Hello,
> I am trying to run a virtual machine with qemu-kvm and libvirt as a
> user. In order to start the virtual machine I setup a tap device
> manually, add it to the bridge and activate it via ifconfig. But I
> cannot tell libvirt to not try to add the definded tap device to the
> bridge by itself. It always fails telling me it cannot add tap0 to br0.
> Thats the xml snippet for defining the network:
> <interface type='bridge'>
> 	<mac address='54:52:00:38:75:dd'/>
> 	<source bridge='br0'/>
> 	<target dev='tap0'/>
> 	<model type='virtio'/>
> </interface>
> Here I would like do define "script=no" to get an output like: -net
> tap,vlan=0,ifname=tap0,script=no when libvirt launches the vm.
> Regards,
> Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5765 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20110517/5acbd5b9/attachment.p7s>

More information about the libvirt-users mailing list