[CentOS-virt] CentOS-virt Digest, Vol 33, Issue 9

Tue May 25 18:33:12 UTC 2010
Musil Stanislav <musil at sm-net.cz>



S pozdravem

Stan.M.




On 25.5.2010, at 18:00, centos-virt-request at centos.org wrote:

> Send CentOS-virt mailing list submissions to
>    centos-virt at centos.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>    http://lists.centos.org/mailman/listinfo/centos-virt
> or, via email, send a message with subject or body 'help' to
>    centos-virt-request at centos.org
>
> You can reach the person managing the list at
>    centos-virt-owner at centos.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of CentOS-virt digest..."
>
>
> Today's Topics:
>
>   1. Re: open-vm-tools 20100425 rpm (David Hollis)
>   2. Bug in reboot phase : workaround or patch ? (Erwan MAS)
>   3. Re: Bug in reboot phase : workaround or patch ? (Pasi K?rkk?inen)
>   4. Re: Bug in reboot phase : workaround or patch ? (Erwan MAS)
>   5. Libvirt NAT-based network 2x-4x faster than Libvirt    routed
>      network? (Kenni Lund)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 24 May 2010 16:02:06 -0400
> From: David Hollis <dhollis at davehollis.com>
> Subject: Re: [CentOS-virt] open-vm-tools 20100425 rpm
> To: centos-virt at centos.org
> Message-ID: <4BFADB3E.80701 at davehollis.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On 05/23/2010 04:02 PM, Fernando Gleiser wrote:
>
>> Do they require any special repos besides the base ones? I'm trying  
>> to build them on a 32-bit centos 5.4 VM on top of vmware server and  
>> the build doesn't even start, it fails with:
>>
>> [root at localhost SPECS]# rpmbuild -ba open-vm-tools-kmod.spec
>> error: Failed build dependencies:
>>        uriparser-devel is needed by open-vm-tools- 
>> kmod-0-1.20100425.i386
>>        kernel-devel-i386 = 2.6.18-164.15.1.el5 is needed by open-vm- 
>> tools-kmod-0-1.20100425.i386
>>
>> the kernel-devel rpm is installed:
>>
>> [root at localhost SPECS]# rpm -qa | grep kernel
>> kernel-headers-2.6.18-194.3.1.el5
>> kernel-2.6.18-164.el5
>> kernel-devel-2.6.18-194.3.1.el5
>> kernel-2.6.18-53.el5
>>
>> but uriparser-devel is not in the standard repos:
>>
>> [root at localhost SPECS]# yum search all | grep uriparser
>> [root at localhost SPECS]#
>>
>> Is anything here I'm missing?
>
> uriparser-devel is in the EPEL repo.
> To rebuild it against a specific kernel, use the kversion define like:
>
> rpmbuild -ba --define 'kversion 2.6.18-194.3.1.el5' open-vm-tools- 
> kmod.spec
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 24 May 2010 23:16:56 +0200
> From: Erwan MAS <erwan at mas.nom.fr>
> Subject: [CentOS-virt] Bug in reboot phase : workaround or patch ?
> To: centos-virt at centos.org
> Message-ID: <20100524211656.GB19993 at voyageur.mas.nom.fr>
> Content-Type: text/plain; charset=us-ascii
>
> Hello ,
>
> I use Centos 5.4 , with the redhat version of xen .
> I need for some guest to change the hardware for the network .
> So in my xen config i add the model option in the vif line .
>
> When the guest boot , i had the right emulation , but after a  
> reboot , the guest loose the configuration .
>
> Someone can confirm the bug in centos 5.5 ?
>
> Have someone a patch ?
>
>
>
> Extract of my config :
>
>   builder = "hvm"
>   vif = [ 'type=ioemu, mac=00:16:3e:50:10:45, bridge=xenbr0,  
> model=ne2k_pci']
>   device_model = "/usr/lib64/xen/bin/qemu-dm"
>
> #grep spa.*/usr/lib64/xen/bin/qemu-dm /var/log/xen/xend.log
>
> [2010-05-24 11:47:23 xend 3782] INFO (image:434) spawning device  
> models: /usr/lib64/xen/bin/qemu-dm ['/usr/lib64/xen/bin/qemu-dm', '- 
> d', '75', '-m', '192', '-boot', 'dc', '-serial', 'pty', '-vcpus',  
> '1', '-k', 'fr', '-domain-name', 'orange', '-net',  
> 'nic,vlan=1,macaddr=00:16:3e:50:10:45,model=pcnet', '-net',  
> 'tap,vlan=1,bridge=xenbr0', '-vnc', '127.0.0.45:1']
> [2010-05-24 11:47:40 xend 3782] INFO (image:434) spawning device  
> models: /usr/lib64/xen/bin/qemu-dm ['/usr/lib64/xen/bin/qemu-dm', '- 
> d', '76', '-m', '192', '-boot', 'dc', '-serial', 'pty', '-vcpus',  
> '1', '-k', 'fr', '-domain-name', 'orange', '-net',  
> 'nic,vlan=1,macaddr=00:16:3e:50:10:45,model=rtl8139', '-net',  
> 'tap,vlan=1,bridge=xenbr0', '-vnc', '127.0.0.45:1']
>
> #rpm -qa | grep ^xen
> xen-libs-3.0.3-94.el5_4.2
> xen-3.0.3-94.el5_4.2
>
> #xm info
> host                   : james.mas.nom.fr
> release                : 2.6.18-164.6.1.el5.centos.plusxen
> version                : #1 SMP Wed Nov 4 10:10:32 EST 2009
> machine                : x86_64
> nr_cpus                : 2
> nr_nodes               : 1
> sockets_per_node       : 1
> cores_per_socket       : 2
> threads_per_core       : 1
> cpu_mhz                : 2104
> hw_caps                : 178bfbff:ebd3fbff: 
> 00000000:00000010:00002001:00000000:0000011f
> total_memory           : 4078
> free_memory            : 1738
> node_to_cpu            : node0:0-1
> xen_major              : 3
> xen_minor              : 1
> xen_extra              : .2-164.6.1.el5.
> xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0- 
> x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
> xen_pagesize           : 4096
> platform_params        : virt_start=0xffff800000000000
> xen_changeset          : unavailable
> cc_compiler            : gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)
> cc_compile_by          : mockbuild
> cc_compile_domain      : centos.org
> cc_compile_date        : Wed Nov  4 09:23:54 EST 2009
> xend_config_format     : 2
>
> -- 
>     ____________________________________________________________
>    / Erwan MAS                                                 /\
>   | mailto:erwan at mas.nom.fr                                   |_/
> ___|________________________________________________________   |
> \___________________________________________________________\__/
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 25 May 2010 10:43:23 +0300
> From: Pasi K?rkk?inen <pasik at iki.fi>
> Subject: Re: [CentOS-virt] Bug in reboot phase : workaround or patch ?
> To: Discussion about the virtualization on CentOS
>    <centos-virt at centos.org>
> Message-ID: <20100525074323.GD17817 at reaktio.net>
> Content-Type: text/plain; charset=us-ascii
>
> On Mon, May 24, 2010 at 11:16:56PM +0200, Erwan MAS wrote:
>> Hello ,
>>
>> I use Centos 5.4 , with the redhat version of xen .
>> I need for some guest to change the hardware for the network .
>> So in my xen config i add the model option in the vif line .
>>
>> When the guest boot , i had the right emulation , but after a  
>> reboot , the guest loose the configuration .
>>
>
> So when you first "xm create" it, it's ok, and after you reboot the  
> guest,
> the NIC model has changed?
>
>> Someone can confirm the bug in centos 5.5 ?
>>
>
> Did you search Redhat bugzilla?
>
>
> -- Pasi
>
>
>> Have someone a patch ?
>>
>>
>>
>> Extract of my config :
>>
>>   builder = "hvm"
>>   vif = [ 'type=ioemu, mac=00:16:3e:50:10:45, bridge=xenbr0,  
>> model=ne2k_pci']
>>   device_model = "/usr/lib64/xen/bin/qemu-dm"
>>
>> #grep spa.*/usr/lib64/xen/bin/qemu-dm /var/log/xen/xend.log
>>
>> [2010-05-24 11:47:23 xend 3782] INFO (image:434) spawning device  
>> models: /usr/lib64/xen/bin/qemu-dm ['/usr/lib64/xen/bin/qemu-dm', '- 
>> d', '75', '-m', '192', '-boot', 'dc', '-serial', 'pty', '-vcpus',  
>> '1', '-k', 'fr', '-domain-name', 'orange', '-net',  
>> 'nic,vlan=1,macaddr=00:16:3e:50:10:45,model=pcnet', '-net',  
>> 'tap,vlan=1,bridge=xenbr0', '-vnc', '127.0.0.45:1']
>> [2010-05-24 11:47:40 xend 3782] INFO (image:434) spawning device  
>> models: /usr/lib64/xen/bin/qemu-dm ['/usr/lib64/xen/bin/qemu-dm', '- 
>> d', '76', '-m', '192', '-boot', 'dc', '-serial', 'pty', '-vcpus',  
>> '1', '-k', 'fr', '-domain-name', 'orange', '-net',  
>> 'nic,vlan=1,macaddr=00:16:3e:50:10:45,model=rtl8139', '-net',  
>> 'tap,vlan=1,bridge=xenbr0', '-vnc', '127.0.0.45:1']
>>
>> #rpm -qa | grep ^xen
>> xen-libs-3.0.3-94.el5_4.2
>> xen-3.0.3-94.el5_4.2
>>
>> #xm info
>> host                   : james.mas.nom.fr
>> release                : 2.6.18-164.6.1.el5.centos.plusxen
>> version                : #1 SMP Wed Nov 4 10:10:32 EST 2009
>> machine                : x86_64
>> nr_cpus                : 2
>> nr_nodes               : 1
>> sockets_per_node       : 1
>> cores_per_socket       : 2
>> threads_per_core       : 1
>> cpu_mhz                : 2104
>> hw_caps                : 178bfbff:ebd3fbff: 
>> 00000000:00000010:00002001:00000000:0000011f
>> total_memory           : 4078
>> free_memory            : 1738
>> node_to_cpu            : node0:0-1
>> xen_major              : 3
>> xen_minor              : 1
>> xen_extra              : .2-164.6.1.el5.
>> xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0- 
>> x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
>> xen_pagesize           : 4096
>> platform_params        : virt_start=0xffff800000000000
>> xen_changeset          : unavailable
>> cc_compiler            : gcc version 4.1.2 20080704 (Red Hat  
>> 4.1.2-46)
>> cc_compile_by          : mockbuild
>> cc_compile_domain      : centos.org
>> cc_compile_date        : Wed Nov  4 09:23:54 EST 2009
>> xend_config_format     : 2
>>
>> -- 
>>     ____________________________________________________________
>>    / Erwan MAS                                                 /\
>>   | mailto:erwan at mas.nom.fr                                   |_/
>> ___|________________________________________________________   |
>> \___________________________________________________________\__/
>> _______________________________________________
>> CentOS-virt mailing list
>> CentOS-virt at centos.org
>> http://lists.centos.org/mailman/listinfo/centos-virt
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 25 May 2010 10:59:38 +0200
> From: Erwan MAS <erwan at mas.nom.fr>
> Subject: Re: [CentOS-virt] Bug in reboot phase : workaround or patch ?
> To: Discussion about the virtualization on CentOS
>    <centos-virt at centos.org>
> Message-ID: <20100525085938.GC19993 at voyageur.mas.nom.fr>
> Content-Type: text/plain; charset=iso-8859-1
>
> On Tue, May 25, 2010 at 10:43:23AM +0300, Pasi K?rkk?inen wrote:
>> On Mon, May 24, 2010 at 11:16:56PM +0200, Erwan MAS wrote:
>>> Hello ,
>>>
>>> I use Centos 5.4 , with the redhat version of xen .
>>> I need for some guest to change the hardware for the network .
>>> So in my xen config i add the model option in the vif line .
>>>
>>> When the guest boot , i had the right emulation , but after a  
>>> reboot , the guest loose the configuration .
>>>
>>
>> So when you first "xm create" it, it's ok, and after you reboot the  
>> guest,
>> the NIC model has changed?
>
> It's a very old bug :-( .
> Cf http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=867
>
>>> Someone can confirm the bug in centos 5.5 ?
>>>
>
> Centos 5.5 use a new version of xen , and i hope than my bug is  
> fixed in it , but before upgrade i want
> a confirmation .
>
>> Did you search Redhat bugzilla?
>
> Yes .
>
> -- 
>     ____________________________________________________________
>    / Erwan MAS                                                 /\
>   | mailto:erwan at mas.nom.fr                                   |_/
> ___|________________________________________________________   |
> \___________________________________________________________\__/
>
>
> ------------------------------
>
> Message: 5
> Date: Tue, 25 May 2010 15:34:17 +0200
> From: Kenni Lund <kenni at kelu.dk>
> Subject: [CentOS-virt] Libvirt NAT-based network 2x-4x faster than
>    Libvirt    routed network?
> To: Discussion about the virtualization on CentOS
>    <centos-virt at centos.org>
> Message-ID:
>    <AANLkTilVG9SoFwr45o_GY-UD-q0htqEnFyuuizNT2JZZ at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi
>
> Is it expected behaviour that a libvirt NAT-based network is faster
> than a libvirt routed network?
>
> I would guess that the routed network would be the fastest one in all
> cases, but I'm seeing the opposite in my setup. On a 100mbit internet
> connection, the routed network tops at 4mbyte/sec, while the nat-based
> network goes all the way to 10mbyte/sec. I've spend the last 6 hours
> on trying to figure out the cause of this, changing settings,
> reinstalling the system, but the problem persists and I can't find the
> cause of it.
>
> It is a clean and fairly simple setup:
> - Clean installation of CentOS 5.5
> - Installation of kvm+libvirt+virt-manager+xorg
> - iptables service disabled
> - 1 public IP for the host (xxx.yyy.zzz.215) on a /32 subnet with
> xxx.yyy.zzz.193 as gateway
> - 3 public IP for the routed network (xxx.yyy.zzz.251-253) on a /26
> subnet with the same gateway as the host
> - 1 virtual machine with either the NAT or the routed libvirt  
> network assigned
>
> I have no networking connection errors or similar, it works perfectly
> with both the NAT and the routed network, but the routed network is
> just 2-4 times slower than the NAT one.
>
> Do you have any suggestions of what the problem might be? When I look
> at the iptables rules generated by libvirt, and the routing table,
> everything looks fine AFAICT. Traceroute from guest doesn't reveal
> anything either. Ping times from the two networks are similar, so the
> main issue seems to be throughput.
>
> Any help or pointers to what I should look at, is highly  
> appreciated... :)
>
> I've copy pasted some of my relevant system configuration into  
> pastebin:
> http://pastebin.com/jtTrHLqA
>
> Thank you,
> Kenni
>
>
> ------------------------------
>
> _______________________________________________
> CentOS-virt mailing list
> CentOS-virt at centos.org
> http://lists.centos.org/mailman/listinfo/centos-virt
>
>
> End of CentOS-virt Digest, Vol 33, Issue 9
> ******************************************