[et-mgmt-tools] [PATCH] virt-manager: specify 'model' attr when adding net device

Cole Robinson crobinso at redhat.com
Tue Jan 20 13:55:17 UTC 2009


Guido Günther wrote:
> On Mon, Jan 19, 2009 at 11:40:15AM -0500, Cole Robinson wrote:
>   
>> The attached patch allows specifying a device model when adding a
>> network device to an existing VM (ex. 'virtio', 'e1000', 'pcnet', etc.
>> depending on the emulator).
>>
>> A screenshot of the new UI:
>>
>> http://fedorapeople.org/~crobinso/virt-manager/vmm-net-model.png
>>     
> This is very useful!
>
>   
>> +            mod_list = [ "rtl8139", "ne2k_pci", "pcnet" ]
>> +            if self.vm.get_type().lower() == "kvm":
>> +                mod_list.append("e1000")
>> +                mod_list.append("virtio")
>>     
> It would be nice if this type of information (available sound card
> emulations, available network card emulations) would be exposed by
> libvirt so not all management app do have to keep track of it.
> Cheers,
>   

Yes, definitely agreed on that. It sucks having to duplicate all this info
in the management apps. I've thought about tackling it at various points
but never have. Unfortunately this is about the best we can do absent that
information.

Thanks,
Cole




More information about the et-mgmt-tools mailing list