* Disabling mergeable rx buffers for the guest
@ 2013-07-16 5:09 Naor Shlomo
2013-07-16 6:11 ` Paolo Bonzini
0 siblings, 1 reply; 12+ messages in thread
From: Naor Shlomo @ 2013-07-16 5:09 UTC (permalink / raw)
To: kvm@vger.kernel.org
Hi,
I am trying to disable the mergeable rx buffers for a Linux guest but I am currently unable to do so.
I tried looking in the code of libvirt in order to find the "-global virtio-net-pci.mrg_rxbuf=off" but the only globals configured are:
PIIX4_PM.disable_s*, isa-fdc.drive, isa-fdc.bootindex, ram_size and vram_size
Is there a way to configure the XML configuration for the domain and disable the mergeable buffers?
If not, is there a way to somehow do it from the guest? (I don't want to mess with the host)
Thanks,
Naor
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Disabling mergeable rx buffers for the guest
2013-07-16 5:09 Disabling mergeable rx buffers for the guest Naor Shlomo
@ 2013-07-16 6:11 ` Paolo Bonzini
2013-07-16 6:40 ` Naor Shlomo
0 siblings, 1 reply; 12+ messages in thread
From: Paolo Bonzini @ 2013-07-16 6:11 UTC (permalink / raw)
To: Naor Shlomo; +Cc: kvm@vger.kernel.org
Il 16/07/2013 07:09, Naor Shlomo ha scritto:
> Hi,
>
> I am trying to disable the mergeable rx buffers for a Linux guest but I am currently unable to do so.
>
> I tried looking in the code of libvirt in order to find the "-global virtio-net-pci.mrg_rxbuf=off" but the only globals configured are:
> PIIX4_PM.disable_s*, isa-fdc.drive, isa-fdc.bootindex, ram_size and vram_size
>
> Is there a way to configure the XML configuration for the domain and disable the mergeable buffers?
> If not, is there a way to somehow do it from the guest? (I don't want to mess with the host)
You can use something like this:
<qemu:commandline>
<qemu:arg value='-global'/>
<qemu:env name='mrg_rxbuf' value='off'/>
</qemu:commandline>
Paolo
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Disabling mergeable rx buffers for the guest
2013-07-16 6:11 ` Paolo Bonzini
@ 2013-07-16 6:40 ` Naor Shlomo
2013-07-16 6:41 ` Paolo Bonzini
0 siblings, 1 reply; 12+ messages in thread
From: Naor Shlomo @ 2013-07-16 6:40 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: kvm@vger.kernel.org
Hi Paolo and thanks for your quick reply,
I tried editing (virsh edit) the domain's XML and put the XML excerpt you gave me everywhere but with no success.
The moment I exit the edit mode the text was gone (I guess it didn't pass some sort of sanity and that's why it was automatically erased).
What am I doing wrong?
Naor
-----Original Message-----
From: Paolo Bonzini [mailto:paolo.bonzini@gmail.com] On Behalf Of Paolo Bonzini
Sent: Tuesday, July 16, 2013 9:12 AM
To: Naor Shlomo
Cc: kvm@vger.kernel.org
Subject: Re: Disabling mergeable rx buffers for the guest
Il 16/07/2013 07:09, Naor Shlomo ha scritto:
> Hi,
>
> I am trying to disable the mergeable rx buffers for a Linux guest but I am currently unable to do so.
>
> I tried looking in the code of libvirt in order to find the "-global virtio-net-pci.mrg_rxbuf=off" but the only globals configured are:
> PIIX4_PM.disable_s*, isa-fdc.drive, isa-fdc.bootindex, ram_size and vram_size
>
> Is there a way to configure the XML configuration for the domain and disable the mergeable buffers?
> If not, is there a way to somehow do it from the guest? (I don't want to mess with the host)
You can use something like this:
<qemu:commandline>
<qemu:arg value='-global'/>
<qemu:env name='mrg_rxbuf' value='off'/>
</qemu:commandline>
Paolo
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Disabling mergeable rx buffers for the guest
2013-07-16 6:40 ` Naor Shlomo
@ 2013-07-16 6:41 ` Paolo Bonzini
2013-07-16 8:06 ` Naor Shlomo
0 siblings, 1 reply; 12+ messages in thread
From: Paolo Bonzini @ 2013-07-16 6:41 UTC (permalink / raw)
To: Naor Shlomo; +Cc: kvm@vger.kernel.org
Il 16/07/2013 08:40, Naor Shlomo ha scritto:
> Hi Paolo and thanks for your quick reply,
>
> I tried editing (virsh edit) the domain's XML and put the XML excerpt you gave me everywhere but with no success.
> The moment I exit the edit mode the text was gone (I guess it didn't pass some sort of sanity and that's why it was automatically erased).
>
> What am I doing wrong?
My fault. You need to change the <domain> opening tag to
<domain type='qemu' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
See http://libvirt.org/drvqemu.html#qemucommand for the docs.
Paolo
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Disabling mergeable rx buffers for the guest
2013-07-16 6:41 ` Paolo Bonzini
@ 2013-07-16 8:06 ` Naor Shlomo
2013-07-16 9:35 ` Paolo Bonzini
0 siblings, 1 reply; 12+ messages in thread
From: Naor Shlomo @ 2013-07-16 8:06 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: kvm@vger.kernel.org
Thanks again Paolo,
I used your string and read the documents in the site you referred me to but could not understand why doesn't it accept the xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0' string.
I tried it on the following version:
Compiled against library: libvir 0.9.8
Using library: libvir 0.9.8
Using API: QEMU 0.9.8
Running hypervisor: QEMU 1.0.0
So according to the site it should be supported.
Any idea what am I missing now?
Naor
-----Original Message-----
From: Paolo Bonzini [mailto:pbonzini@redhat.com]
Sent: Tuesday, July 16, 2013 9:42 AM
To: Naor Shlomo
Cc: kvm@vger.kernel.org
Subject: Re: Disabling mergeable rx buffers for the guest
Il 16/07/2013 08:40, Naor Shlomo ha scritto:
> Hi Paolo and thanks for your quick reply,
>
> I tried editing (virsh edit) the domain's XML and put the XML excerpt you gave me everywhere but with no success.
> The moment I exit the edit mode the text was gone (I guess it didn't pass some sort of sanity and that's why it was automatically erased).
>
> What am I doing wrong?
My fault. You need to change the <domain> opening tag to
<domain type='qemu' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
See http://libvirt.org/drvqemu.html#qemucommand for the docs.
Paolo
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Disabling mergeable rx buffers for the guest
2013-07-16 8:06 ` Naor Shlomo
@ 2013-07-16 9:35 ` Paolo Bonzini
2013-07-16 10:40 ` Naor Shlomo
0 siblings, 1 reply; 12+ messages in thread
From: Paolo Bonzini @ 2013-07-16 9:35 UTC (permalink / raw)
To: Naor Shlomo; +Cc: kvm@vger.kernel.org
Il 16/07/2013 10:06, Naor Shlomo ha scritto:
> Thanks again Paolo,
>
> I used your string and read the documents in the site you referred me to but could not understand why doesn't it accept the xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0' string.
>
> I tried it on the following version:
> Compiled against library: libvir 0.9.8
> Using library: libvir 0.9.8
> Using API: QEMU 0.9.8
> Running hypervisor: QEMU 1.0.0
>
> So according to the site it should be supported.
>
> Any idea what am I missing now?
Not sure. Can you post here the full XML, and the one you're trying to use?
Paolo
> Naor
>
> -----Original Message-----
> From: Paolo Bonzini [mailto:pbonzini@redhat.com]
> Sent: Tuesday, July 16, 2013 9:42 AM
> To: Naor Shlomo
> Cc: kvm@vger.kernel.org
> Subject: Re: Disabling mergeable rx buffers for the guest
>
> Il 16/07/2013 08:40, Naor Shlomo ha scritto:
>> Hi Paolo and thanks for your quick reply,
>>
>> I tried editing (virsh edit) the domain's XML and put the XML excerpt you gave me everywhere but with no success.
>> The moment I exit the edit mode the text was gone (I guess it didn't pass some sort of sanity and that's why it was automatically erased).
>>
>> What am I doing wrong?
>
> My fault. You need to change the <domain> opening tag to
>
> <domain type='qemu' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
>
> See http://libvirt.org/drvqemu.html#qemucommand for the docs.
>
> Paolo
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Disabling mergeable rx buffers for the guest
2013-07-16 9:35 ` Paolo Bonzini
@ 2013-07-16 10:40 ` Naor Shlomo
2013-07-16 10:42 ` Paolo Bonzini
2013-07-16 10:42 ` Daniel P. Berrange
0 siblings, 2 replies; 12+ messages in thread
From: Naor Shlomo @ 2013-07-16 10:40 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: kvm@vger.kernel.org
Hi Paolo,
For some unknown reason it suddenly started to accept the changes to the XML and the strings you gave me are now in place.
Upon machine start I now receive the following error messages:
virsh # start NaorDev
error: Failed to start domain NaorDev
error: internal error Process exited while reading console log output: kvm: -global: requires an argument"
Here's the XML:
<domain type='qemu' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>NaorDev</name>
<uuid>60b5a0ab-8932-47c1-8674-760c7e1f4743</uuid>
<memory>2118656</memory>
<currentMemory>2118656</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine='pc-1.0'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<pae/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='raw' cache='writeback'/>
<source file='/var/lib/libvirt/images/NaorDev.img'/>
<target dev='vda' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</disk>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2' cache='none'/>
<source file='/var/lib/libvirt/images/NaorAddonHdd.qcow'/>
<target dev='vdb' bus='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
</disk>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<interface type='bridge'>
<mac address='52:54:00:c6:b7:a3'/>
<source bridge='mngmnt'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
<interface type='bridge'>
<mac address='52:54:00:9e:44:90'/>
<source bridge='client'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</interface>
<interface type='bridge'>
<mac address='52:54:00:e7:f9:bf'/>
<source bridge='server'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
</interface>
<serial type='pty'>
<target port='0'/>
</serial>
<console type='pty'>
<target type='serial' port='0'/>
</console>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes'/>
<video>
<model type='cirrus' vram='9216' heads='1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
<memballoon model='virtio'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</memballoon>
</devices>
<qemu:commandline>
<qemu:arg value='-global'/>
<qemu:env name='mrg_rxbuf' value='off'/>
</qemu:commandline>
</domain>
Naor
-----Original Message-----
From: Paolo Bonzini [mailto:pbonzini@redhat.com]
Sent: Tuesday, July 16, 2013 12:36 PM
To: Naor Shlomo
Cc: kvm@vger.kernel.org
Subject: Re: Disabling mergeable rx buffers for the guest
Il 16/07/2013 10:06, Naor Shlomo ha scritto:
> Thanks again Paolo,
>
> I used your string and read the documents in the site you referred me to but could not understand why doesn't it accept the xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0' string.
>
> I tried it on the following version:
> Compiled against library: libvir 0.9.8 Using library: libvir 0.9.8
> Using API: QEMU 0.9.8 Running hypervisor: QEMU 1.0.0
>
> So according to the site it should be supported.
>
> Any idea what am I missing now?
Not sure. Can you post here the full XML, and the one you're trying to use?
Paolo
> Naor
>
> -----Original Message-----
> From: Paolo Bonzini [mailto:pbonzini@redhat.com]
> Sent: Tuesday, July 16, 2013 9:42 AM
> To: Naor Shlomo
> Cc: kvm@vger.kernel.org
> Subject: Re: Disabling mergeable rx buffers for the guest
>
> Il 16/07/2013 08:40, Naor Shlomo ha scritto:
>> Hi Paolo and thanks for your quick reply,
>>
>> I tried editing (virsh edit) the domain's XML and put the XML excerpt you gave me everywhere but with no success.
>> The moment I exit the edit mode the text was gone (I guess it didn't pass some sort of sanity and that's why it was automatically erased).
>>
>> What am I doing wrong?
>
> My fault. You need to change the <domain> opening tag to
>
> <domain type='qemu'
> xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
>
> See http://libvirt.org/drvqemu.html#qemucommand for the docs.
>
> Paolo
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Disabling mergeable rx buffers for the guest
2013-07-16 10:40 ` Naor Shlomo
@ 2013-07-16 10:42 ` Paolo Bonzini
2013-07-16 11:05 ` Naor Shlomo
2013-07-16 10:42 ` Daniel P. Berrange
1 sibling, 1 reply; 12+ messages in thread
From: Paolo Bonzini @ 2013-07-16 10:42 UTC (permalink / raw)
To: Naor Shlomo; +Cc: kvm@vger.kernel.org
Il 16/07/2013 12:40, Naor Shlomo ha scritto:
> Hi Paolo,
>
> For some unknown reason it suddenly started to accept the changes to the XML and the strings you gave me are now in place.
Good.
> Upon machine start I now receive the following error messages:
>
> virsh # start NaorDev
> error: Failed to start domain NaorDev
> error: internal error Process exited while reading console log output: kvm: -global: requires an argument"
>
That's because I cut-and-pasted without reading:
> <qemu:commandline>
> <qemu:arg value='-global'/>
> <qemu:env name='mrg_rxbuf' value='off'/>
> </qemu:commandline>
The right one is (or at this point I'd better say "should be"):
<qemu:commandline>
<qemu:arg value='-global'/>
<qemu:arg value='virtio-net-pci.mrg_rxbuf=off'/>
</qemu:commandline>
Paolo
> </domain>
>
> Naor
>
> -----Original Message-----
> From: Paolo Bonzini [mailto:pbonzini@redhat.com]
> Sent: Tuesday, July 16, 2013 12:36 PM
> To: Naor Shlomo
> Cc: kvm@vger.kernel.org
> Subject: Re: Disabling mergeable rx buffers for the guest
>
> Il 16/07/2013 10:06, Naor Shlomo ha scritto:
>> Thanks again Paolo,
>>
>> I used your string and read the documents in the site you referred me to but could not understand why doesn't it accept the xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0' string.
>>
>> I tried it on the following version:
>> Compiled against library: libvir 0.9.8 Using library: libvir 0.9.8
>> Using API: QEMU 0.9.8 Running hypervisor: QEMU 1.0.0
>>
>> So according to the site it should be supported.
>>
>> Any idea what am I missing now?
>
> Not sure. Can you post here the full XML, and the one you're trying to use?
>
> Paolo
>
>> Naor
>>
>> -----Original Message-----
>> From: Paolo Bonzini [mailto:pbonzini@redhat.com]
>> Sent: Tuesday, July 16, 2013 9:42 AM
>> To: Naor Shlomo
>> Cc: kvm@vger.kernel.org
>> Subject: Re: Disabling mergeable rx buffers for the guest
>>
>> Il 16/07/2013 08:40, Naor Shlomo ha scritto:
>>> Hi Paolo and thanks for your quick reply,
>>>
>>> I tried editing (virsh edit) the domain's XML and put the XML excerpt you gave me everywhere but with no success.
>>> The moment I exit the edit mode the text was gone (I guess it didn't pass some sort of sanity and that's why it was automatically erased).
>>>
>>> What am I doing wrong?
>>
>> My fault. You need to change the <domain> opening tag to
>>
>> <domain type='qemu'
>> xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
>>
>> See http://libvirt.org/drvqemu.html#qemucommand for the docs.
>>
>> Paolo
>>
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Disabling mergeable rx buffers for the guest
2013-07-16 10:40 ` Naor Shlomo
2013-07-16 10:42 ` Paolo Bonzini
@ 2013-07-16 10:42 ` Daniel P. Berrange
2013-07-16 11:06 ` Naor Shlomo
1 sibling, 1 reply; 12+ messages in thread
From: Daniel P. Berrange @ 2013-07-16 10:42 UTC (permalink / raw)
To: Naor Shlomo; +Cc: Paolo Bonzini, kvm@vger.kernel.org
On Tue, Jul 16, 2013 at 10:40:28AM +0000, Naor Shlomo wrote:
> Hi Paolo,
>
> For some unknown reason it suddenly started to accept the changes to the XML and the strings you gave me are now in place.
> Upon machine start I now receive the following error messages:
>
> virsh # start NaorDev
> error: Failed to start domain NaorDev
> error: internal error Process exited while reading console log output: kvm: -global: requires an argument
>
> Here's the XML:
>
> <qemu:commandline>
> <qemu:arg value='-global'/>
> <qemu:env name='mrg_rxbuf' value='off'/>
> </qemu:commandline>
Presumably what you wanted to do was
<qemu:commandline>
<qemu:arg value='-global'/>
<qemu:arg value='mrg_rxbuf=off'/>
</qemu:commandline>
Rather than setting an environment variable.
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Disabling mergeable rx buffers for the guest
2013-07-16 10:42 ` Paolo Bonzini
@ 2013-07-16 11:05 ` Naor Shlomo
2013-07-16 12:21 ` Naor Shlomo
0 siblings, 1 reply; 12+ messages in thread
From: Naor Shlomo @ 2013-07-16 11:05 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: kvm@vger.kernel.org
Paolo,
Sorry for all the trouble.
We got a progress. Your last qemu:commandline really worked and I was able to try and start the machine.
The problem is that I reached up to the tun driver load section and then the machine shut itself down.
The last lines of the console showed the following:
[ 1.568226] Fixed MDIO Bus: probed
[ 1.568833] tun: Universal TUN/TAP device driver, 1.6
[ 1.569108] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
And it got me back to the virsh command line.
Here's an output of the log file:
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-1.0 -no-kvm -m 2069 -smp 1,sockets=1,cores=1,threads=1 -name NaorDev -uuid 60b5a0ab-8932-47c1-8674-760c7e1f4743 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/NaorDev.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -drive file=/var/lib/libvirt/images/NaorDev.img,if=none,id=drive-virtio-disk0,format=raw,cache=writeback -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive file=/var/lib/libvirt/images/NaorAddonHdd.qcow,if=none,id=drive-virtio-disk1,format=qcow2,cache=none -device virtio-blk-pci,bus=pci.0,addr=0x8,drive=drive-virtio-disk1,id=virt
io-disk1 -netdev tap,fd=18,id=hostnet0,vhost=on,vhostfd=19 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:c6:b7:a3,bus=pci.0,addr=0x3 -netdev tap,fd=20,id=hostnet1,vhost=on,vhostfd=21 -device virtio-net-pci,netdev=hostnet1,id=net1,mac=52:54:00:9e:44:90,bus=pci.0,addr=0x4 -netdev tap,fd=22,id=hostnet2,vhost=on,vhostfd=23 -device virtio-net-pci,netdev=hostnet2,id=net2,mac=52:54:00:e7:f9:bf,bus=pci.0,addr=0x7 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -usb -vnc 127.0.0.1:0 -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 -global virtio-net-pci.mrg_rxbuf=off
Domain id=9 is tainted: custom-argv
char device redirected to /dev/pts/1
2013-07-16 12:48:26.440+0000: shutting down
and here's the output of lsmod:
vhost_net 32360 0
macvtap 18529 1 vhost_net
macvlan 19003 1 macvtap
ip6table_filter 12816 0
ip6_tables 27686 1 ip6table_filter
ebtable_nat 12808 0
ebtables 31024 1 ebtable_nat
ipt_MASQUERADE 12760 3
iptable_nat 13230 1
nf_nat 25646 2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4 14531 4 iptable_nat,nf_nat
nf_defrag_ipv4 12730 1 nf_conntrack_ipv4
xt_state 12579 1
nf_conntrack 83300 5 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4,xt_state
ipt_REJECT 12577 2
xt_CHECKSUM 12550 1
iptable_mangle 12735 1
xt_tcpudp 12604 5
iptable_filter 12811 1
ip_tables 27474 3 iptable_nat,iptable_mangle,iptable_filter
x_tables 29892 12 ip6table_filter,ip6_tables,ebtables,ipt_MASQUERADE,iptable_nat,xt_state,ipt_REJECT,xt_CHECKSUM,iptable_mangle,xt_tcpudp,iptable_filter,ip_tables
dm_crypt 23126 0
coretemp 13642 0
kvm_intel 137888 0
kvm 422160 1 kvm_intel
ext2 73799 1
gpio_ich 13384 0
dm_multipath 23306 0
scsi_dh 14589 1 dm_multipath
lp 17800 0
microcode 23030 0
parport 46563 1 lp
bridge 91498 0
sb_edac 18104 0
stp 12977 1 bridge
llc 14598 2 bridge,stp
joydev 17694 0
edac_core 53053 3 sb_edac
shpchp 37278 0
lpc_ich 17145 0
mei 41410 0
acpi_power_meter 18124 0
mac_hid 13254 0
btrfs 781017 0
zlib_deflate 27140 1 btrfs
libcrc32c 12645 1 btrfs
vesafb 13846 1
hid_generic 12541 0
usbhid 47259 0
hid 100815 2 hid_generic,usbhid
ses 17418 0
enclosure 15313 1 ses
ghash_clmulni_intel 13221 0
aesni_intel 51134 0
cryptd 20531 2 ghash_clmulni_intel,aesni_intel
aes_x86_64 17256 1 aesni_intel
megaraid_sas 82737 2
ixgbe 184924 0
dca 15233 1 ixgbe
mdio 13808 1 ixgbe
tg3 156594 0
wmi 19257 0
I will appreciate it if you tell me what I am missing now.
Thanks,
Naor
-----Original Message-----
From: Paolo Bonzini [mailto:pbonzini@redhat.com]
Sent: Tuesday, July 16, 2013 1:42 PM
To: Naor Shlomo
Cc: kvm@vger.kernel.org
Subject: Re: Disabling mergeable rx buffers for the guest
Il 16/07/2013 12:40, Naor Shlomo ha scritto:
> Hi Paolo,
>
> For some unknown reason it suddenly started to accept the changes to the XML and the strings you gave me are now in place.
Good.
> Upon machine start I now receive the following error messages:
>
> virsh # start NaorDev
> error: Failed to start domain NaorDev
> error: internal error Process exited while reading console log output: kvm: -global: requires an argument"
>
That's because I cut-and-pasted without reading:
> <qemu:commandline>
> <qemu:arg value='-global'/>
> <qemu:env name='mrg_rxbuf' value='off'/>
> </qemu:commandline>
The right one is (or at this point I'd better say "should be"):
<qemu:commandline>
<qemu:arg value='-global'/>
<qemu:arg value='virtio-net-pci.mrg_rxbuf=off'/>
</qemu:commandline>
Paolo
> </domain>
>
> Naor
>
> -----Original Message-----
> From: Paolo Bonzini [mailto:pbonzini@redhat.com]
> Sent: Tuesday, July 16, 2013 12:36 PM
> To: Naor Shlomo
> Cc: kvm@vger.kernel.org
> Subject: Re: Disabling mergeable rx buffers for the guest
>
> Il 16/07/2013 10:06, Naor Shlomo ha scritto:
>> Thanks again Paolo,
>>
>> I used your string and read the documents in the site you referred me to but could not understand why doesn't it accept the xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0' string.
>>
>> I tried it on the following version:
>> Compiled against library: libvir 0.9.8 Using library: libvir 0.9.8
>> Using API: QEMU 0.9.8 Running hypervisor: QEMU 1.0.0
>>
>> So according to the site it should be supported.
>>
>> Any idea what am I missing now?
>
> Not sure. Can you post here the full XML, and the one you're trying to use?
>
> Paolo
>
>> Naor
>>
>> -----Original Message-----
>> From: Paolo Bonzini [mailto:pbonzini@redhat.com]
>> Sent: Tuesday, July 16, 2013 9:42 AM
>> To: Naor Shlomo
>> Cc: kvm@vger.kernel.org
>> Subject: Re: Disabling mergeable rx buffers for the guest
>>
>> Il 16/07/2013 08:40, Naor Shlomo ha scritto:
>>> Hi Paolo and thanks for your quick reply,
>>>
>>> I tried editing (virsh edit) the domain's XML and put the XML excerpt you gave me everywhere but with no success.
>>> The moment I exit the edit mode the text was gone (I guess it didn't pass some sort of sanity and that's why it was automatically erased).
>>>
>>> What am I doing wrong?
>>
>> My fault. You need to change the <domain> opening tag to
>>
>> <domain type='qemu'
>> xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
>>
>> See http://libvirt.org/drvqemu.html#qemucommand for the docs.
>>
>> Paolo
>>
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Disabling mergeable rx buffers for the guest
2013-07-16 10:42 ` Daniel P. Berrange
@ 2013-07-16 11:06 ` Naor Shlomo
0 siblings, 0 replies; 12+ messages in thread
From: Naor Shlomo @ 2013-07-16 11:06 UTC (permalink / raw)
To: Daniel P. Berrange; +Cc: Paolo Bonzini, kvm@vger.kernel.org
Thanks Daniel,
Paolo already got it right, it's:
<qemu:commandline>
<qemu:arg value='-global'/>
<qemu:arg value='virtio-net-pci.mrg_rxbuf=off'/>
</qemu:commandline>
-----Original Message-----
From: Daniel P. Berrange [mailto:berrange@redhat.com]
Sent: Tuesday, July 16, 2013 1:43 PM
To: Naor Shlomo
Cc: Paolo Bonzini; kvm@vger.kernel.org
Subject: Re: Disabling mergeable rx buffers for the guest
On Tue, Jul 16, 2013 at 10:40:28AM +0000, Naor Shlomo wrote:
> Hi Paolo,
>
> For some unknown reason it suddenly started to accept the changes to the XML and the strings you gave me are now in place.
> Upon machine start I now receive the following error messages:
>
> virsh # start NaorDev
> error: Failed to start domain NaorDev
> error: internal error Process exited while reading console log output: kvm: -global: requires an argument
>
> Here's the XML:
>
> <qemu:commandline>
> <qemu:arg value='-global'/>
> <qemu:env name='mrg_rxbuf' value='off'/>
> </qemu:commandline>
Presumably what you wanted to do was
<qemu:commandline>
<qemu:arg value='-global'/>
<qemu:arg value='mrg_rxbuf=off'/>
</qemu:commandline>
Rather than setting an environment variable.
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: Disabling mergeable rx buffers for the guest
2013-07-16 11:05 ` Naor Shlomo
@ 2013-07-16 12:21 ` Naor Shlomo
0 siblings, 0 replies; 12+ messages in thread
From: Naor Shlomo @ 2013-07-16 12:21 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: kvm@vger.kernel.org
Paolo,
Thanks for your help in this matter. Issue is resolved.
One more thing I changed in order to get the machine up and running is this:
<domain type='qemu' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
has been changed to:
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
I verified by running:
cat /sys/bus/virtio/devices/virtio0/features
That the 15th bit is off hence mergeable buffers are disabled.
Thanks again,
Naor
-----Original Message-----
From: kvm-owner@vger.kernel.org [mailto:kvm-owner@vger.kernel.org] On Behalf Of Naor Shlomo
Sent: Tuesday, July 16, 2013 2:06 PM
To: Paolo Bonzini
Cc: kvm@vger.kernel.org
Subject: RE: Disabling mergeable rx buffers for the guest
Paolo,
Sorry for all the trouble.
We got a progress. Your last qemu:commandline really worked and I was able to try and start the machine.
The problem is that I reached up to the tun driver load section and then the machine shut itself down.
The last lines of the console showed the following:
[ 1.568226] Fixed MDIO Bus: probed
[ 1.568833] tun: Universal TUN/TAP device driver, 1.6
[ 1.569108] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
And it got me back to the virsh command line.
Here's an output of the log file:
LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-1.0 -no-kvm -m 2069 -smp 1,sockets=1,cores=1,threads=1 -name NaorDev -uuid 60b5a0ab-8932-47c1-8674-760c7e1f4743 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/NaorDev.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -drive file=/var/lib/libvirt/images/NaorDev.img,if=none,id=drive-virtio-disk0,format=raw,cache=writeback -device virtio-blk-pci,bus=pci.0,addr=0x5,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive file=/var/lib/libvirt/images/NaorAddonHdd.qcow,if=none,id=drive-virtio-disk1,format=qcow2,cache=none -device virtio-blk-pci,bus=pci.0,addr=0x8,drive=drive-virtio-disk1,id=virt
io-disk1 -netdev tap,fd=18,id=hostnet0,vhost=on,vhostfd=19 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:c6:b7:a3,bus=pci.0,addr=0x3 -netdev tap,fd=20,id=hostnet1,vhost=on,vhostfd=21 -device virtio-net-pci,netdev=hostnet1,id=net1,mac=52:54:00:9e:44:90,bus=pci.0,addr=0x4 -netdev tap,fd=22,id=hostnet2,vhost=on,vhostfd=23 -device virtio-net-pci,netdev=hostnet2,id=net2,mac=52:54:00:e7:f9:bf,bus=pci.0,addr=0x7 -chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 -usb -vnc 127.0.0.1:0 -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6 -global virtio-net-pci.mrg_rxbuf=off Domain id=9 is tainted: custom-argv char device redirected to /dev/pts/1
2013-07-16 12:48:26.440+0000: shutting down
and here's the output of lsmod:
vhost_net 32360 0
macvtap 18529 1 vhost_net
macvlan 19003 1 macvtap
ip6table_filter 12816 0
ip6_tables 27686 1 ip6table_filter
ebtable_nat 12808 0
ebtables 31024 1 ebtable_nat
ipt_MASQUERADE 12760 3
iptable_nat 13230 1
nf_nat 25646 2 ipt_MASQUERADE,iptable_nat
nf_conntrack_ipv4 14531 4 iptable_nat,nf_nat
nf_defrag_ipv4 12730 1 nf_conntrack_ipv4
xt_state 12579 1
nf_conntrack 83300 5 ipt_MASQUERADE,iptable_nat,nf_nat,nf_conntrack_ipv4,xt_state
ipt_REJECT 12577 2
xt_CHECKSUM 12550 1
iptable_mangle 12735 1
xt_tcpudp 12604 5
iptable_filter 12811 1
ip_tables 27474 3 iptable_nat,iptable_mangle,iptable_filter
x_tables 29892 12 ip6table_filter,ip6_tables,ebtables,ipt_MASQUERADE,iptable_nat,xt_state,ipt_REJECT,xt_CHECKSUM,iptable_mangle,xt_tcpudp,iptable_filter,ip_tables
dm_crypt 23126 0
coretemp 13642 0
kvm_intel 137888 0
kvm 422160 1 kvm_intel
ext2 73799 1
gpio_ich 13384 0
dm_multipath 23306 0
scsi_dh 14589 1 dm_multipath
lp 17800 0
microcode 23030 0
parport 46563 1 lp
bridge 91498 0
sb_edac 18104 0
stp 12977 1 bridge
llc 14598 2 bridge,stp
joydev 17694 0
edac_core 53053 3 sb_edac
shpchp 37278 0
lpc_ich 17145 0
mei 41410 0
acpi_power_meter 18124 0
mac_hid 13254 0
btrfs 781017 0
zlib_deflate 27140 1 btrfs
libcrc32c 12645 1 btrfs
vesafb 13846 1
hid_generic 12541 0
usbhid 47259 0
hid 100815 2 hid_generic,usbhid
ses 17418 0
enclosure 15313 1 ses
ghash_clmulni_intel 13221 0
aesni_intel 51134 0
cryptd 20531 2 ghash_clmulni_intel,aesni_intel
aes_x86_64 17256 1 aesni_intel
megaraid_sas 82737 2
ixgbe 184924 0
dca 15233 1 ixgbe
mdio 13808 1 ixgbe
tg3 156594 0
wmi 19257 0
I will appreciate it if you tell me what I am missing now.
Thanks,
Naor
-----Original Message-----
From: Paolo Bonzini [mailto:pbonzini@redhat.com]
Sent: Tuesday, July 16, 2013 1:42 PM
To: Naor Shlomo
Cc: kvm@vger.kernel.org
Subject: Re: Disabling mergeable rx buffers for the guest
Il 16/07/2013 12:40, Naor Shlomo ha scritto:
> Hi Paolo,
>
> For some unknown reason it suddenly started to accept the changes to the XML and the strings you gave me are now in place.
Good.
> Upon machine start I now receive the following error messages:
>
> virsh # start NaorDev
> error: Failed to start domain NaorDev
> error: internal error Process exited while reading console log output: kvm: -global: requires an argument"
>
That's because I cut-and-pasted without reading:
> <qemu:commandline>
> <qemu:arg value='-global'/>
> <qemu:env name='mrg_rxbuf' value='off'/>
> </qemu:commandline>
The right one is (or at this point I'd better say "should be"):
<qemu:commandline>
<qemu:arg value='-global'/>
<qemu:arg value='virtio-net-pci.mrg_rxbuf=off'/>
</qemu:commandline>
Paolo
> </domain>
>
> Naor
>
> -----Original Message-----
> From: Paolo Bonzini [mailto:pbonzini@redhat.com]
> Sent: Tuesday, July 16, 2013 12:36 PM
> To: Naor Shlomo
> Cc: kvm@vger.kernel.org
> Subject: Re: Disabling mergeable rx buffers for the guest
>
> Il 16/07/2013 10:06, Naor Shlomo ha scritto:
>> Thanks again Paolo,
>>
>> I used your string and read the documents in the site you referred me to but could not understand why doesn't it accept the xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0' string.
>>
>> I tried it on the following version:
>> Compiled against library: libvir 0.9.8 Using library: libvir 0.9.8
>> Using API: QEMU 0.9.8 Running hypervisor: QEMU 1.0.0
>>
>> So according to the site it should be supported.
>>
>> Any idea what am I missing now?
>
> Not sure. Can you post here the full XML, and the one you're trying to use?
>
> Paolo
>
>> Naor
>>
>> -----Original Message-----
>> From: Paolo Bonzini [mailto:pbonzini@redhat.com]
>> Sent: Tuesday, July 16, 2013 9:42 AM
>> To: Naor Shlomo
>> Cc: kvm@vger.kernel.org
>> Subject: Re: Disabling mergeable rx buffers for the guest
>>
>> Il 16/07/2013 08:40, Naor Shlomo ha scritto:
>>> Hi Paolo and thanks for your quick reply,
>>>
>>> I tried editing (virsh edit) the domain's XML and put the XML excerpt you gave me everywhere but with no success.
>>> The moment I exit the edit mode the text was gone (I guess it didn't pass some sort of sanity and that's why it was automatically erased).
>>>
>>> What am I doing wrong?
>>
>> My fault. You need to change the <domain> opening tag to
>>
>> <domain type='qemu'
>> xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
>>
>> See http://libvirt.org/drvqemu.html#qemucommand for the docs.
>>
>> Paolo
>>
>
--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2013-07-16 12:21 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-16 5:09 Disabling mergeable rx buffers for the guest Naor Shlomo
2013-07-16 6:11 ` Paolo Bonzini
2013-07-16 6:40 ` Naor Shlomo
2013-07-16 6:41 ` Paolo Bonzini
2013-07-16 8:06 ` Naor Shlomo
2013-07-16 9:35 ` Paolo Bonzini
2013-07-16 10:40 ` Naor Shlomo
2013-07-16 10:42 ` Paolo Bonzini
2013-07-16 11:05 ` Naor Shlomo
2013-07-16 12:21 ` Naor Shlomo
2013-07-16 10:42 ` Daniel P. Berrange
2013-07-16 11:06 ` Naor Shlomo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox