<br><br><div class="gmail_quote">2009/4/16 Daniel P. Berrange <span dir="ltr"><<a href="mailto:berrange@redhat.com">berrange@redhat.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Wed, Apr 15, 2009 at 02:35:41PM +0400, Anton Protopopov wrote:<br>
> 2009/4/7 Daniel P. Berrange <<a href="mailto:berrange@redhat.com">berrange@redhat.com</a>><br>
><br>
> > On Tue, Apr 07, 2009 at 05:30:02PM +0400, Anton Protopopov wrote:<br>
> > > Hi.<br>
> > ><br>
> > > When I am trying to attach an interface<br>
> > >     <interface type='bridge'><br>
> > >       <mac address='52:54:00:db:1a:bb'/><br>
> > >       <source bridge='mkvebr0'/><br>
> > >     </interface><br>
> > > libvirt reports me, that<br>
> > >      libvirt.libvirtError: this function is not supported by the<br>
> > hypervisor:<br>
> > > this device type cannot be attached<br>
> > ><br>
> > > Is there a legal way to attach a network interface to QEMU/KVM machine?<br>
> ><br>
> > Not at this time. The QEMU monitor interface doesn't provide sufficient<br>
> > functionality to be able todo this, because there's no way to pass have<br>
> > libvirt create & setup the TAP device, and then pass it to QEMU. The<br>
> > QEMU monitor needs to gain the ability to do SCM_RIGHTS to accept an<br>
> > open file handle before we can hotplug NICs in any useful manner.<br>
> ><br>
> And what about attaching a device to stopped machine?<br>
> Stop, attach, and start. Just as temporary decision.<br>
<br>
</div>You can already add devices to stopped machines just by defining a new<br>
config file for them. We do need to make the attach/detach APIs for with<br>
inactive guests too for QEMU driver, since we allow this in the Xen<br>
driver already and there's no particular reason to deny it.</blockquote><div><br>Thanks<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Regards,<br>
<div><div></div><div class="h5">Daniel<br>
--<br>
|: Red Hat, Engineering, London   -o-   <a href="http://people.redhat.com/berrange/" target="_blank">http://people.redhat.com/berrange/</a> :|<br>
|: <a href="http://libvirt.org" target="_blank">http://libvirt.org</a>  -o-  <a href="http://virt-manager.org" target="_blank">http://virt-manager.org</a>  -o-  <a href="http://ovirt.org" target="_blank">http://ovirt.org</a> :|<br>

|: <a href="http://autobuild.org" target="_blank">http://autobuild.org</a>       -o-         <a href="http://search.cpan.org/%7Edanberr/" target="_blank">http://search.cpan.org/~danberr/</a> :|<br>
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|<br>
</div></div></blockquote></div><br>