Bug 537688 - attach-interface: function is not supported by the hypervisor device type 'interface' cannot be attached
Summary: attach-interface: function is not supported by the hypervisor device type 'in...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 11
Hardware: All
OS: Linux
low
urgent
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-15 18:56 UTC by Gerry Reno
Modified: 2018-11-14 13:39 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-11-16 11:27:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Gerry Reno 2009-11-15 18:56:22 UTC
Description of problem:
virsh attach-interface ... fails

Version-Release number of selected component (if applicable):
0.6.2

How reproducible:
always

Steps to Reproduce:

I'm using libvirt 0.6.2 on F11 x86_64 and CPU supports hw virtualization.  When I try to do 'virsh attach-interface ...' I get an error that the function is not supported by the hypervisor device type 'interface' cannot be attached.  Is this command not supported?  Or is there something special I need to do?  I found it in the man page.


I have a private network declared.

And here is how I am trying to attach an interface:

# cat PRIVBR0.xml
 <network>
   <name>PRIVBR0</name>
   <bridge name='privbr0'/>
   <ip address='172.19.0.1' netmask='255.255.0.0'>
   </ip>
 </network>

# virsh net-list --all
Name                 State      Autostart
-----------------------------------------
PRIVBR0              active     yes
default              active     no

# virsh attach-interface CC  bridge privbr0
error: this function is not supported by the hypervisor: device type 'interface' cannot be attached

# grep emulator  CC.xml
   <emulator>/usr/bin/qemu-kvm</emulator>


I tried the 'attach-interface' both while the domain is running and while shutdown.  Neither works.




Actual results:
interface is not attached

Expected results:
interface is attached

Additional info:

Comment 1 Gerry Reno 2009-11-15 19:22:38 UTC
I have also tried this as 'attach-device' with the same result:

# cat INTERFACE_PRIVBR0.xml 
    <interface type='bridge'>
      <mac address='00:0c:01:41:50:01'/>
      <source bridge='privbr0'/>
    </interface>

# virsh attach-device CC INTERFACE_PRIVBR0.xml 
error: Failed to attach device from INTERFACE_PRIVBR0.xml
error: this function is not supported by the hypervisor: device type 'interface' cannot be attached

Comment 2 Ian Woodstock 2009-11-16 00:34:27 UTC
NIC hotplug was added in libvirt 0.70 http://libvirt.org/news.html

It's available in F12/rawhide now or you can look at virt-previews
http://fedoraproject.org/wiki/Virtualization_Preview_Repository

Comment 3 Daniel Berrangé 2009-11-16 11:27:48 UTC
As comment #2 says, NIC hotplug was not available in 0.6.2 libvirt, and it is not practical to backport this functionality. It is currently available in Fedora 12


Note You need to log in before you can comment on or make changes to this bug.