[libvirt] XML network model type stripped on define.

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!) Thanks in advance.

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 Daniel -- |: 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 :|

virsh --version returns 0.3.3 Thank you. ________________________________________ From: Daniel P. Berrange [berrange@redhat.com] Sent: Wednesday, April 15, 2009 11:20 AM To: Adrian Garay Cc: libvir-list@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 Daniel -- |: 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 :|

On Wed, Apr 15, 2009 at 12:00:34PM -0500, Adrian Garay wrote:
virsh --version returns 0.3.3
Yes, that's too old to support the NIC model setting. You should be able to build the current libvirt release as an RPM for RHEL-5 though. Daniel -- |: 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 :|

Daniel P. Berrange schrieb:
On Wed, Apr 15, 2009 at 12:00:34PM -0500, Adrian Garay wrote:
virsh --version returns 0.3.3
Yes, that's too old to support the NIC model setting.
You should be able to build the current libvirt release as an RPM for RHEL-5 though.
Daniel
I too use RHEL5 (5.1 at work and 5.3 at home). I use KVM-84 built from sourceforge-source. I built libvirt-0.6.2 with the patch for RHEL5/CentOS5 issued yesterday, but: - migration (live) does not work - migration (unlive) of a live domain works, but i have to suspend and resume the domain on the target host and i boots up fine - migration of a domain doesn't work if the domain is defined on the target host, but if it isn't define back-migration is not possible and the libvirt-daemon of the target-host hangs endless and must be rebooted. - i have configured bridged lan via /etc/sysconfig/network-scripts/ifcfg-eth[01] and /etc/sysconfig/network-scripts/ifcfg-sw[01] respectively, virsh start for a domain only works if the fd was invoked by a kvm on the commandline, otherwise i get "failed to add tap interface 'vnet%d' to bridge 'sw1' : invalid parameter" - need to get back to work tomorrow to get more specific - specifying <target dev='vnet7'/> for a domain doesn't work, if i define the domain this parameter is stripped and is vanished if i do a dumpxml of the specific domain afterwards - i thought i could evade the vnet%d with this, but if i try to start the domain and do a dumpxml afterwards a <target dev='vnet%d'/> is in the domain-specification I think i should bundle this all into one new thread tomorrow when i am at work. This is a show-stopper for a productive scenario (okay, devel-releases should not go productive), i think i would use kvm with command-line-script until this works - it is a pitty the RH Enterprise Virtualization Hypervisor is not out yet and no release-path is announced - i can not wait since my new servers are installed next week or the following one and i didn't like to use xen anymore and would definitely not go for VMWare with its fat TCO-footprint.

Updated to 0.6.0 and the problem is solved, thank you! -----Original Message----- From: Daniel P. Berrange [mailto:berrange@redhat.com] Sent: Wednesday, April 15, 2009 12:36 PM To: Adrian Garay Cc: libvir-list@redhat.com Subject: Re: [libvirt] XML network model type stripped on define. On Wed, Apr 15, 2009 at 12:00:34PM -0500, Adrian Garay wrote:
virsh --version returns 0.3.3
Yes, that's too old to support the NIC model setting. You should be able to build the current libvirt release as an RPM for RHEL-5 though. Daniel -- |: 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 :|
participants (3)
-
Adrian Garay
-
Daniel P. Berrange
-
Gerrit Slomma