[libvirt] Re: device type 'interface' cannot be attached

Gerry Reno greno at verizon.net
Mon Nov 16 01:31:20 UTC 2009


Ian Woodstock wrote:
> ----- "Gerry Reno" <greno at verizon.net> wrote:
>   
>> Gerry Reno wrote:
>>     
>>> Gerry Reno wrote:
>>>       
>>>> 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 now, thank you Mark.
>>>
>>> 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.
>>>
>>> Can anyone see something wrong in what I'm doing here or the reason
>>> that 'attach-interface' is failing?
>>>
>>> -Gerry
>>>
>>>       
>> 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
>>
>> I opened the following bug on this issue:
>> https://bugzilla.redhat.com/show_bug.cgi?id=537688
>>
>>     
>
>
> Hot adding nics to qemu was added in libvirt 0.7
>
>
>   
So that means F12 and later would have NIC hotadd. 

Ok, so does anyone know if  libvirt 0.7.3 will be available as an 
upgrade in F12?    Ultimately that is what we're going to need.

-Gerry





More information about the libvir-list mailing list