<br><tt><font size=2>Ed Swierk <eswierk@aristanetworks.com> wrote
on 02/12/2010 11:29:59 AM:<br>
</font></tt>
<br><tt><font size=2>> <br>
> On Thu, Feb 11, 2010 at 10:19 AM, Stefan Berger <stefanb@us.ibm.com>
wrote:<br>
> > This part adds support for qemu making a macvtap tap device available<br>
> > via file descriptor passed to qemu command line. This also attempts
to<br>
> > tear down the macvtap device when a VM terminates. This includes
support<br>
> > for attachment and detachment to/from running VM.<br>
> <br>
> In qemudShutdownVMDaemon(), calling delMacvtapByMACAddress() before<br>
> virKillProcess() doesn't work. delMacvtapByMACAddress() tries to be<br>
> polite and not delete the macvtap interface if it appears to be owned<br>
> by someone else, but in this case it's our own qemu still holding
the<br>
> tap fd open:<br>
> <br>
>   libvirtd: 16:10:04.836: error : openTap:567 : cannot open macvtap<br>
> tap device /dev/tap63: Device or resource busy<br>
> <br>
> When the qemu process does finally stop, the macvtap interface is
<br>
> still around.</font></tt>
<br>
<br>
<br><tt><font size=2>How did you shut down the VM in this case? I may not
have tried 'virsh shutdown', but halting from within the VM should clean
up properly, or does this also not work?</font></tt>
<br>
<br><tt><font size=2>  Stefan</font></tt>
<br>
<br><tt><font size=2><br>
> <br>
> --Ed<br>
</font></tt>