Christian Spann
2011-May-16 14:39 UTC
[libvirt-users] Howto set the option script=no for a tap device in the xml file
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 -- 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>
Hello people. I had 4 servers (bart,homer, lisa and abraham) where livemigrate went without problems: I was able to make them play beach-volley with a vm instance whose image is on an NFS file system. Then I add a couple more, marge and maggie. I can do things like virsh -c qemu://maggie/system list or launch an interactive session without any problem, so the TLS channel should be properly configured. But when I try to run something like virsh migrate --live "one-24" qemu://maggie/system I get a nice "error: operation failed: failed to parse XML" error. There is the same error when OpenNebula tries to restore a vm from a checkpoint on the same machine. How can I fix this. I need all the machines up and running. -- ing. Gian Uberto Lauri Ricercatore / Reasearcher Laboratorio Ricerca e Sviluppo / Research & Development Lab. Area Calcolo Distribuito / Distributed Computation Area GianUberto.Lauri at eng.it Engineering Ingegneria Informatica spa Corso Stati Uniti 23/C, 35127 Padova (PD) Tel. +39-049.8283.571 | main(){printf(&unix["\021%six\012\0"], Fax +39-049.8283.569 | (unix)["have"]+"fun"-0x60);} Skype: gian.uberto.lauri | David Korn, AT&T Bell Labs http://www.eng.it | ioccc best One Liner, 1987
Christian Spann
2011-May-17 17:21 UTC
[libvirt-users] Howto set the option script=no for a tap device in the xml file
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 itself. 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. Regards, Christian 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>