[libvirt] XML network model type stripped on define.

Adrian Garay garay at oandstrucking.com
Wed Apr 15 17:00:34 UTC 2009

virsh --version returns 0.3.3

Thank you.
From: Daniel P. Berrange [berrange at redhat.com]
Sent: Wednesday, April 15, 2009 11:20 AM
To: Adrian Garay
Cc: libvir-list at redhat.com
Subject: Re: [libvirt] XML network model type stripped on define.

On Wed, Apr 15, 2009 at 11:08:54AM -0500, Adrian Garay wrote:
> Greetings!
> I am currently testing Centos5.3, KVM-84, libvirt from the Centos
> default packages and a Vista 32 guest.
> I am unfortunately experiencing difficulties with the default
> realtek8139 network driver, the solution for which I've read
> would be to change the emulated network device type to e1000.
> When editing the xml file for my guest, I change:
>     <interface type='bridge'>
>       <mac address='00:16:3e:38:a8:ad'/>
>       <source bridge='br0'/>
>     </interface>
> to:
>     <interface type='bridge'>
>       <mac address='00:16:3e:38:a8:ad'/>
>       <source bridge='br0'/>
>       <model type='e1000'/>
>      </interface>
> and then doing a:
> virsh --connect qemu:///system define /etc/libvirt/qemu/vista32.xml
> The correct guest is updated, but the model type information I've
> just added is stripped from my XML and I'm once again left with an
> 8139 emulated nic.
> According to the command:
> qemu-kvm -net nic,model=? /dev/null
> I should be able to use the e1000 driver.
> My sincerest apologies if this is already known, or I'm missing something
> terribly obvious.  I am new to mailing lists (this would be my first!)

What libvirt version do you have ?  It sounds very much like it is too
old for the 'model' attribute

|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

More information about the libvir-list mailing list