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

Christian Spann Christian.Spann at uni-ulm.de
Mon May 16 14:39:00 UTC 2011


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'/>

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.

Christian Spann - http://www-vs.informatik.uni-ulm.de/~spann

-------------- 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/20110516/daca9e36/attachment.p7s>

More information about the libvirt-users mailing list